net.sf.saxon.style
public class XSLStylesheet extends StyleElement
Field Summary | |
---|---|
static int | ANNOTATION_PRESERVE |
static int | ANNOTATION_STRIP |
Executable | exec |
Method Summary | |
---|---|
protected void | addImportedSchema(String targetNamespace) |
int | allocateGlobalSlot(int fingerprint)
Allocate a slot number for a global variable or parameter |
void | allocatePatternSlots(int n)
Ensure there is enough space for local variables or parameters when evaluating the match pattern of
template rules |
Expression | compile(Executable exec)
Dummy compile() method to satisfy the interface |
Executable | compileStylesheet()
Compile the stylesheet to create an executable. |
protected void | declareJavaClass(String uri, Class theClass)
Declare a URI that maps to a Java class containing extension functions |
protected void | declareXQueryFunction(XQueryFunction function)
Declare an imported XQuery function |
protected Comparator | findCollation(String name)
Find a named collation. |
Properties | gatherOutputProperties(int fingerprint)
Create an output properties object representing the xsl:output elements in the stylesheet. |
XSLCharacterMap | getCharacterMap(int fingerprint)
Get a character map, identified by the fingerprint of its name.
|
DecimalFormatManager | getDecimalFormatManager()
Get the DecimalFormatManager which handles decimal-format definitions |
String | getDefaultCollationName()
Get the name of the default collation |
int | getDefaultValidation()
Get the value of the default validation attribute |
Executable | getExecutable()
Get the run-time Executable object |
FunctionLibrary | getFunctionLibrary()
Get the function library. |
XSLVariableDeclaration | getGlobalVariable(int fingerprint)
Get the global variable or parameter with a given fingerprint (taking
precedence rules into account) |
protected HashSet | getImportedSchemaTable() |
XSLStylesheet | getImporter()
Get the StyleSheet that included or imported this one. |
int | getInputTypeAnnotations()
Get the value of the input-type-annotations attribute, for this module combined with that
of all included/imported modules. |
int | getInputTypeAnnotationsAttribute()
Get the value of the input-type-annotations attribute, for this module alone.
|
KeyManager | getKeyManager()
Get the KeyManager which handles key definitions |
LocationMap | getLocationMap()
Get the locationMap object |
int | getMinImportPrecedence()
Get the minimum import precedence of this stylesheet, that is, the lowest precedence
of any stylesheet imported by this one |
protected int | 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 |
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 |
NamePool | getTargetNamePool()
Get the namepool to be used at run-time, this namepool holds the names used in
all XPath expressions and patterns |
List | getTopLevel()
Get the top level elements in this stylesheet, after applying include/import |
protected boolean | hasNamespaceAliases() |
protected boolean | isAliasResultNamespace(short uriCode)
Determine if a namespace is included in the result-prefix of a namespace-alias |
protected boolean | isImportedSchema(String targetNamespace)
Get an imported schema with a given namespace |
void | prepareAttributes()
Prepare the attributes on the stylesheet element |
void | preprocess()
Preprocess does all the processing possible before the source document is available.
|
void | processAllAttributes()
Process the attributes of every node in the stylesheet |
void | setCollation(String name, Comparator collation, boolean isDefault)
Register a named collation (actually a Comparator) |
void | setImporter(XSLStylesheet importer)
Set the StyleSheet that included or imported this one. |
void | setInputTypeAnnotations(int annotations)
Set the value of the input-type-annotations attribute, for this module combined with that
of all included/imported modules. |
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 | setNeedsDynamicOutputProperties(boolean b)
Set that this stylesheet needs dynamic output properties |
void | setPrecedence(int prec)
Set the import precedence of this stylesheet |
void | setPreparedStylesheet(PreparedStylesheet sheet)
Create link to the owning PreparedStylesheet object |
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 | validate()
Validate this element |
Parameters: name identifies the name of the collation required; null indicates that the default collation is required
Returns: null if the collation is not found
Parameters: fingerprint The name of the output format required. If set to -1, gathers information for the unnamed output format
Returns: the Properties object containing the details of the specified output format
Throws: XPathException if a named output format does not exist in the stylesheet
Parameters: fingerprint The fingerprint of the character map name, in the target namepool.
Returns: the identified character map, or null if not found
Returns: null if this is the principal stylesheet
Parameters: uriCode The code of the uri used in the stylesheet.
Returns: The namespace code to be used (prefix in top half, uri in bottom half): return -1 if no alias is defined
Parameters: targetNamespace The target namespace of the required schema. Supply an empty string for the default namespace
Returns: the required Schema, or null if no such schema has been imported