formatIntegerSequence

This function formats a sequence of integers as a comma-separated list of SQL literals.

Syntax

composite:formatIntegerSequence ($values as node()*)

Example

declare variable $values := <a><b>1</b><b>2</b></a>;
<result>{composite:formatIntegerSequence ($values//b)}</result>

Result

The output is of the form xs:string:

<result>1,2</result>