functx:line-count

The number of lines

Description

The functx:line-count function counts the number of lines in a string, using the carriage return and newline characters to indicate the end of a line.

Parameters

Description

arg:string()

the string to test

Examples

XPath

Results

functx:line-count(‘a value’)

1

functx:line-count($lines)

5

Depends On

See Also