For every
style, XSL code inside that style is analysed, parsed and compiled into a
set of instructions which are then used during the UltraXML formatting process. In fact, working just like an interpreted language
such as VBScript or Java Script.
The complete
hierarchies for the XML streams are kept in memory, by use of an extremely
fast, simplified, non-validating version of the XML parser.
(This hand written XML parser will be used in place of the parser
used to currently build the XML tree, thereby removing the need for the
update XML button).
When the
UltraXML formatter comes across XML tags, their XSL style
definitions are parsed and compiled into a set of instructions. If a
hierarchy match is found in the XML from these instructions, then the
remaining XSL script is executed and the text is output using the embedded
UltraXML PIs inside the <xsl:template>. If no match is found
then the text is bypassed until the appropriate close XML style is found.
|