|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.xalan.xslt.StylesheetRoot
Binary representation of a stylesheet -- use the XSLTProcessor ProcessStylesheet
method to create a StylesheetRoot and improve performance for a stylesheet performing multiple transformations.
Also required for XSLTProcessor to function as SAX DocumentHandler.
| Constructor Summary | |
StylesheetRoot(org.apache.xalan.templates.StylesheetRoot s)
Constructor using an org.apache.xalan.templates.StylesheetRoot. |
|
StylesheetRoot(XSLTEngineImpl processor,
java.lang.String baseIdentifier)
Uses an XSL stylesheet document. |
|
| Method Summary | |
java.lang.String |
getBaseIdentifier()
Get the base identifier with which this stylesheet is associated. |
org.apache.xalan.templates.StylesheetRoot |
getObject()
Return the org.apache.xalan.templates.StylesheetRoot object associated with this stylesheet root. |
java.lang.String |
getOutputEncoding()
Get the encoding string that was specified in the stylesheet. |
org.apache.xml.serialize.OutputFormat |
getOutputFormat()
Get a new OutputFormat object according to the xsl:output attributes. |
java.lang.String |
getOutputMediaType()
Get the media-type string that was specified in the stylesheet. |
java.lang.String |
getOutputMethod()
Get the output method that was specified in the stylesheet. |
org.xml.sax.DocumentHandler |
getSAXSerializer(java.io.OutputStream ostream)
Creates a compatible SAX serializer for the specified output stream and output format. |
org.xml.sax.DocumentHandler |
makeSAXSerializer(java.io.OutputStream ostream,
org.apache.xml.serialize.OutputFormat format)
Creates a compatible SAX serializer for the specified output stream and output format. |
org.xml.sax.DocumentHandler |
makeSAXSerializer(java.io.Writer writer,
org.apache.xml.serialize.OutputFormat format)
Creates a compatible SAX serializer for the specified writer and output format. |
void |
process(XSLTInputSource xmlSource,
XSLTResultTarget outputTarget)
Transform the XML source tree and place the output in the result tree target. |
void |
process(XSLTProcessor iprocessor,
org.w3c.dom.Node sourceTree,
XSLTResultTarget outputTarget)
Transform the XML source tree (a DOM Node) and place the output in the result tree target. |
void |
process(XSLTProcessor iprocessor,
XSLTInputSource xmlSource,
XSLTResultTarget outputTarget)
Transform the XML source tree and place the output in the result tree target. |
void |
setBaseIdentifier(java.lang.String baseIdent)
Get the base identifier with which this stylesheet is associated. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public StylesheetRoot(XSLTEngineImpl processor,
java.lang.String baseIdentifier)
throws javax.xml.transform.TransformerConfigurationException
processor - The XSLTProcessor implementation.baseIdentifier - The file name or URL for the XSL stylesheet.public StylesheetRoot(org.apache.xalan.templates.StylesheetRoot s)
s - an org.apache.xalan.templates.StylesheetRoot object| Method Detail |
public org.apache.xalan.templates.StylesheetRoot getObject()
public void process(XSLTInputSource xmlSource,
XSLTResultTarget outputTarget)
throws org.xml.sax.SAXException,
java.net.MalformedURLException,
java.io.FileNotFoundException,
java.io.IOException
xmlSource - The XML input source tree.outputTarget - The output result tree.XSLTProcessor.process(org.apache.xalan.xslt.XSLTInputSource, org.apache.xalan.xslt.XSLTInputSource, org.apache.xalan.xslt.XSLTResultTarget)
public void process(XSLTProcessor iprocessor,
XSLTInputSource xmlSource,
XSLTResultTarget outputTarget)
throws org.xml.sax.SAXException,
java.net.MalformedURLException,
java.io.FileNotFoundException,
java.io.IOException
iprocessor - The XSLTProcessor that will track the running state.xmlSource - The XML input source tree.outputTarget - The output result tree.XSLTProcessor.process(org.apache.xalan.xslt.XSLTInputSource, org.apache.xalan.xslt.XSLTInputSource, org.apache.xalan.xslt.XSLTResultTarget)
public void process(XSLTProcessor iprocessor,
org.w3c.dom.Node sourceTree,
XSLTResultTarget outputTarget)
throws org.xml.sax.SAXException,
java.net.MalformedURLException,
java.io.FileNotFoundException,
java.io.IOException
process(org.apache.xalan.xslt.XSLTProcessor, org.apache.xalan.xslt.XSLTInputSource, org.apache.xalan.xslt.XSLTResultTarget) or
XSLTProcessor.process(org.apache.xalan.xslt.XSLTInputSource, org.apache.xalan.xslt.XSLTInputSource, org.apache.xalan.xslt.XSLTResultTarget).iprocessor - The processor that will track the running state.sourceTree - The input source tree in the form of a DOM Node.outputTarget - The output result tree.
public org.xml.sax.DocumentHandler makeSAXSerializer(java.io.Writer writer,
org.apache.xml.serialize.OutputFormat format)
throws java.io.IOException,
org.xml.sax.SAXException
writer - The writerformat - The output format
public org.xml.sax.DocumentHandler makeSAXSerializer(java.io.OutputStream ostream,
org.apache.xml.serialize.OutputFormat format)
throws java.io.UnsupportedEncodingException,
java.io.IOException,
org.xml.sax.SAXException
ostream - The output stream.format - The output format
public org.xml.sax.DocumentHandler getSAXSerializer(java.io.OutputStream ostream)
throws java.io.UnsupportedEncodingException,
java.io.IOException,
org.xml.sax.SAXException
ostream - The output stream.public org.apache.xml.serialize.OutputFormat getOutputFormat()
public java.lang.String getOutputEncoding()
public java.lang.String getOutputMediaType()
public java.lang.String getOutputMethod()
public java.lang.String getBaseIdentifier()
public void setBaseIdentifier(java.lang.String baseIdent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||