fn: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*

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*

Namespace

http://www.w3.org/2005/xpath-functions

Links to W3C specifications

XPath 3.0 Functions and Operators

XPath 3.1 Functions and Operators

XSLT 2.0 Specification

Notes on the Saxon implementation

Available since Saxon 9.4, provided XPath 3.0 is enabled.