| |
|
| net.sf.saxon.style.StyleElement net.sf.saxon.style.XSLStylesheet
XSLStylesheet | public class XSLStylesheet extends StyleElement (Code) | | An xsl:stylesheet or xsl:transform element in the stylesheet.
Note this element represents a stylesheet module, not necessarily
the whole stylesheet.
|
Method Summary | |
protected void | addImportedSchema(String targetNamespace) | public int | allocateGlobalSlot(int fingerprint) | public void | allocatePatternSlots(int n) | public Expression | compile(Executable exec) | public Executable | compileStylesheet() Compile the stylesheet to create an executable. | protected void | declareJavaClass(String uri, Class theClass) | protected void | declareXQueryFunction(XQueryFunction function) | protected Comparator | findCollation(String name) Find a named collation. | public Properties | gatherOutputProperties(int fingerprint) Create an output properties object representing the xsl:output elements in the stylesheet.
Parameters: fingerprint - The name of the output format required. | public XSLCharacterMap | getCharacterMap(int fingerprint) Get a character map, identified by the fingerprint of its name.
Search backwards through the stylesheet.
Parameters: fingerprint - The fingerprint of the character map name,in the target namepool. | public DecimalFormatManager | getDecimalFormatManager() | public String | getDefaultCollationName() | public int | getDefaultValidation() | public Executable | getExecutable() | public FunctionLibrary | getFunctionLibrary() Get the function library. | public XSLVariableDeclaration | getGlobalVariable(int fingerprint) | protected HashSet | getImportedSchemaTable() | public XSLStylesheet | getImporter() Get the StyleSheet that included or imported this one. | public int | getInputTypeAnnotations() Get the value of the input-type-annotations attribute, for this module combined with that
of all included/imported modules. | public int | getInputTypeAnnotationsAttribute() Get the value of the input-type-annotations attribute, for this module alone. | public KeyManager | getKeyManager() | public LocationMap | getLocationMap() | public int | getMinImportPrecedence() | protected int | getNamespaceAlias(short uriCode) Get the declared namespace alias for a given namespace URI code if there is one.
If there is more than one, we get the last.
Parameters: uriCode - The code of the uri used in the stylesheet. | public int | getPrecedence() | public PreparedStylesheet | getPreparedStylesheet() | public RuleManager | getRuleManager() | protected Mode | getStripperRules() | public NamePool | getTargetNamePool() | public List | getTopLevel() | protected boolean | hasNamespaceAliases() | protected boolean | isAliasResultNamespace(short uriCode) | protected boolean | isImportedSchema(String targetNamespace) | public void | prepareAttributes() | public void | preprocess() Preprocess does all the processing possible before the source document is available.
It is done once per stylesheet, so the stylesheet can be reused for multiple source
documents. | public void | processAllAttributes() | public void | setCollation(String name, Comparator collation, boolean isDefault) | public void | setImporter(XSLStylesheet importer) Set the StyleSheet that included or imported this one. | public void | setInputTypeAnnotations(int annotations) Set the value of the input-type-annotations attribute, for this module combined with that
of all included/imported modules. | public void | setMinImportPrecedence(int precedence) | public void | setNeedsDynamicOutputProperties(boolean b) | public void | setPrecedence(int prec) | public void | setPreparedStylesheet(PreparedStylesheet sheet) | public void | setWasIncluded() | public void | spliceIncludes() Process xsl:include and xsl:import elements. | public boolean | stripsWhitespace() | public void | validate() |
ANNOTATION_PRESERVE | final public static int ANNOTATION_PRESERVE(Code) | | |
ANNOTATION_STRIP | final public static int ANNOTATION_STRIP(Code) | | |
addImportedSchema | protected void addImportedSchema(String targetNamespace)(Code) | | |
allocateGlobalSlot | public int allocateGlobalSlot(int fingerprint)(Code) | | Allocate a slot number for a global variable or parameter
|
allocatePatternSlots | public void allocatePatternSlots(int n)(Code) | | Ensure there is enough space for local variables or parameters when evaluating the match pattern of
template rules
|
declareJavaClass | protected void declareJavaClass(String uri, Class theClass)(Code) | | Declare a URI that maps to a Java class containing extension functions
|
findCollation | protected Comparator findCollation(String name)(Code) | | Find a named collation. Note this method should only be used at compile-time, before declarations
have been pre-processed. After that time, use getCollation().
Parameters: name - identifies the name of the collation required; null indicates that the defaultcollation is required null if the collation is not found |
gatherOutputProperties | public Properties gatherOutputProperties(int fingerprint) throws XPathException(Code) | | Create an output properties object representing the xsl:output elements in the stylesheet.
Parameters: fingerprint - The name of the output format required. If set to -1, gathersinformation for the unnamed output format the Properties object containing the details of the specified output format throws: XPathException - if a named output format does not exist inthe stylesheet |
getCharacterMap | public XSLCharacterMap getCharacterMap(int fingerprint)(Code) | | Get a character map, identified by the fingerprint of its name.
Search backwards through the stylesheet.
Parameters: fingerprint - The fingerprint of the character map name,in the target namepool. the identified character map, or null if not found |
getDecimalFormatManager | public DecimalFormatManager getDecimalFormatManager()(Code) | | Get the DecimalFormatManager which handles decimal-format definitions
|
getDefaultCollationName | public String getDefaultCollationName()(Code) | | Get the name of the default collation
|
getDefaultValidation | public int getDefaultValidation()(Code) | | Get the value of the default validation attribute
|
getExecutable | public Executable getExecutable()(Code) | | Get the run-time Executable object
|
getFunctionLibrary | public FunctionLibrary getFunctionLibrary()(Code) | | Get the function library. Available only on the principal stylesheet module
|
getGlobalVariable | public XSLVariableDeclaration getGlobalVariable(int fingerprint)(Code) | | Get the global variable or parameter with a given fingerprint (taking
precedence rules into account)
|
getImportedSchemaTable | protected HashSet getImportedSchemaTable()(Code) | | |
getImporter | public XSLStylesheet getImporter()(Code) | | Get the StyleSheet that included or imported this one.
null if this is the principal stylesheet |
getKeyManager | public KeyManager getKeyManager()(Code) | | Get the KeyManager which handles key definitions
|
getMinImportPrecedence | public int getMinImportPrecedence()(Code) | | Get the minimum import precedence of this stylesheet, that is, the lowest precedence
of any stylesheet imported by this one
|
getNamespaceAlias | protected int getNamespaceAlias(short uriCode)(Code) | | Get the declared namespace alias for a given namespace URI code if there is one.
If there is more than one, we get the last.
Parameters: uriCode - The code of the uri used in the stylesheet. The namespace code to be used (prefix in top half, uri in bottom half): return -1if no alias is defined |
getPrecedence | public int getPrecedence()(Code) | | Get the import precedence of this stylesheet
|
getRuleManager | public RuleManager getRuleManager()(Code) | | Get the RuleManager which handles template rules
|
getStripperRules | protected Mode getStripperRules()(Code) | | Get the rules determining which nodes are to be stripped from the tree
|
getTargetNamePool | public NamePool getTargetNamePool()(Code) | | Get the namepool to be used at run-time, this namepool holds the names used in
all XPath expressions and patterns
|
getTopLevel | public List getTopLevel()(Code) | | Get the top level elements in this stylesheet, after applying include/import
|
hasNamespaceAliases | protected boolean hasNamespaceAliases()(Code) | | |
isAliasResultNamespace | protected boolean isAliasResultNamespace(short uriCode)(Code) | | Determine if a namespace is included in the result-prefix of a namespace-alias
|
isImportedSchema | protected boolean isImportedSchema(String targetNamespace)(Code) | | Get an imported schema with a given namespace
Parameters: targetNamespace - The target namespace of the required schema.Supply an empty string for the default namespace the required Schema, or null if no such schema has been imported |
prepareAttributes | public void prepareAttributes() throws XPathException(Code) | | Prepare the attributes on the stylesheet element
|
preprocess | public void preprocess() throws XPathException(Code) | | Preprocess does all the processing possible before the source document is available.
It is done once per stylesheet, so the stylesheet can be reused for multiple source
documents. The method is called only on the XSLStylesheet element representing the
principal stylesheet module
|
processAllAttributes | public void processAllAttributes() throws XPathException(Code) | | Process the attributes of every node in the stylesheet
|
setCollation | public void setCollation(String name, Comparator collation, boolean isDefault)(Code) | | Register a named collation (actually a Comparator)
|
setImporter | public void setImporter(XSLStylesheet importer)(Code) | | Set the StyleSheet that included or imported this one.
|
setMinImportPrecedence | public void setMinImportPrecedence(int precedence)(Code) | | Set the minimum import precedence of this stylesheet, that is, the lowest precedence
of any stylesheet imported by this one
|
setNeedsDynamicOutputProperties | public void setNeedsDynamicOutputProperties(boolean b)(Code) | | Set that this stylesheet needs dynamic output properties
|
setPrecedence | public void setPrecedence(int prec)(Code) | | Set the import precedence of this stylesheet
|
setPreparedStylesheet | public void setPreparedStylesheet(PreparedStylesheet sheet)(Code) | | Create link to the owning PreparedStylesheet object
|
setWasIncluded | public void setWasIncluded()(Code) | | Indicate that this stylesheet was included (by its "importer") using an xsl:include
statement as distinct from xsl:import
|
spliceIncludes | public void spliceIncludes() throws XPathException(Code) | | Process xsl:include and xsl:import elements.
|
stripsWhitespace | public boolean stripsWhitespace()(Code) | | Determine whether this stylesheet does any whitespace stripping
|
Methods inherited from net.sf.saxon.style.StyleElement | public int allocateLocationId(String systemId, int lineNumber)(Code)(Java Doc) public void allocateSlots(Expression exp)(Code)(Java Doc) public boolean backwardsCompatibleModeIsEnabled()(Code)(Java Doc) public XSLVariableDeclaration bindVariable(int fingerprint) throws StaticError(Code)(Java Doc) public void checkEmpty() throws XPathException(Code)(Java Doc) protected void checkSortComesFirst(boolean sortRequired) throws XPathException(Code)(Java Doc) public void checkTopLevel(String errorCode) throws XPathException(Code)(Java Doc) protected void checkUnknownAttribute(int nc) throws XPathException(Code)(Java Doc) public void checkWithinTemplate() throws XPathException(Code)(Java Doc) abstract public Expression compile(Executable exec) throws XPathException(Code)(Java Doc) protected void compileError(TransformerException error) throws XPathException(Code)(Java Doc) protected void compileError(String message) throws XPathException(Code)(Java Doc) protected void compileError(String message, String errorCode) throws XPathException(Code)(Java Doc) public Expression compileSequenceConstructor(Executable exec, AxisIterator iter, boolean includeParams) throws XPathException(Code)(Java Doc) protected void compileWarning(String message, String errorCode) throws XPathException(Code)(Java Doc) protected boolean definesExcludedNamespace(short uriCode)(Code)(Java Doc) protected boolean definesExtensionElement(short uriCode)(Code)(Java Doc) protected Expression fallbackProcessing(Executable exec, StyleElement instruction) throws XPathException(Code)(Java Doc) public void fixupReferences() throws XPathException(Code)(Java Doc) public boolean forwardsCompatibleModeIsEnabled()(Code)(Java Doc) protected AttributeSet[] getAttributeSets(String use, List list) throws XPathException(Code)(Java Doc) public String getAttributeValue(String clarkName)(Code)(Java Doc) protected ItemType getCommonChildItemType()(Code)(Java Doc) public int getConstructType()(Code)(Java Doc) public SlotManager getContainingSlotManager()(Code)(Java Doc) public XSLStylesheet getContainingStylesheet()(Code)(Java Doc) protected String getDefaultCollationName()(Code)(Java Doc) protected short getDefaultXPathNamespace()(Code)(Java Doc) public Executable getExecutable()(Code)(Java Doc) protected StyleElement getLastChildInstruction()(Code)(Java Doc) public int getLineNumber()(Code)(Java Doc) public int getLineNumber(int locationId)(Code)(Java Doc) public LocationProvider getLocationProvider()(Code)(Java Doc) public NamespaceResolver getNamespaceResolver()(Code)(Java Doc) public int getObjectFingerprint()(Code)(Java Doc) public int getObjectNameCode()(Code)(Java Doc) public int getPrecedence()(Code)(Java Doc) public PreparedStylesheet getPreparedStylesheet()(Code)(Java Doc) protected XSLStylesheet getPrincipalStylesheet()(Code)(Java Doc) public Iterator getProperties()(Code)(Java Doc) public Object getProperty(String name)(Code)(Java Doc) protected ItemType getReturnedItemType()(Code)(Java Doc) public SchemaType getSchemaType(String typeAtt) throws XPathException(Code)(Java Doc) public StaticContext getStaticContext()(Code)(Java Doc) public XSLFunction getStylesheetFunction(int fingerprint, int arity)(Code)(Java Doc) public String getSystemId(int locationId)(Code)(Java Doc) public NamePool getTargetNamePool()(Code)(Java Doc) public int getTypeAnnotation(SchemaType schemaType)(Code)(Java Doc) public BigDecimal getVersion()(Code)(Java Doc) protected WithParam[] getWithParamInstructions(Executable exec, boolean tunnel, Instruction caller) throws XPathException(Code)(Java Doc) public boolean isExcludedNamespace(short uriCode)(Code)(Java Doc) protected boolean isExplaining()(Code)(Java Doc) public boolean isExtensionNamespace(short uriCode)(Code)(Java Doc) public boolean isInstruction()(Code)(Java Doc) protected boolean isPermittedChild(StyleElement child)(Code)(Java Doc) public boolean isTopLevel()(Code)(Java Doc) protected void issueWarning(TransformerException error)(Code)(Java Doc) protected void issueWarning(String message, SourceLocator locator)(Code)(Java Doc) public Expression makeAttributeValueTemplate(String expression) throws XPathException(Code)(Java Doc) public Expression makeExpression(String expression) throws XPathException(Code)(Java Doc) final public int makeNameCode(String qname) throws XPathException, NamespaceException(Code)(Java Doc) public SavedNamespaceContext makeNamespaceContext()(Code)(Java Doc) public Pattern makePattern(String pattern) throws XPathException(Code)(Java Doc) public SequenceType makeSequenceType(String sequenceType) throws XPathException(Code)(Java Doc) protected SortKeyDefinition[] makeSortKeys()(Code)(Java Doc) protected static TraceWrapper makeTraceInstruction(StyleElement source, Expression child)(Code)(Java Doc) public void markTailCalls()(Code)(Java Doc) public boolean mayContainFallback()(Code)(Java Doc) public boolean mayContainSequenceConstructor()(Code)(Java Doc) public void postValidate() throws XPathException(Code)(Java Doc) abstract public void prepareAttributes() throws XPathException(Code)(Java Doc) public void processAllAttributes() throws XPathException(Code)(Java Doc) final public void processAttributes() throws XPathException(Code)(Java Doc) protected void processDefaultCollationAttribute(String nc) throws XPathException(Code)(Java Doc) protected void processDefaultXPathNamespaceAttribute(String nc)(Code)(Java Doc) protected void processExcludedNamespaces(String nc) throws XPathException(Code)(Java Doc) protected void processExtensionElementAttribute(String nc) throws XPathException(Code)(Java Doc) protected void processVersionAttribute(String nc) throws XPathException(Code)(Java Doc) public void reportAbsence(String attribute) throws XPathException(Code)(Java Doc) public void setLineNumber(int lineNumber)(Code)(Java Doc) public void setObjectNameCode(int nameCode)(Code)(Java Doc) protected void setValidationError(TransformerException reason, int circumstances)(Code)(Java Doc) public void substituteFor(StyleElement temp)(Code)(Java Doc) public Expression typeCheck(String name, Expression exp) throws XPathException(Code)(Java Doc) public Pattern typeCheck(String name, Pattern pattern) throws XPathException(Code)(Java Doc) protected void undeclaredNamespaceError(String prefix, String errorCode) throws XPathException(Code)(Java Doc) public void validate() throws XPathException(Code)(Java Doc) protected void validateChildren() throws XPathException(Code)(Java Doc) public void validateSubtree() throws XPathException(Code)(Java Doc)
|
|
|
|