public class XSLImport extends XSLObject
Modifier and Type | Field and Description |
---|---|
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, KEY, LITERAL, LOCALE, MESSAGE, NUMBER, OTHERWISE, OUTPUT, PARAM, PI, PRESERVE_SPACE, SCRIPT, SORT, STRIP_SPACE, STYLESHEET, TEMPLATE, TEXT, VALUE_OF, VARIABLE, WHEN, WITH_PARAM
Constructor and Description |
---|
XSLImport()
Creates a new XSLImport
|
XSLImport(XSLTStylesheet stylesheet)
Creates a new XSLImport
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHref()
Retrieves the href attribute of this XSLImport
|
java.io.InputStream |
getInputStream(java.lang.String documentBase)
Returns an InputStream for the file represented by the href
of this XSLImport
|
XSLTStylesheet |
getStylesheet()
Returns the Stylesheet that this Import references
|
void |
setStylesheet(XSLTStylesheet stylesheet)
Sets the Stylesheet that this Import references
|
addNamespaceDecl, appendAction, appendText, appendText, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setAttribute, setNamespace, setTypeName
public static final int IMPORT
public static final int INCLUDE
public XSLImport()
public XSLImport(XSLTStylesheet stylesheet)
public java.lang.String getHref()
public XSLTStylesheet getStylesheet()
getStylesheet
in class XSLObject
public java.io.InputStream getInputStream(java.lang.String documentBase) throws java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
documentBase
- the document base for resolving relative
URIs.java.net.MalformedURLException
java.io.FileNotFoundException
java.io.IOException
public void setStylesheet(XSLTStylesheet stylesheet)
stylesheet
- the XSLStylesheet that this Import references