|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.xml.parser.v2.XSLProcessor
This class provides methods to transform an input XML document using a previously constructed XSLStylesheet
. The transformation effected is as specified by the XSLT 1.0 specification.
Constructor Summary | |
XSLProcessor() Default Constructor |
Method Summary | |
java.lang.Object |
getParam(java.lang.String name) Deprecated. - use getParam(String, String); |
java.lang.Object |
getParam(java.lang.String uri, java.lang.String name) Gets the value of a top-level stylesheet parameter. |
XSLStylesheet |
newXSLStylesheet(java.io.InputStream xsl) Constructs an XSLStylesheet using the given Inputstream XSL function document('') is not supported as there is no way to re-access the input Stylesheet as XMLDocument. |
XSLStylesheet |
newXSLStylesheet(java.io.Reader xsl) Constructs an XSLStylesheet using the given Reader XSL function document('') is not supported as there is no way to re-access the input Stylesheet as XMLDocument. |
XSLStylesheet |
newXSLStylesheet(java.net.URL xsl) Constructs an XSLStylesheet using the given URL |
XSLStylesheet |
newXSLStylesheet(XMLDocument xsl) Constructs an XSLStylesheet using the given XMLDocument |
XMLDocumentFragment |
processXSL(XSLStylesheet xsl, java.io.InputStream xml, java.net.URL ref) Transform input XML document using given InputStream and stylesheet. |
XMLDocumentFragment |
processXSL(XSLStylesheet xsl, java.io.Reader xml, java.net.URL ref) Transform input XML document using given Reader and stylesheet. |
XMLDocumentFragment |
processXSL(XSLStylesheet xsl, java.net.URL xml, java.net.URL ref) Transform input XML document using given URL and stylesheet. |
XMLDocumentFragment |
processXSL(XSLStylesheet xsl, XMLDocument xml) Transform input XML document using given XMLDocument and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLDocument xml, ContentHandler handler) Transform input XML document using given XMLDocument and stylesheet. |
XMLDocumentFragment |
processXSL(XSLStylesheet xsl, XMLDocumentFragment inp) Transform input XML document using given XMLDocument and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLDocumentFragment xml, java.io.OutputStream os) Transform input XML using given XMLDocumentFragment and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLDocumentFragment xml, java.io.PrintWriter pw) Transform input XML using given XMLDocumentFragment and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLDocumentFragment inp, XMLDocumentHandler handler) Transform input XML document using given XMLDocument and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLDocument xml, java.io.OutputStream os) Transform input XML document using given XMLDocument and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLDocument xml, java.io.PrintWriter pw) Transform input XML document using given XMLDocument and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLDocument xml, XMLDocumentHandler handler) Transform input XML document using given XMLDocument and stylesheet. |
XMLDocumentFragment |
processXSL(XSLStylesheet xsl, XMLElement inp) Transform input XML document using given XMLDocument and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLElement inp, ContentHandler handler) Transform input XML document using given XMLElement and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLElement xml, java.io.OutputStream os) Transform input XML using given XMLElement and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLElement xml, java.io.PrintWriter pw) Transform input XML using given XMLElement and stylesheet. |
void |
processXSL(XSLStylesheet xsl, XMLElement xml, XMLDocumentHandler handler) Transform input XML document using given XMLElement and stylesheet. |
void |
removeParam(java.lang.String uri, java.lang.String name) Removes the value of a top-level stylesheet parameter. |
void |
resetParams() Resets all the params set. |
void |
setBaseURL(java.net.URL url) Set base url to resolve include/import hrefs EntityResolver if set is used before using the base url |
void |
setEntityResolver(EntityResolver eResolver) Set entity resolver to resolve include/import hrefs if not set, base url (if set) is used. |
void |
setErrorStream(java.io.OutputStream out) Creates an output stream for the output of warnings. |
void |
setLocale(java.util.Locale locale) Applications can use this to set the locale for error reporting. |
void |
setParam(java.lang.String uri, java.lang.String name, java.lang.Object value) Sets the value of a top-level stylesheet parameter. |
void |
setXSLOutput(oracle.xml.parser.v2.XSLOutput xslOutput) Set the overriding XSLOutput object. |
void |
showWarnings(boolean flag) Switch to determine whether to output warnings. |
Constructor Detail |
public XSLProcessor()
Method Detail |
public void processXSL(XSLStylesheet xsl, XMLDocument xml, ContentHandler handler) throws XSLException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)handler
- ContentHandlerpublic void processXSL(XSLStylesheet xsl, XMLDocument xml, XMLDocumentHandler handler) throws XSLException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)handler
- XMLDocument handlerpublic void processXSL(XSLStylesheet xsl, XMLDocument xml, java.io.OutputStream os) throws XSLException, java.io.IOException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)out
- Outputstream to which the result is printedpublic void processXSL(XSLStylesheet xsl, XMLDocument xml, java.io.PrintWriter pw) throws XSLException, java.io.IOException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)pw
- PrintWriter to which the result is printedpublic XMLDocumentFragment processXSL(XSLStylesheet xsl, XMLDocument xml) throws XSLException
xsl:output
, to use xsl:output use processXSL functions which accept OutputStream or PrintWriterxsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)XMLDocumentFragment
public void processXSL(XSLStylesheet xsl, XMLElement inp, ContentHandler handler) throws XSLException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)handler
- ContentHandlerpublic void processXSL(XSLStylesheet xsl, XMLElement xml, XMLDocumentHandler handler) throws XSLException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)handler
- XMLDocument HandlerXMLDocumentFragment
public void processXSL(XSLStylesheet xsl, XMLElement xml, java.io.OutputStream os) throws XSLException, java.io.IOException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)out
- Outputstream to which the result is printedpublic void processXSL(XSLStylesheet xsl, XMLElement xml, java.io.PrintWriter pw) throws XSLException, java.io.IOException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)pw
- PrintWriter to which the result is printedpublic XMLDocumentFragment processXSL(XSLStylesheet xsl, XMLElement inp) throws XSLException
xsl:output
, to use xsl:output use processXSL functions which accept OutputStream or PrintWriterxsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)XMLDocumentFragment
public void processXSL(XSLStylesheet xsl, XMLDocumentFragment inp, XMLDocumentHandler handler) throws XSLException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)handler
- XMLDocument handlerXMLDocumentFragment
public void processXSL(XSLStylesheet xsl, XMLDocumentFragment xml, java.io.OutputStream os) throws XSLException, java.io.IOException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)out
- Outputstream to which the result is printedpublic void processXSL(XSLStylesheet xsl, XMLDocumentFragment xml, java.io.PrintWriter pw) throws XSLException, java.io.IOException
xsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)pw
- PrintWriter to which the result is printedpublic XMLDocumentFragment processXSL(XSLStylesheet xsl, XMLDocumentFragment inp) throws XSLException
xsl:output
, to use xsl:output use processXSL functions which accept OutputStream or PrintWriterxsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a DOM Tree)XMLDocumentFragment
public XMLDocumentFragment processXSL(XSLStylesheet xsl, java.io.InputStream xml, java.net.URL ref) throws XSLException
xsl:output
, to use xsl:output use processXSL functions which accept OutputStream or PrintWriterxsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a java.io.Inputstream)ref
- Reference URL to resolve external entities in input xml fileXMLDocumentFragment
public XMLDocumentFragment processXSL(XSLStylesheet xsl, java.net.URL xml, java.net.URL ref) throws XSLException
xsl:output
, to use xsl:output use processXSL functions which accept OutputStream or PrintWriterxsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a java.net.URL)ref
- Reference URL to resolve external entities in input xml fileXMLDocumentFragment
public XMLDocumentFragment processXSL(XSLStylesheet xsl, java.io.Reader xml, java.net.URL ref) throws XSLException
xsl:output
, to use xsl:output use processXSL functions which accept OutputStream or PrintWriterxsl
- XSLStylesheet
to be used for transformationxml
- XML input to be transformed (as a java.io.Reader)ref
- Reference URL to resolve external entities in input xml fileXMLDocumentFragment
public XSLStylesheet newXSLStylesheet(XMLDocument xsl) throws XSLException
xsl
- XSL input as a DOM Treepublic XSLStylesheet newXSLStylesheet(java.io.InputStream xsl) throws XSLException
xsl
- XSL input as an Inputstreampublic XSLStylesheet newXSLStylesheet(java.net.URL xsl) throws XSLException
xsl
- XSL input as a URLpublic XSLStylesheet newXSLStylesheet(java.io.Reader xsl) throws XSLException
xsl
- XSL input as a Readerpublic final void setErrorStream(java.io.OutputStream out) throws java.io.IOException
out
- The output stream to use for errors and warningspublic void setLocale(java.util.Locale locale)
locale
- Locale
to setpublic final void showWarnings(boolean flag)
flag
- determines whether warnings should be shown By default, warnings are not outputpublic void setBaseURL(java.net.URL url)
url
- Base URL to be setsetEntityResolver(org.xml.sax.EntityResolver)
public void setEntityResolver(EntityResolver eResolver)
eResolver
- EntityResolverpublic void setParam(java.lang.String uri, java.lang.String name, java.lang.Object value) throws XSLException
uri
- URI of parametername
- parameter namevalue
- parameter value (Strings will be treated as XPath Expr for backward compatibility)public java.lang.Object getParam(java.lang.String uri, java.lang.String name) throws XSLException
uri
- URI of parametername
- parameter namepublic void removeParam(java.lang.String uri, java.lang.String name) throws XSLException
uri
- URI of parametername
- parameter namepublic void resetParams() throws XSLException
public void setXSLOutput(oracle.xml.parser.v2.XSLOutput xslOutput)
output
- - overriding propertiespublic java.lang.Object getParam(java.lang.String name)
name
- the parameter namethe
- parameter value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.