com.qizx.api.util
Class NodeSource
java.lang.Object
javax.xml.transform.sax.SAXSource
com.qizx.api.util.NodeSource
- All Implemented Interfaces:
- Source
public class NodeSource
- extends SAXSource
An extension of SAXSource that allows using a Qizx Document or Node as a
source for an XSLT transformation.
Constructor Summary |
NodeSource(Node node)
Creates a NodeSource from a Node. |
Method Summary |
Node |
getRootNode()
Returns the Node used as input by the XSLT transformation. |
NodeSource
public NodeSource(Node node)
- Creates a NodeSource from a Node.
- Parameters:
node
- the XML tree to transform by a XSLT processor.
getRootNode
public Node getRootNode()
- Returns the Node used as input by the XSLT transformation.
- Returns:
- the root node set in the constructor