org.exolab.adaptx.xslt
Class XSLImport
This class represents an xsl:import or xsl:include
XSLElement.
static int | IMPORT- an int value indicating the xsl:import type
|
static int | INCLUDE- an int value indicating the xsl:include type
|
APPLY_IMPORTS, APPLY_TEMPLATES, ARG, ATTRIBUTE, ATTRIBUTE_SET, CALL_TEMPLATE, CDATA, CHOOSE, COMMENT, CONTENTS, COPY, COPY_OF, ELEMENT, ENTITY_REF, FOR_EACH, FUNCTIONS, ID, IF, IMPORT, INCLUDE, KEY, LITERAL, LOCALE, MESSAGE, NUMBER, OTHERWISE, OUTPUT, PARAM, PI, PRESERVE_SPACE, SCRIPT, SORT, STRIP_SPACE, STYLESHEET, TEMPLATE, TEXT, VALUE_OF, VARIABLE, WHEN, WITH_PARAM |
addNamespaceDecl, appendAction, appendText, appendText, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getStylesheet, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setAttribute, setNamespace, setTypeName |
IMPORT
public static final int IMPORT
an int value indicating the xsl:import type
INCLUDE
public static final int INCLUDE
an int value indicating the xsl:include type
XSLImport
public XSLImport()
Creates a new XSLImport
XSLImport
public XSLImport(XSLTStylesheet stylesheet)
Creates a new XSLImport
getHref
public String getHref()
Retrieves the href attribute of this XSLImport
- the href String of this XSLImport
getInputStream
public InputStream getInputStream(String documentBase)
throws java.net.MalformedURLException,
java.io.FileNotFoundException,
java.io.IOException Returns an InputStream for the file represented by the href
of this XSLImport
documentBase - the document base for resolving relative
URIs.
- an InputStream for the file represented by this
elements href attribute
getStylesheet
public XSLTStylesheet getStylesheet()
Returns the Stylesheet that this Import references
- getStylesheet in interface XSLObject
- the XSLStylesheet that this import references
setStylesheet
public void setStylesheet(XSLTStylesheet stylesheet)
Sets the Stylesheet that this Import references
stylesheet - the XSLStylesheet that this Import references