net.sf.saxon.om

Interface SiblingCountingNode

public interface SiblingCountingNode extends NodeInfo

Interface that extends NodeInfo by providing a method to get the position of a node relative to its siblings.
Method Summary
intgetSiblingPosition()
Get the index position of this node among its siblings (starting from 0)

Method Detail

getSiblingPosition

public int getSiblingPosition()
Get the index position of this node among its siblings (starting from 0)

Returns: 0 for the first child, 1 for the second child, etc.