Class xrx.xpath.Context
Defined in: context.js.
Constructor Attributes | Constructor Name and Description |
---|---|
xrx.xpath.Context(node, opt_position, opt_last)
Provides information for where something is in the XML tree.
|
Method Attributes | Method Name and Description |
---|---|
getLast()
Returns the last field for this context object.
|
|
getNode()
Returns the node for this context object.
|
|
Returns the position for this context object.
|
Class Detail
xrx.xpath.Context(node, opt_position, opt_last)
Provides information for where something is in the XML tree.
- Parameters:
- {!xrx.node} node
- A node in the XML tree.
- {number=} opt_position
- The position of this node in its nodeset, defaults to 1.
- {number=} opt_last
- Index of the last node in this nodeset, defaults to 1.
Method Detail
{number}
getLast()
Returns the last field for this context object.
- Returns:
- {number} The last field for this context object.
{!xrx.node}
getNode()
Returns the node for this context object.
- Returns:
- {!xrx.node} The node for this context object.
{number}
getPosition()
Returns the position for this context object.
- Returns:
- {number} The position for this context object.