Package org.exolab.adaptx.xslt
Class XSLImport
java.lang.Object
org.exolab.adaptx.xslt.XSLObject
org.exolab.adaptx.xslt.XSLImport
This class represents an xsl:import or xsl:include
XSLElement.
- Author:
- Keith Visco
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
an int value indicating the xsl:import typestatic final int
an int value indicating the xsl:include typeFields inherited from class org.exolab.adaptx.xslt.XSLObject
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 Summary
ConstructorsConstructorDescriptionCreates a new XSLImportXSLImport
(XSLTStylesheet stylesheet) Creates a new XSLImport -
Method Summary
Modifier and TypeMethodDescriptiongetHref()
Retrieves the href attribute of this XSLImportgetInputStream
(String documentBase) Returns an InputStream for the file represented by the href of this XSLImportReturns the Stylesheet that this Import referencesvoid
setStylesheet
(XSLTStylesheet stylesheet) Sets the Stylesheet that this Import referencesMethods inherited from class org.exolab.adaptx.xslt.XSLObject
addNamespaceDecl, appendAction, appendText, appendText, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setAttribute, setNamespace, setTypeName
-
Field Details
-
IMPORT
public static final int IMPORTan int value indicating the xsl:import type- See Also:
-
INCLUDE
public static final int INCLUDEan int value indicating the xsl:include type- See Also:
-
-
Constructor Details
-
XSLImport
public XSLImport()Creates a new XSLImport -
XSLImport
Creates a new XSLImport
-
-
Method Details
-
getHref
Retrieves the href attribute of this XSLImport- Returns:
- the href String of this XSLImport
-
getStylesheet
Returns the Stylesheet that this Import references- Overrides:
getStylesheet
in classXSLObject
- Returns:
- the XSLStylesheet that this import references
-
getInputStream
public InputStream getInputStream(String documentBase) throws MalformedURLException, FileNotFoundException, IOException Returns an InputStream for the file represented by the href of this XSLImport- Parameters:
documentBase
- the document base for resolving relative URIs.- Returns:
- an InputStream for the file represented by this elements href attribute
- Throws:
MalformedURLException
FileNotFoundException
IOException
-
setStylesheet
Sets the Stylesheet that this Import references- Parameters:
stylesheet
- the XSLStylesheet that this Import references
-