Variables within an XPath expression are denoted using notation such as $varName or $nsPrefix:varName, and may refer to primitive types (Boolean, Number or String), node-sets
or individual XML nodes.
When a variable is bound to a node-set
, the actual Java object returned should be a java.util.List
containing XML nodes from the object-model (dom4j, JDOM, DOM, EXML) being used with the XPath.
A variable may validly be assigned the null
value, but an unbound variable (one that this context does not know about) should cause an {@link UnresolvableException} to be thrown.
|
|