All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.xml.parser.v2.XSLStylesheet

java.lang.Object
   |
   +----oracle.xml.parser.v2.XSLStylesheet

public class XSLStylesheet
extends Object
implements XSLConstants
The class holds XSL stylesheet information such as templates, keys, variables, and attribute sets. The same stylesheet, once constructed, can be used to transform multiple XML documents.


Constructor Index

 o XSLStylesheet()
Constructs an empty XSLStylesheet
 o XSLStylesheet(InputStream, URL)
Constructs an XSLStylesheet using the given Inputstream
 o XSLStylesheet(Reader, URL)
Constructs an XSLStylesheet using the given Reader
 o XSLStylesheet(URL, URL)
Constructs an XSLStylesheet using the given URL
 o XSLStylesheet(XMLDocument, URL)
Constructs an XSLStylesheet using the given XMLDocument

Method Index

 o getOutputEncoding()
Get the value of the encoding specified in xsl:output
 o getOutputMediaType()
Get the value of the media-type specified in xsl:output
 o removeParam(String)
Removes the value of a top-level stylesheet parameter.
 o resetParams()
Resets all the params set.
 o setParam(String, String)
Sets the value of a top-level stylesheet parameter.

Constructors

 o XSLStylesheet
 public XSLStylesheet() throws XSLException
Constructs an empty XSLStylesheet

Throws: XSLException
on error.
 o XSLStylesheet
 public XSLStylesheet(XMLDocument xsl,
                      URL ref) throws XSLException
Constructs an XSLStylesheet using the given XMLDocument

Parameters:
xsl - XSL input as a DOM Tree
ref - Reference URL for include, import
Throws: XSLException
on error.
 o XSLStylesheet
 public XSLStylesheet(InputStream xsl,
                      URL ref) throws XSLException
Constructs an XSLStylesheet using the given Inputstream

Parameters:
xsl - XSL input as an Inputstream
ref - Reference URL for include, import and external entities
Throws: XSLException
on error.
 o XSLStylesheet
 public XSLStylesheet(URL xsl,
                      URL ref) throws XSLException
Constructs an XSLStylesheet using the given URL

Parameters:
xsl - XSL input as a URL
ref - Reference URL for include, import and external entities
Throws: XSLException
on error.
 o XSLStylesheet
 public XSLStylesheet(Reader xsl,
                      URL ref) throws XSLException
Constructs an XSLStylesheet using the given Reader

Parameters:
xsl - XSL input as a Reader
ref - Reference URL for include, import and external entities
Throws: XSLException
on error.

Methods

 o getOutputMediaType
 public String getOutputMediaType()
Get the value of the media-type specified in xsl:output

Returns:
the media-type
 o getOutputEncoding
 public String getOutputEncoding()
Get the value of the encoding specified in xsl:output

Returns:
the encoding
 o removeParam
 public void removeParam(String name) throws XSLException
Removes the value of a top-level stylesheet parameter.

Parameters:
name - parameter name
 o resetParams
 public void resetParams() throws XSLException
Resets all the params set.

 o setParam
 public void setParam(String name,
                      String value) throws XSLException
Sets the value of a top-level stylesheet parameter. The parameter value is expected to be a valid XPath expression (note that string literal values would therefore have to be explicitly quoted).

Parameters:
name - parameter name
value - parameter value as an XPath expression

All Packages  Class Hierarchy  This Package  Previous  Next  Index