public class XPathFilter2 extends XSTransformer
transform
Constructor and Description |
---|
XPathFilter2(XSAlgorithmIdentifier trans)
Creates a new
XPathFilter instance. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmURI()
Returns the URI string identifying the Transform algorithm.
|
XMLContainer |
transform(XMLContainer source)
Applies a XPath filter transformation to the given
XMLContainer and returns the node list result in a new XMLContainer . |
applyTransforms, getInstance, getInstance, getTransform
public XPathFilter2(XSAlgorithmIdentifier trans)
XPathFilter
instance.trans
- A XSAlgorithmIdentifier
object containing exactly one parameter named "XPath".java.lang.IllegalArgumentException
- If the XSAlgorithmIdentifier
is not a valid XPath Transform.public java.lang.String getAlgorithmURI()
XSTransformer
getAlgorithmURI
in class XSTransformer
public XMLContainer transform(XMLContainer source) throws TransformationException
XMLContainer
and returns the node list result in a new XMLContainer
.transform
in class XSTransformer
source
- A XMLContainer
on which the transform will operate.XMLContainer
containing the transform node list result.TransformationException
- if an error occurs during the transformation process.