unparsed-text-lines

Equivalent to calling unparsed-text() and splitting the result at newline boundaries.

unparsed-text-lines($href as xs:string?) ➔ xs:string*

Arguments

 

$href

xs:string?

The uri of the text file to be read

Result

xs:string*

Applies to: XPath 3.0, XSLT 3.0, XQuery 3.0 (if enabled in Saxon: requires Saxon-PE or Saxon-EE)

XPath 3.0 Specification

XSLT 2.0 Specification

unparsed-text-lines($href as xs:string?, $encoding as xs:string) ➔ xs:string*

Arguments

 

$href

xs:string?

The uri of the text file to be read

 

$encoding

xs:string

The encoding to be assumed for the text file

Result

xs:string*

Applies to: XPath 3.0, XSLT 3.0, XQuery 3.0 (if enabled in Saxon: requires Saxon-PE or Saxon-EE)

XPath 3.0 Specification

Notes on the Saxon implementation

Implemented since Saxon 9.4; requires XPath 3.0 to be enabled.