com.icl.saxon.style
public class XSLStyleSheet extends StyleElement
Method Summary | |
---|---|
void | allocateLocalSlots(int n)
Ensure there is enuogh space for local variables or parameters in any template |
int | allocateSlotNumber()
Allocate a slot number for a global variable or parameter |
void | gatherOutputProperties(Properties details)
Update an output properties object using the xsl:output elements in the stylesheet.
|
DecimalFormatManager | getDecimalFormatManager()
Get the DecimalFormatManager which handles decimal-format definitions |
Class | getExternalJavaClass(String uri)
Get a Java class for a given namespace URI, if possible.
return null if none is found. |
XSLStyleSheet | getImporter()
Get the StyleSheet that included or imported this one. |
KeyManager | getKeyManager()
Get the KeyManager which handles key definitions |
int | getMinImportPrecedence()
Get the minimum import precedence of this stylesheet, that is, the lowest precedence
of any stylesheet imported by this one |
protected short | getNamespaceAlias(short uriCode)
Get the declared namespace alias for a given namespace URI code if there is one.
|
int | getPrecedence()
Get the import precedence of this stylesheet |
PreparedStyleSheet | getPreparedStyleSheet()
Get the owning PreparedStyleSheet object |
PreviewManager | getPreviewManager()
Get the PreviewManager which handles saxon:preview element definitions |
RuleManager | getRuleManager()
Get the RuleManager which handles template rules |
protected Mode | getStripperRules()
Get the rules determining which nodes are to be stripped from the tree |
Vector | getTopLevel()
Get the top level elements in this stylesheet, after applying include/import |
protected boolean | hasNamespaceAliases() |
void | initialiseBindery(Bindery bindery)
Allocate space in bindery for all the variables needed
This has to be done early to accommodate preview mode |
Stripper | newStripper()
Create a Stripper which handles whitespace stripping definitions |
void | prepareAttributes()
Prepare the attributes on the stylesheet element |
void | preprocess()
Preprocess does all the processing possible before the source document is available.
|
void | process(Context context)
Process() is called once the source document is available. |
void | processAllAttributes()
Process the attributes of every node in the stylesheet |
protected void | processVersionAttribute(int nc)
Process the version attribute - mandatory on this element (but checked elsewhere) |
void | setImporter(XSLStyleSheet importer)
Set the StyleSheet that included or imported this one. |
void | setMinImportPrecedence(int precedence)
Set the minimum import precedence of this stylesheet, that is, the lowest precedence
of any stylesheet imported by this one |
void | setPrecedence(int prec)
Set the import precedence of this stylesheet |
void | setPreparedStyleSheet(PreparedStyleSheet sheet)
Create link to the owning PreparedStyleSheet object |
void | setPreviewManager(PreviewManager pm)
Set the preview manager |
void | setWasIncluded()
Indicate that this stylesheet was included (by its "importer") using an xsl:include
statement as distinct from xsl:import |
void | spliceIncludes()
Process xsl:include and xsl:import elements. |
boolean | stripsWhitespace()
Determine whether this stylesheet does any whitespace stripping |
void | updateOutputProperties(Properties details, Context context)
Update an output properties object using the xsl:output elements in the stylesheet.
|
void | validate()
Validate this element |
boolean | wasIncluded()
Determine whether this stylesheet was included (by its "importer") using an xsl:include
statement as distinct from xsl:import. |
Throws: TransformerException if a class is found but cannot be loaded
Returns: null if this is the principal stylesheet
Parameters: uriCode The code of the uri used in the stylesheet.
Returns: The code of the result uri to be used: return the stylesheet uri unchanged if no alias is defined
Returns: null if there are no saxon:preview elements