xslt:unparsed-text(string $uri) → string
Function signature
$uri |
xs:string |
Result |
xs:string |
Returns the contents of an external text file, given its URI. Saxon attempts to infer the encoding. First it looks in the HTTP headers if available. Then it examines the start of the file looking first for a byte-order-mark, and failing that for an XML declaration. If none of this works, it assumes the encoding is UTF-8.
xslt:unparsed-text(string $uri, string $encoding) → string
Function signature
$uri |
xs:string |
$encoding |
xs:string |
Result |
xs:string |
Returns the contents of an external text file, given its URI and encoding
xslt:unparsed-text-available(string $uri) → boolean
Function signature
$uri |
xs:string |
Result |
xs:boolean |
Determines whether the corresponding call on unparsed-text() would succeed.
Note:The current implementation is inefficient: if a call on unparsed-text-available() is followed by a call on unparsed-text() to read the same file, the file will be read twice.
xslt:unparsed-text-available(string $uri, string $encoding) → boolean
Function signature
$uri |
xs:string |
$encoding |
xs:string |
Result |
xs:boolean |
Determines whether the corresponding call on unparsed-text() would succeed.
Note:The current implementation is inefficient: if a call on unparsed-text-available() is followed by a call on unparsed-text() to read the same file, the file will be read twice.