|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.xslt.UnImplNode | +--weblogic.apache.xalan.xslt.Stylesheet | +--weblogic.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.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Field Summary | |
ElemTemplate |
m_defaultRootRule
The default template to use for the root if we don't find anything else. |
ElemTemplate |
m_defaultRule
The default template to use if we don't find anything else. |
ElemTemplate |
m_defaultTextRule
The default template to use for text nodes if we don't find anything else. |
boolean |
m_useXercesSerializers
If this is set to true, the Xerces serializers will be used, otherwise (false is the default) the Xalan serializers will be used. |
Fields inherited from class weblogic.apache.xalan.xslt.Stylesheet |
m_prefix_aliases,
m_stylesheetParent,
m_stylesheetRoot,
STYLESHEET_EXT |
Constructor Summary | |
StylesheetRoot(XSLTEngineImpl processor,
java.lang.String baseIdentifier)
Uses an XSL stylesheet document. |
Method Summary | |
void |
addTraceListener(TraceListener tl)
Add a trace listener for the purposes of debugging and diagnosis. |
QName[] |
getCDataSectionElems()
Get list of qnames that specifies elements that should be formatted as CDATA. |
boolean |
getOmitOutputXMLDecl()
Get the XML Declaration that was specified in the stylesheet. |
java.lang.String |
getOutputDoctypePublic()
Get the doctype-public-id string that was specified in the stylesheet. |
java.lang.String |
getOutputDoctypeSystem()
Get the doctype-system-id string that was specified in the stylesheet. |
java.lang.String |
getOutputEncoding()
Get the encoding string that was specified in the stylesheet. |
OutputFormat |
getOutputFormat()
Get a new OutputFormat object according to the xsl:output attributes. |
boolean |
getOutputIndent()
Get the media-type string that was specified in the stylesheet. |
java.lang.String |
getOutputMediaType()
Get the media-type string that was specified in the stylesheet. |
java.lang.String |
getOutputMethod()
Return the output method that was specified in the stylesheet. |
boolean |
getOutputStandalone()
Get the standalone string that was specified in the stylesheet. |
java.lang.String |
getOutputVersion()
Get the version string 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. |
protected void |
init(XSLTEngineImpl processor)
Initialize the stylesheet. |
boolean |
isOutputMethodSet()
Return the output method that was specified in the stylesheet. |
org.xml.sax.DocumentHandler |
makeSAXSerializer(java.io.OutputStream ostream,
OutputFormat format)
Creates a compatible SAX serializer for the specified output stream and output format. |
org.xml.sax.DocumentHandler |
makeSAXSerializer(java.io.Writer writer,
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 |
removeTraceListener(TraceListener tl)
Remove a trace listener. |
void |
setOutputMethod(java.lang.String om)
Set the output method. |
Methods inherited from class weblogic.apache.xalan.xslt.UnImplNode |
appendChild,
cloneNode,
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getAttributes,
getChildNodes,
getFirstChild,
getLastChild,
getLength,
getLocalName,
getNamespaceURI,
getNextSibling,
getNodeName,
getNodeValue,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getTagName,
hasAttribute,
hasAttributeNS,
hasAttributes,
hasChildNodes,
insertBefore,
item,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
removeChild,
replaceChild,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS,
setNodeValue,
setPrefix,
supports |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public boolean m_useXercesSerializers
public ElemTemplate m_defaultTextRule
public ElemTemplate m_defaultRule
public ElemTemplate m_defaultRootRule
Constructor Detail |
public StylesheetRoot(XSLTEngineImpl processor, java.lang.String baseIdentifier) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException
processor
- The XSLTProcessor implementation.baseIdentifier
- The file name or URL for the XSL stylesheet.Method Detail |
public void addTraceListener(TraceListener tl) throws java.util.TooManyListenersException
public void removeTraceListener(TraceListener tl)
protected void init(XSLTEngineImpl processor) throws XSLProcessorException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException, org.xml.sax.SAXException
public OutputFormat getOutputFormat()
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(XSLTInputSource, XSLTInputSource, 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(XSLTInputSource, XSLTInputSource, 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(XSLTProcessor, XSLTInputSource, XSLTResultTarget)
or
XSLTProcessor.process(XSLTInputSource, XSLTInputSource, 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, OutputFormat format) throws java.io.IOException
writer
- The writerformat
- The output formatpublic org.xml.sax.DocumentHandler getSAXSerializer(java.io.OutputStream ostream) throws java.io.UnsupportedEncodingException, java.io.IOException
ostream
- The output stream.public org.xml.sax.DocumentHandler makeSAXSerializer(java.io.OutputStream ostream, OutputFormat format) throws java.io.UnsupportedEncodingException, java.io.IOException
ostream
- The output stream.format
- The output formatpublic java.lang.String getOutputMethod()
public boolean isOutputMethodSet()
public void setOutputMethod(java.lang.String om)
public java.lang.String getOutputVersion()
public boolean getOutputIndent()
public java.lang.String getOutputEncoding()
public java.lang.String getOutputMediaType()
public java.lang.String getOutputDoctypeSystem()
public java.lang.String getOutputDoctypePublic()
public boolean getOmitOutputXMLDecl()
public boolean getOutputStandalone()
public QName[] getCDataSectionElems()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |