fn:doc(string? $uri) → document?
Function signature
$uri |
string ? |
Result |
document-node() ? |
Loads a document identified by its URI
The way the URI is handled depends on the URIResolver in use. The standard URI resolver has an option (set using -p on the command line, or via options on the Configuration or TransformerFactory classes) to recognize query parameters in the URI. These are keyword=value pairs, separated by semicolons or ampersand characters, giving options for parsing the file located via the URI. The options that are recognized are:
validation=strict|lax|preserve|strip: determines how the input document will be validated. The options "strict" and "lax" require Saxon-SA.
strip-space=yes|no: determines whether whitespace-only text nodes will be stripped from the source document. (Such nodes are stripped if this is requested either using this option, or using xsl:strip-space declarations in the stylesheet.)
parser=full.class.name: determines the name of the parser (XMLReader) to be used to parse this
input file. For example, parser=org.ccil.cowan.tagsoup.Parser
causes John Cowan's
TagSoup parser for HTML to be used.