swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Related Topics  

XML DTDs: creating

When the do xml-parse action specifies creating xml-dtds and a key, it terminates parsing at the end of the XML document prolog, creates a "compiled" DTD, and saves it in the specified item of the xml-dtds shelf. The saved xml-dtds item can be used later to parse an instance or instance part.

If the xml-dtds shelf doesn't already have such an item, a new item with the given key is added to the end of the shelf, and the newly compiled DTD is stored in that item. If the xml-dtds shelf already has an item with that key, the newly created DTD replaces the previous one.

The new xml-dtds item is not created until the entire do xml-parse action has completed. If there is an error in the prolog (DTD), the xml-dtds shelf item will not be created or updated.

All the usual markup rules are processed when the DTD is parsed. This allows information in processing instructions associated with the DTD, for example, to be captured by the program.

Note that the input to a do xml-parse can include a document, although it is not necessary. If there is a document instance, it is not parsed when input is used to create a DTD in this way.

    Related Topics
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:35:14 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.