functx:siblings-same-name
The siblings of an XML element that have the same name
Description
The functx:siblings-same-name function returns the siblings of an element that have the same qualified name. It returns only other elements, not attributes, and not the element itself.
Parameters |
Description |
---|---|
element:element() |
the node |
Examples
XPath |
Results |
---|---|
functx:siblings-same-name($in-xml/author[1]) |
<author> <fName>John</fName> <lName>Doe</lName> </author> |
functx:siblings-same-name($in-xml/author[1]/fName[2]) |
<fName>Kate</fName> |