org.exolab.adaptx.xslt

Class XSLImport

public class XSLImport extends XSLObject

This class represents an xsl:import or xsl:include XSLElement.

Author: Keith Visco

Field Summary
static intIMPORT
an int value indicating the xsl:import type
static intINCLUDE
an int value indicating the xsl:include type
Constructor Summary
XSLImport()
Creates a new XSLImport
XSLImport(XSLTStylesheet stylesheet)
Creates a new XSLImport
Method Summary
StringgetHref()
Retrieves the href attribute of this XSLImport
InputStreamgetInputStream(String documentBase)
Returns an InputStream for the file represented by the href of this XSLImport
XSLTStylesheetgetStylesheet()
Returns the Stylesheet that this Import references
voidsetStylesheet(XSLTStylesheet stylesheet)
Sets the Stylesheet that this Import references

Field Detail

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

Constructor Detail

XSLImport

public XSLImport()
Creates a new XSLImport

XSLImport

public XSLImport(XSLTStylesheet stylesheet)
Creates a new XSLImport

Method Detail

getHref

public String getHref()
Retrieves the href attribute of this XSLImport

Returns: the href String of this XSLImport

getInputStream

public InputStream getInputStream(String documentBase)
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

getStylesheet

public XSLTStylesheet getStylesheet()
Returns the Stylesheet that this Import references

Returns: the XSLStylesheet that this import references

setStylesheet

public void setStylesheet(XSLTStylesheet stylesheet)
Sets the Stylesheet that this Import references

Parameters: stylesheet the XSLStylesheet that this Import references