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.


Constructor Index

 o XSLProcessor()

Method Index

 o processXSL(XSLStylesheet, InputStream, URL)
Transform input XML document using given InputStream and stylesheet.
 o processXSL(XSLStylesheet, Reader, URL)
Transform input XML document using given Reader and stylesheet.
 o processXSL(XSLStylesheet, URL, URL)
Transform input XML document using given URL and stylesheet.
 o processXSL(XSLStylesheet, XMLDocument)
Transform input XML document using given XMLDocument and stylesheet.
 o processXSL(XSLStylesheet, XMLDocument, OutputStream)
Transform input XML document using given XMLDocument and stylesheet.
 o processXSL(XSLStylesheet, XMLDocument, PrintWriter)
Transform input XML document using given XMLDocument and stylesheet.
 o processXSL(XSLStylesheet, XMLDocumentFragment)
Transform input XML document using given XMLDocument and stylesheet.
 o processXSL(XSLStylesheet, XMLDocumentFragment, OutputStream)
Transform input XML using given XMLDocumentFragment and stylesheet.
 o processXSL(XSLStylesheet, XMLDocumentFragment, PrintWriter)
Transform input XML using given XMLDocumentFragment and stylesheet.
 o setErrorStream(OutputStream)
Creates an output stream for the output of warnings.
 o setLocale(Locale)
Applications can use this to set the locale for error reporting.
 o showWarnings(boolean)
Switch to determine whether to output warnings.

Constructors

 o XSLProcessor
 public XSLProcessor()

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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
 o setLocale
 public void setLocale(Locale locale)
Applications can use this to set the locale for error reporting.

Parameters:
locale - Locale to set
 o 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