All Packages Class Hierarchy This Package Previous Next Index
Class oracle.xml.parser.v2.XSLProcessor
java.lang.Object
|
+----oracle.xml.parser.v2.XSLProcessor
- public class XSLProcessor
- extends Object
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.
-
XSLProcessor()
-
-
processXSL(XSLStylesheet, InputStream, URL)
- Transform input XML document using given InputStream and stylesheet.
-
processXSL(XSLStylesheet, Reader, URL)
- Transform input XML document using given Reader and stylesheet.
-
processXSL(XSLStylesheet, URL, URL)
- Transform input XML document using given URL and stylesheet.
-
processXSL(XSLStylesheet, XMLDocument)
- Transform input XML document using given XMLDocument and stylesheet.
-
processXSL(XSLStylesheet, XMLDocument, OutputStream)
- Transform input XML document using given XMLDocument and stylesheet.
-
processXSL(XSLStylesheet, XMLDocument, PrintWriter)
- Transform input XML document using given XMLDocument and stylesheet.
-
processXSL(XSLStylesheet, XMLDocumentFragment)
- Transform input XML document using given XMLDocument and stylesheet.
-
processXSL(XSLStylesheet, XMLDocumentFragment, OutputStream)
- Transform input XML using given XMLDocumentFragment and stylesheet.
-
processXSL(XSLStylesheet, XMLDocumentFragment, PrintWriter)
- Transform input XML using given XMLDocumentFragment and stylesheet.
-
setErrorStream(OutputStream)
- Creates an output stream for the output of warnings.
-
setLocale(Locale)
- Applications can use this to set the locale for error reporting.
-
showWarnings(boolean)
-
Switch to determine whether to output warnings.
XSLProcessor
public XSLProcessor()
processXSL
public XMLDocumentFragment processXSL(XSLStylesheet xsl,
XMLDocument xml) throws XSLException
- Transform input XML document using given XMLDocument and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a DOM Tree)
- Returns:
-
XMLDocumentFragment
- Throws: XSLException
- on error.
processXSL
public XMLDocumentFragment processXSL(XSLStylesheet xsl,
InputStream xml,
URL ref) throws XSLException
- Transform input XML document using given InputStream and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a java.io.Inputstream)
- ref - Reference URL to resolve external entities in input xml file
- Returns:
-
XMLDocumentFragment
- Throws: XSLException
- on error.
processXSL
public XMLDocumentFragment processXSL(XSLStylesheet xsl,
URL xml,
URL ref) throws XSLException
- Transform input XML document using given URL and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a java.net.URL)
- ref - Reference URL to resolve external entities in input xml file
- Returns:
-
XMLDocumentFragment
- Throws: XSLException
- on error.
processXSL
public XMLDocumentFragment processXSL(XSLStylesheet xsl,
Reader xml,
URL ref) throws XSLException
- Transform input XML document using given Reader and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a java.io.Reader)
- ref - Reference URL to resolve external entities in input xml file
- Returns:
-
XMLDocumentFragment
- Throws: XSLException
- on error.
processXSL
public XMLDocumentFragment processXSL(XSLStylesheet xsl,
XMLDocumentFragment inp) throws XSLException
- Transform input XML document using given XMLDocument and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a DOM Tree)
- Returns:
-
XMLDocumentFragment
- Throws: XSLException
- on error.
processXSL
public void processXSL(XSLStylesheet xsl,
XMLDocument xml,
OutputStream os) throws XSLException, IOException
- Transform input XML document using given XMLDocument and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a DOM Tree)
- out - Outputstream to which the result is printed
- Throws: XSLException,
- IOException on error.
processXSL
public void processXSL(XSLStylesheet xsl,
XMLDocument xml,
PrintWriter pw) throws XSLException, IOException
- Transform input XML document using given XMLDocument and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a DOM Tree)
- pw - PrintWriter to which the result is printed
- Throws: XSLException,
- IOException on error.
processXSL
public void processXSL(XSLStylesheet xsl,
XMLDocumentFragment xml,
OutputStream os) throws XSLException, IOException
- Transform input XML using given XMLDocumentFragment and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a DOM Tree)
- out - Outputstream to which the result is printed
- Throws: XSLException,
- IOException on error.
processXSL
public void processXSL(XSLStylesheet xsl,
XMLDocumentFragment xml,
PrintWriter pw) throws XSLException, IOException
- Transform input XML using given XMLDocumentFragment and stylesheet.
- Parameters:
- xsl -
XSLStylesheet
to be used for transformation
- xml - XML input to be transformed (as a DOM Tree)
- pw - PrintWriter to which the result is printed
- Throws: XSLException,
- IOException on error.
setErrorStream
public final void setErrorStream(OutputStream out) throws IOException
- Creates an output stream for the output of warnings. If an
output stream for warnings is not specified, the processor will not
output any warnings
- Parameters:
- out - The output stream to use for errors and warnings
setLocale
public void setLocale(Locale locale)
- Applications can use this to set the locale for error reporting.
- Parameters:
- locale -
Locale
to set
showWarnings
public final void showWarnings(boolean yes)
- Switch to determine whether to output warnings.
- Parameters:
- yes - determines whether warnings should be shown
By default, warnings are not output
All Packages Class Hierarchy This Package Previous Next Index