functx:siblings

The siblings of an XML node

Description

The functx:siblings function returns the siblings of a node (but not the node itself). This does not include attributes, but does include elements, text nodes, processing instructions and comments.

Parameters

Description

node:node()

the node

Examples

XPath

Results

functx:siblings($in-xml/author[1])

<author> <fName a3=”def”>John</fName> <lName>Doe</lName> </author>

functx:siblings($in-xml/author[1]/fName[2])

<fName a3=”def”>Kate</fName> <lName>Jones</lName>

See Also