public class IdentityStylesheet extends StylesheetImpl
The resulting document can be printed, or it can be added to another XML tree.
_defaultDisableEscaping, templates, text
_errorPage, _output, _stylesheet, _uriResolver
CACHE_DEPENDS, DEPENDS, GLOBAL_PARAM
Constructor and Description |
---|
IdentityStylesheet() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyNode(XslWriter out,
org.w3c.dom.Node node) |
OutputFormat |
getOutputFormat() |
void |
transform(org.w3c.dom.Node xml,
XMLWriter writer,
TransformerImpl transformer)
Transforms the XML node to a new XML document based on this stylesheet.
|
_xsl_init, addFunction, anyNumber, applyNode, applyNode, applyNodeDefault, copy, exprNumber, getGenerateLocation, getNodeValue, getProperty, getTemplate, init, mergeTemplates, multiNumber, ownerDocument, printValue, setGenerateLocation, setOutputFormat, setProperty, setSpaces, singleNumber, xslSort
addCacheDepend, addDepend, clone, getCacheDepends, getDepends, getOutputProperties, getPath, getURIResolver, isModified, newTransformer, setURIResolver
public void transform(org.w3c.dom.Node xml, XMLWriter writer, TransformerImpl transformer) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
Since Documents are DocumentFragments, calling functions can insert the contents using appendChild.
transform
in class StylesheetImpl
xml
- source xml to convertout
- source xml to convertorg.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
protected void applyNode(XslWriter out, org.w3c.dom.Node node) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.transform.TransformerException
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
public OutputFormat getOutputFormat()
getOutputFormat
in class StylesheetImpl