|
|||||
XML document processing | |||||
Prerequisite Concepts | Related Syntax |
OmniMark supports the processing of XML documents through its built-in XML parser. The OmniMark XML parser is a validating parser that requires a valid XML DTD to process XML documents.
Aided translation types have been extended to allow XML or SGML to be specified as the document format. This is done using a with xml
or with sgml
clause after the translation type declaration. Note that OmniMark defaults to an SGML document translation if this clause is not specified.
The do xml-parse
action has been added to accommodate XML parsing. It works essentially the same way as the do sgml-parse
action, except the subdocument
option is not supported.
Compiled XML DTDs can be stored using the creating xml-dtds
option. The compiled XML DTDs are stored on the xml-dtds
shelf, in the same way as SGML DTDs are stored on the sgml-dtds
shelf. Note that the dtds
shelf refers to sgml-dtds
, never xml-dtds
.
Many of the language features used to support SGML have been generalized to non-specific equivalents. For example, the #sgml
stream is now a deprecated synonym for the more generic stream #markup-parser
.
Output from the XML parser is processed using the same rich and powerful set of rules and techniques as are used to process the SGML parser's output.
Prerequisite Concepts Aided translation types Markup languages |
Related Syntax do xml-parse xml-dtds |
---- |