Represents the list of all open XML documents.
If this pseudo-element is enabled, when multiple XML files have been passed
to process with the same main template, that template will receive them all
as children of #DOCUMENTS
pseudo-element received by the template
as its root element.
Each XML document will be open, parsed and represented as #DOCUMENT
child element.
Further, within the template's root block, you can organize iteration by such children and process every XML document.
Function loadXMLDocument()
, which allows you to open an XML document dynamically
from within a template by a specified URI, alters the list of open XML documents and adds
a new document to it.
All open XML documents together constitute a single Data Source Model (DSM),
so it can be processed as a single "meta" XML document. That means, you can iterate
and access elements and attribute contained in different XML documents simultaneously
within the same iterators and other template components. An identifier
of each XML element will be unique for the whole DSM (see GOMElement.id
).
See Also:
#DOCUMENT, GOMContext.rootElement, GOMElement.id,
loadXMLDocument(), findXMLDocument(), getXMLDocument()