net.sf.saxon.style

Class XSLGeneralIncorporate

public abstract class XSLGeneralIncorporate extends StyleElement

Abstract class to represent xsl:include or xsl:import element in the stylesheet.
The xsl:include and xsl:import elements have mandatory attribute href
Field Summary
Stringhref
DocumentImplincludedDoc
Method Summary
Expressioncompile(Executable exec)
XSLStylesheetgetIncludedStylesheet(XSLStylesheet importer, int precedence)
Get the included or imported stylesheet module
abstract booleanisImport()
isImport() returns true if this is an xsl:import declaration rather than an xsl:include
voidprepareAttributes()
voidvalidate()

Field Detail

href

String href

includedDoc

DocumentImpl includedDoc

Method Detail

compile

public Expression compile(Executable exec)

getIncludedStylesheet

public XSLStylesheet getIncludedStylesheet(XSLStylesheet importer, int precedence)
Get the included or imported stylesheet module

Parameters: importer the module that requested the include or export (used to check for cycles) precedence the import precedence to be allocated to the included or imported module

Returns: the xsl:stylesheet element at the root of the included/imported module

Throws: XPathException if any failure occurs

isImport

public abstract boolean isImport()
isImport() returns true if this is an xsl:import declaration rather than an xsl:include

Returns: true if this is an xsl:import declaration, false if it is an xsl:include

prepareAttributes

public void prepareAttributes()

validate

public void validate()