XSLProcessor - Oracle 9i

Syntax

Description
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
XSLProcessor

Constructor
XSLProcessor()

public XSLProcessor()

Methods
processXSL(XSLStylesheet, InputStream, URL)

public XMLDocumentFragment processXSL(XSLStylesheet xsl, java.io.InputStream xml, java.net.URL ref)

Transforms input XML document using given InputStream and stylesheet.

Parameters

Returns
XMLDocumentFragment

Throws

XSLException - on error. processXSL(XSLStylesheet, XMLDocument, PrintWriter)

Transform input XML document using given XMLDocument and stylesheet.
Inherited Member Summary

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.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

processXSL(XSLStylesheet, Reader, URL)

public XMLDocumentFragment processXSL(XSLStylesheet xsl, java.io.Reader xml,java.net.URL ref)

Transform input XML document using given Reader and stylesheet.

Parameters

Returns
XMLDocumentFragment

Throws

XSLException - on error.

processXSL(XSLStylesheet, URL, URL)

public XMLDocumentFragment processXSL(XSLStylesheet xsl, java.net.URL xml,java.net.URL ref)

Transform input XML document using given URL and stylesheet.

Parameters

Returns
XMLDocumentFragment

Throws

XSLException - on error.

processXSL(XSLStylesheet, XMLDocument)

public XMLDocumentFragment processXSL(XSLStylesheet xsl, XMLDocument xml)

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(XSLStylesheet, XMLDocumentFragment)

public XMLDocumentFragment processXSL(XSLStylesheet xsl, XMLDocumentFragment inp)

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(XSLStylesheet, XMLDocumentFragment, OutputStream)

public void processXSL(XSLStylesheet xsl, XMLDocumentFragment xml, java.io.OutputStream out)

Transform input XML using given XMLDocumentFragment and stylesheet.

Parameters

Throws

XSLException, - IOException on error.

processXSL(XSLStylesheet, XMLDocumentFragment, PrintWriter)

public void processXSL(XSLStylesheet xsl, XMLDocumentFragment xml, java.io.PrintWriter pw)

Transform input XML using given XMLDocumentFragment and stylesheet.

Parameters

Throws

XSLException, - IOException on error.

processXSL(XSLStylesheet, XMLDocument, OutputStream)

public void processXSL(XSLStylesheet xsl, XMLDocument xml, java.io.OutputStream out)

Transform input XML document using given XMLDocument and stylesheet.

Parameters

Throws

XSLException, - IOException on error.

processXSL(XSLStylesheet, XMLDocument, PrintWriter)

public void processXSL(XSLStylesheet xsl, XMLDocument xml, java.io.PrintWriter pw)

Transform input XML document using given XMLDocument and stylesheet.

Parameters

Throws

XSLException, - IOException on error.

setErrorStream(OutputStream)

public final void setErrorStream(java.io.OutputStream out)

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(Locale)

public void setLocale(java.util.Locale locale) Applications can use this to set the locale for error reporting.

Parameters

locale - Locale to set

showWarnings(boolean)

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 rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Oracle 9i Topics