functx:lines

Split a string into separate lines

Description

The functx:lines function splits a string into individual lines, using the carriage return and newline characters to indicate the end of a line.

Parameters

Description

arg:string()

the string to split

Examples

XPath

Results

functx:lines(‘a value’)

a value

functx:lines($in-xml)

(‘a’, ‘value’, ‘on’, ‘many’, ‘lines’)

See Also