functx:max-line-length

The maximum line length

Description

The functx:max-line-length function counts the number of characters in each line, and returns the maximum. It uses carriage return and/or newline characters to determine the end of a line. It is useful for determining the amount of space a fixed-format string will take up on, for example, a web page.

Parameters

Description

arg:string()

the string to test

Examples

XPath

Results

functx:max-line-length(‘a value’)

7

functx:max-line-length($lines)

10

Depends On

See Also