The output is a series of lines. Lines can be arbitrarily long. Each line consists of an initial command character and one or more arguments. Arguments are separated by a single space, but when a command takes a fixed number of arguments the last argument can contain spaces. There is no space between the command character and the first argument. Arguments can contain the following escape sequences:
\\
\
.
\n
\|
\nnn
nnn
octal.
A record start character will be represented by
\012
.
Most applications will need to ignore
\012
and translate
\n
into newline.
\#n;
n
decimal in the internal character set.
n
can have any number of digits.
This is used for characters that are not representable by the
encoding used for output.
This will only occur with the multibyte version of nsgmls.
\%n;
n
decimal in the document character set.
n
can have any number of digits.
This is used for data characters resulting from numeric
character references to non-SGML characters
in fixed character set mode.
The possible command characters and arguments are as follows:
(gi
gi
.
Any attributes for this element
will have been specified with
A
commands.
)gi
gi
.
-data
&name
name
;
name
will have been defined using an
E
command.
?pi
pi
.
Aname val
name
with value
val
which takes one of the following forms:
IMPLIED
CDATA data
CDATA
.
NOTATION nname
nname
will have been defined using a
N
command.
This is used for attributes whose declared value is
NOTATION
.
ENTITY name...
I
,
E
or
S
command.
This is used for attributes whose declared value is
ENTITY
or
ENTITIES
.
TOKEN token...
ID token
-oid
option is specified.
Otherwise
TOKEN
will be used for ID values.
DATA nname data
Dname val
lines. This is used for attributes whose declared value is DATA
.
It will be output only if the -odata-attribute
option is specified. Otherwise CDATA
will be used for DATA values.
Dename name val
A
command, except that it specifies a data attribute for an
external entity named
ename
.
Any
D
commands will come after the
E
command that defines the entity to which they apply, but
before any
&
or
A
commands that reference the entity.
atype name val
type
,
name
name
,
and value
val
,
which takes the same form as with the
A
command.
Nnname
nname
.
This command will be preceded by a
p
command if the notation was declared with a public identifier,
and by a
s
command if the notation was declared with a system identifier.
If the
-onotation-sysid
option was specified,
this command will also be preceded by an
f
command giving the system identifier generated by the entity manager
(unless it was unable to generate one).
A notation will only be defined if it is to be referenced
in an
E
command or in an
A
command for an attribute with a declared value of
NOTATION
.
Eename typ nname
ename
with type
typ
(CDATA
, NDATA
or SDATA
)
and notation not
.
Thiscommand will be preceded by an
f
command giving the system identifier generated by the entity manager
(unless it was unable to generate one),
by a
p
command if a public identifier was declared for the entity,
and by a
s
command if a system identifier was declared for the entity.
not
will have been defined using a
N
command.
Data attributes may be specified for the entity using
D
commands.
If the
-oentity
option is not specified,
an external data entity will only be defined if it is to be referenced in a
&
command or in an
A
command for an attribute whose declared value is
ENTITY
or
ENTITIES
.
Iename typ text
ename
with type
typ
and entity text
text
.
The
typ
will be
CDATA
or
SDATA
unless the
-oentity
option was specified,
in which case it can also be
PI
or
TEXT
(for an SGML text entity).
If the
-oentity
option is not specified,
an internal data entity will only be defined if it is referenced in an
A
command for an attribute whose declared value is
ENTITY
or
ENTITIES
.
Sename
ename
.
This command will be preceded by an
f
command giving the system identifier generated by the entity manager
(unless it was unable to generate one),
by a
p
command if a public identifier was declared for the entity,
and by a
s
command if a system identifier was declared for the entity.
If the
-oentity
option is not specified,
a subdocument entity will only be defined if it is referenced
in a
{
command
or in an
A
command for an attribute whose declared value is
ENTITY
or
ENTITIES
.
Tename
ename
.
This command will be preceded by an
f
command giving the system identifier generated by the entity manager
(unless it was unable to generate one),
by a
p
command if a public identifier was declared for the entity,
and by a
s
command if a system identifier was declared for the entity.
This command will be output only if the
-oentity
option is specified.
ssysid
E
,
S
,
T
or
N
command and specifies the associated system identifier.
ppubid
E
,
S
,
T
or
N
command and specifies the associated public identifier.
fsysid
E
,
S
,
T
or, if the
-onotation-sysid
option was specified,
N
command and specifies the system identifier
generated by the entity manager from the specified external identifier
and other information about the entity or notation.
{ename
ename
;
ename
will have been defined using a
S
command.
}ename
ename
.
Llineno file
Llineno
file
argument will be omitted if only the line number has changed.
This will be output only if the
-l
option has been given.
#text
text
was specified in the SGML declaration.
This is not strictly part of the ESIS, but a structure-controlled
application is permitted to act on it.
No
#
command will be output if
APPINFO NONE
was specified.
A
#
command will occur at most once,
and may be preceded only by a single
L
command.
C
i
-oincluded
option is specified.
e
-oempty
option is specified.