|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.lib.Extensions
This class contains many of the Xalan-supplied extensions. It is accessed by specifying a namespace URI as follows:
xmlns:xalan="http://xml.apache.org/xalan"
Method Summary | |
static NodeSet |
difference(NodeIterator ni1,
NodeIterator ni2)
Returns the difference between two node-sets. |
static NodeSet |
distinct(NodeIterator ni)
Returns node-set containing distinct string values. |
static XObject |
evaluate(ExpressionContext myContext,
java.lang.String xpathExpr)
Returns the result of evaluating the argument as a string containing an XPath expression. |
static boolean |
hasSameNodes(NodeIterator ni1,
NodeIterator ni2)
Returns true of both node-sets contain the same set of nodes. |
static NodeSet |
intersection(NodeIterator ni1,
NodeIterator ni2)
Returns the intersection of two node-sets. |
static NodeSet |
nodeset(ExpressionContext myProcessor,
java.lang.Object rtf)
This method is an extension that implements as a Xalan extension the node-set function also found in xt and saxon. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static NodeSet nodeset(ExpressionContext myProcessor, java.lang.Object rtf)
MethodResolver
and
XRTreeFrag
.public static NodeSet intersection(NodeIterator ni1, NodeIterator ni2) throws SAXException
n1
- NodeIterator for first node-setni2
- NodeIterator for second node-setpublic static NodeSet difference(NodeIterator ni1, NodeIterator ni2) throws SAXException
n1
- NodeIterator for first node-setni2
- NodeIterator for second node-setpublic static NodeSet distinct(NodeIterator ni) throws SAXException
ni
- NodeIterator for node-setpublic static boolean hasSameNodes(NodeIterator ni1, NodeIterator ni2)
n1
- NodeIterator for first node-setni2
- NodeIterator for second node-setpublic static XObject evaluate(ExpressionContext myContext, java.lang.String xpathExpr) throws SAXNotSupportedException, java.lang.Exception
myContext
- an ExpressionContext
passed in by the
extension mechanism. This must be an XPathContext.xpathExtr
- The XPath expression to be evaluated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |