document()
Arguments: |
object, [node-set] |
Returns: |
node-set |
Allows accesses to XML documents other than the main source document. If the first argument is a node-set the result is the union of calling document() with the string-value of node in the node-set as the first parameter.
If the first argument is not a node-set it is converted to a string and then treated as a URI reference. The resource identified by this URI is retrieved and parsed as an XML document.
Note!
|
The second parameter is not implemented. The URI reference may only be an absolute or relative path in the file system. URI fragment identifiers (e.g. #section) are not supported.
|
Note!
|
When using a file name without any path prefix (i.e. no / is included) the name may be prefixed with either ancestor:: or ancestor-or-self:: to signal that Roxen CMS should search for the file starting in the parent directory of, or same directory as, respectively, the current content page. This is a Roxen-specific extension.
|
See also the XSLT specification.