home contribute faq download

FunctX XSLT Functions

fn:unparsed-text

Open a non-XML document

Google
Webxsltfunctions.com

Description

The fn:unparsed-text function reads an external resource (for example, a file) and returns its contents as a string. Note: this is an XSLT-only function; it is not available in XQuery or XPath.

Arguments and Return Type

NameType
$href xs:string?
$encoding xs:string
return value xs:string?

Examples

XSLT ExampleResults
See the example from the XSLT 2.0 recommendation.

See Also

fn:docOpens a document based on a URI
fn:unparsed-text-availableCheck if a non-XML document exists

History

Published OnLast UpdatedContributor(s)
2007-03-172007-03-17W3C, XSLT 2.0, http://www.w3.org/TR/xslt20/
Datypic XSLT Services

Recommended Reading:

XQuery