📄 sgmls.man
字号:
'\" t.\" Uncomment the next line to get a man page accurate for MS-DOS.\"nr Os 1.\" Uncomment the next line if tracing is enabled..\"nr Tr 1.if \n(.g .if !r Os .nr Os 0.tr \(ts".ds S \s-1SGML\s0.de TS.br.sp .5...de TE.br.sp .5...de TQ.br.ns.TP \\$1...TH SGMLS 1.SH NAMEsgmls \- a validating SGML parser.spAn \*S System Conforming to.if n .brInternational Standard ISO 8879 \(em.brStandard Generalized Markup Language.SH SYNOPSIS.B sgmls[.B \-deglprsuv][.BI \-c file].if \n(Os=1 \{\[.BI \-f file].\}[.BI \-i name][.BI \-m file].if \n(Tr \{\[.BI \-x flags][.BI \-y flags].\}[.I filename\|.\|.\|.].SH DESCRIPTION.I Sgmlsparses and validatesthe \*S document entity in.I filename\|.\|.\|.and prints on the standard output a simple \s-1ASCII\s0 representation of itsElement Structure Information Set.(This is the information set which a structure-controlledconforming \*S application should act upon.)Note that the document entity may be spread amongst several files;for example, the SGML declaration, document type declaration and documentinstance set could each be in a separate file.If no filenames are specified, then.I sgmlswill read the document entity from the standard input.A filename of.B \-can also be used to refer to the standard input..LPThe following options are available:.TP.BI \-c fileReport any capacity limits that are exceededand write a report of capacity usage to.IR file .The report is in the format of a RACT result.RACT is the Reference Application for Capacity Testing defined in theProposed American National Standard.IConformance Testing for Standard Generalized Markup Language (SGL) Systems(X3.190-199X),Draft July 1991..TP.B \-dWarn about duplicate entity declarations..TP.B \-eDescribe open entities in error messages.Error messages always include the position of the most recentlyopened external entity..if \n(Os=1 \{\.TP.BI \-f fileRedirect errors to.IR file ..\}.TP.B \-gShow the \s-1GI\s0s of open elements in error messages..TP.BI \-i namePretend that.RS.IP.BI <!ENTITY\ %\ name\ \(tsINCLUDE\(ts>.LPoccurs at the start of the document type declaration subsetin the \*S document entity.Since repeated definitions of an entity are ignored,this definition will take precedence over any other definitionsof this entity in the document type declaration.Multiple.B \-ioptions are allowed.If the \*S declaration replaces the reserved name.B INCLUDEthen the new reserved name will be the replacement text of the entity.Typically the document type declaration will contain.IP.BI <!ENTITY\ %\ name\ \(tsIGNORE\(ts>.LPand will use.BI % name ;in the status keyword specification of a marked section declaration.In this case the effect of the option will be to cause the markedsection not to be ignored..RE.TP.B \-lOutput.B Lcommands giving the current line number and filename..TP.BI \-m fileMap public identifiers and entity names to system identifiersusing the catalog entry file.IR file .Multiple.B \-moptions are allowed.Catalog entry files specified with the.B -moption will be searched before the defaults..TP.B \-pParse only the prolog..I Sgmlswill exit after parsing the document type declaration.Implies.BR \-s ..TP.B \-rWarn about defaulted references..TP.B \-sSuppress output.Error messages will still be printed..TP.B \-uWarn about undefined elements: elements used in the DTD but not defined..TP.B \-vPrint the version number..if \n(Tr \{\.TP.BI \-x flags.br.ns.TP.BI \-y flagsEnable debugging output;.B \-xapplies to the document body,.B \-yto the prolog.Each character in the.I flagsargument enables tracing of a particular activity..RS.TP.B tTrace state transitions..TP.B aTrace attribute activity..TP.B cTrace context checking..TP.B dTrace declaration parsing..TP.B eTrace entities..TP.B gTrace groups..TP.B iTrace \s-1ID\s0s..TP.B mTrace marked sections..TP.B nTrace notations..RE.\}.SS "Entity Manager"An external entity resides in one or more files.The entity manager component of.I sgmlsmaps a sequence of files into an entity in three sequential stages:.IP 1.each carriage return character is turned into a non-SGML character;.IP 2.each newline character is turned into a record end character,and at the same timea record start character is inserted at the beginning of each line;.IP 3.the files are concatenated..LPA system identifier isinterpreted as a list of filenames separated by.if \n(Os=0 colons..if \n(Os=1 semi-colons.A filename of.B \-can be used to refer to the standard input..LPIf a system identifier is not specified,then the entity manager can generate one using catalogentry files in the format defined in the SGML Open Draft TechnicalResolution on Entity Management. A catalog entry file contains asequence of entries in one of the following four forms:.TP.BI PUBLIC\ pubid\ sysidThis specifies that.I sysidshould be used as the system identifier if the the publicidentifier is.IR pubid ..I Sysidis a system identifier as defined in ISO 8879 and.I pubidis a public identifier as defined in ISO 8879..TP.BI ENTITY\ name\ sysidThis specifies that.I sysidshould be used as the system identifier if the entity is a generalentity whose name is.IR name ..TP.BI ENTITY\ % name\ sysidThis specifies that.I sysidshould be used as the system identifier if the entity is a parameterentity whose name is.IR name .Note that there is no space between the.B %and the.IR name ..TP.BI DOCTYPE\ name\ sysidThis specifies that.I sysidshould be used as the system identifier if the entity is anentity declared in a document type declaration whose document type name is.IR name ..LPThe last two forms are extensions to the SGML Open format.The delimiters can be omitted from the.I sysidprovided it does not contain any white space.Comments are allowed between parameters delimited by.B --as in SGML.The environment variable.B \s-1SGML_CATALOG_FILES\s0contains a.if \n(Os=0 colon-separated.if \n(Os=1 semicolon-separatedlist of catalog entry files.These will be searched after any catalog entry files specifiedusing the.B \-moption.If this environment variable is not set,then a system dependent list of catalog entry files will be used.A match in a catalog entry file for a PUBLIC entry will takeprecedence over a match in the same file for an ENTITYor DOCTYPE entry.A filename in a system identifier in a catalog entry fileis interpreted relative to the directory containing the catalogentry file..LPIf no match can be found in a catalog entry file, then the entitymanager will attempt to generate a filename using the publicidentifier (if there is one) and other information available to it.Notation identifiers are not subject to this treatment. This processis controlled by the environment variable.BR \s-1SGML_PATH\s0 ;this contains a.if \n(Os=0 colon-separated.if \n(Os=1 semicolon-separatedlist of filename templates.A filename template is a filename that may containsubstitution fields; a substitution field is a.B %character followed by a single letter that indicates the valueof the substitution.The value of a substitution can either be a stringor it can be.IR null .The entity manager transforms the list offilename templates into a list of filenames by substituting for eachsubstitution field and discarding any templatethat contained a substitution field whose value was null.It then uses the first resulting filename that exists and is readable.Substitution values are transformed before being used for substitution:firstly, any names that were subject to upper case substitutionare folded to lower case;secondly,.if \n(Os=0 \{\.\" Unixspace characters are mapped to underscoresand slashes are mapped to percents..\}.if \n(Os=1 \{\.\" MS-DOSthe characters.B +,./:=?and space characters are deleted..\}The value of the.B %Sfield is not transformed.The values of substitution fields are as follows:.TP.B %%A single.BR % ..TP.B %DThe entity's data content notation.This substitution will succeed only for external data entities..TP.B %NThe entity, notation or document type name..TP.B %PThe public identifier if there was a public identifier,otherwise null..TP.B %SThe system identifier if there was a system identifierotherwise null..TP.B %X(This is provided mainly for compatibility with \s-1ARCSGML\s0.)A three-letter string chosen as follows:.LP.RS.ne 11.TStab(&);c|c|c sc|c|c sc|c|c|cc|c|c|cl|lB|lB|lB.&&With public identifier&&_&No public&Device&Device&identifier&independent&dependent_Data or subdocument entity&nsd&pns&vnsGeneral SGML text entity&gml&pge&vgeParameter entity&spe&ppe&vpeDocument type definition&dtd&pdt&vdtLink process definition&lpd&plp&vlp.TE.LPThe device dependent version is selected if the public text classallows a public text display version but no public text displayversion was specified..RE.TP.B %YThe type of thing for which the filename is being generated:.TStab(&);l lB.SGML subdocument entity&sgmlData entity&dataGeneral text entity&textParameter entity&parmDocument type definition&dtdLink process definition&lpd.TE.LPThe value of the following substitution fields will be nullunless a valid formal public identifier was supplied..TP.B %ANull if the text identifier in theformal public identifier contains an unavailable text indicator,otherwise the empty string..TP.B %CThe public text class, mapped to lower case..TP.B %EThe public text designating sequence (escape sequence)if the public text class is.BR \s-1CHARSET\s0 ,otherwise null..TP.B %IThe empty string if the owner identifier in the formal public identifieris an \s-1ISO\s0 owner identifier,otherwise null..TP.B %LThe public text language, mapped to lower case,unless the public text class is.BR \s-1CHARSET\s0 ,in which case null..TP.B %OThe owner identifier (with the.B +//or.B \-//prefix stripped.).TP.B %RThe empty string if the owner identifier in the formal public identifieris a registered owner identifier,otherwise null..TP.B %TThe public text description..TP.B %UThe empty string if the owner identifier in the formal public identifieris an unregistered owner identifier,otherwise null..TP.B %VThe public text display version.This substitution will be null if the public text classdoes not allow a display version or if no version was specified.If an empty version was specified, a value of.B defaultwill be used..LPNormally if the external identifier for an entity includes a systemidentifier, the entity manager will use the specified systemidentifier and not attempt to generate one.If, however,.B \s-1SGML_PATH\s0uses the.B %Sfield,then the entity manager will first search for a matchingentry in the catalog entry files.If a match is found, then this will be used instead of thespecified system identifier.Otherwise,if the specified system identifier does not contain any.if \n(Os=0 colons,.if \n(Os=1 semi-colons,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -