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.
-
XSLStylesheet()
- Constructs an empty XSLStylesheet
-
XSLStylesheet(InputStream, URL)
- Constructs an XSLStylesheet using the given Inputstream
-
XSLStylesheet(Reader, URL)
- Constructs an XSLStylesheet using the given Reader
-
XSLStylesheet(URL, URL)
- Constructs an XSLStylesheet using the given URL
-
XSLStylesheet(XMLDocument, URL)
- Constructs an XSLStylesheet using the given XMLDocument
-
getOutputEncoding()
- Get the value of the encoding specified in
xsl:output
-
getOutputMediaType()
- Get the value of the media-type specified in
xsl:output
-
removeParam(String)
- Removes the value of a top-level stylesheet parameter.
-
resetParams()
- Resets all the params set.
-
setParam(String, String)
- Sets the value of a top-level stylesheet parameter.
XSLStylesheet
public XSLStylesheet() throws XSLException
- Constructs an empty XSLStylesheet
- Throws: XSLException
- on error.
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.
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.
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.
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.
getOutputMediaType
public String getOutputMediaType()
- Get the value of the media-type specified in
xsl:output
- Returns:
- the media-type
getOutputEncoding
public String getOutputEncoding()
- Get the value of the encoding specified in
xsl:output
- Returns:
- the encoding
removeParam
public void removeParam(String name) throws XSLException
- Removes the value of a top-level stylesheet parameter.
- Parameters:
- name - parameter name
resetParams
public void resetParams() throws XSLException
- Resets all the params set.
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