|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.UnImplNode | +--org.apache.xalan.templates.ElemTemplateElement | +--org.apache.xalan.templates.Stylesheet | +--org.apache.xalan.xslt.Stylesheet | +--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.
Fields inherited from class org.apache.xalan.templates.Stylesheet |
STYLESHEET_EXT |
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 org.apache.xalan.templates.Stylesheet |
containsExcludeResultPrefix,
containsExtensionElementURI,
getAttributeSet,
getAttributeSetCount,
getDecimalFormat,
getDecimalFormat,
getDecimalFormatCount,
getExcludeResultPrefix,
getExcludeResultPrefixCount,
getExtensionElementPrefix,
getExtensionElementPrefixCount,
getHref,
getId,
getImport,
getImportCount,
getInclude,
getIncludeCount,
getKey,
getKeyCount,
getNamespaceAlias,
getNamespaceAliasCount,
getNodeName,
getNodeType,
getNonXslTopLevel,
getOutput,
getOutputCount,
getParam,
getPreserveSpace,
getPreserveSpaceCount,
getStripSpace,
getStripSpaceCount,
getStylesheet,
getStylesheetComposed,
getStylesheetParent,
getStylesheetRoot,
getTemplate,
getTemplateCount,
getVariable,
getVariableOrParam,
getVariableOrParam,
getVariableOrParamCount,
getVersion,
getXmlnsXsl,
getXSLToken,
isAggregatedType,
isRoot,
replaceTemplate,
setAttributeSet,
setDecimalFormat,
setExcludeResultPrefixes,
setExtensionElementPrefixes,
setHref,
setId,
setImport,
setInclude,
setKey,
setLocaterInfo,
setNamespaceAlias,
setNonXslTopLevel,
setOutput,
setParam,
setPreserveSpaces,
setStripSpaces,
setStylesheetParent,
setStylesheetRoot,
setTemplate,
setVariable,
setVersion,
setXmlnsXsl |
Methods inherited from class org.apache.xalan.templates.ElemTemplateElement |
appendChild,
canStripWhiteSpace,
compareTo,
compose,
error,
error,
execute,
getChildNodes,
getColumnNumber,
getDeclaredPrefixes,
getDOMBackPointer,
getFirstChild,
getFirstChildElem,
getLastChild,
getLength,
getLineNumber,
getNamespaceForPrefix,
getNamespaceForPrefix,
getNextSibling,
getNextSiblingElem,
getOwnerDocument,
getParentElem,
getParentNode,
getPrefixes,
getPreviousSibling,
getPublicId,
getSystemId,
getTagName,
getUid,
getXmlSpace,
hasChildNodes,
isCompiledTemplate,
item,
recompose,
removeChild,
replaceChild,
resolvePrefixTables,
runtimeInit,
setDOMBackPointer,
setPrefixes,
setPrefixes,
setUid,
setXmlSpace,
shouldStripWhiteSpace |
Methods inherited from class org.apache.xml.utils.UnImplNode |
appendData,
cloneNode,
createAttribute,
createAttributeNS,
createCDATASection,
createComment,
createDocumentFragment,
createElement,
createElementNS,
createEntityReference,
createProcessingInstruction,
createTextNode,
deleteData,
error,
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getAttributes,
getDoctype,
getDocumentElement,
getElementById,
getElementsByTagName,
getElementsByTagNameNS,
getImplementation,
getLocalName,
getNamespaceURI,
getNodeValue,
getOwnerElement,
getPrefix,
getSpecified,
hasAttribute,
hasAttributeNS,
hasAttributes,
importNode,
insertBefore,
insertData,
isSupported,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
removeChild,
replaceData,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS,
setData,
setNodeValue,
setPrefix,
setValue,
splitText,
substringData |
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 objectMethod 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 formatpublic 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 formatpublic 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 |