|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.om.AbstractNode
net.sf.saxon.tree.NodeImpl
net.sf.saxon.tree.ParentNodeImpl
net.sf.saxon.tree.ElementImpl
net.sf.saxon.tree.ElementWithAttributes
net.sf.saxon.style.StyleElement
net.sf.saxon.style.XSLStyleSheet
An xsl:stylesheet or xsl:transform element in the stylesheet.
Note this element represents a stylesheet module, not necessarily
the whole stylesheet.
Field Summary |
Fields inherited from class net.sf.saxon.style.StyleElement |
defaultXPathNamespace, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version |
Fields inherited from class net.sf.saxon.tree.ElementWithAttributes |
attributeList, namespaceList |
Fields inherited from class net.sf.saxon.tree.ElementImpl |
nameCode, root, sequence |
Fields inherited from class net.sf.saxon.tree.NodeImpl |
index, parent |
Fields inherited from class net.sf.saxon.om.AbstractNode |
NODE_LETTER |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface net.sf.saxon.om.NodeInfo |
ALL_NAMESPACES, LOCAL_NAMESPACES, NO_NAMESPACES |
Constructor Summary | |
XSLStyleSheet()
|
Method Summary | |
protected void |
addImportedSchema(String targetNamespace)
|
void |
allocateLocalSlots(int n)
Ensure there is enough space for local variables or parameters in any template |
int |
allocateSlotNumber()
Allocate a slot number for a global variable or parameter |
protected XQueryFunction |
bindXQueryFunction(int fingerprint)
Get an imported XQuery function with a given name, if there is one |
Instruction |
compile()
Compile the stylesheet to create an executable. |
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 |
Class |
getExternalJavaClass(String uri)
Get a Java class for a given namespace URI, if possible. |
XSLVariableDeclaration |
getGlobalVariable(int fingerprint)
Get the global variable or parameter with a given fingerprint (taking precedence rules into account) |
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 int |
getModuleNumber(String module)
Get the index number of a particular stylesheet module. |
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 |
protected int |
putModuleNumber(String module)
Add a stylesheet module to the list of modules if it is not already there, returning its integer code. |
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 |
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 |
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 |
Methods inherited from class net.sf.saxon.tree.ElementImpl |
addChild, compact, enumerateChildren, generateId, getBaseURI, getDocumentRoot, getFirstChild, getLastChild, getNameCode, getNodeKind, getNodeValue, getNthChild, getRoot, getSequenceNumber, getStringValue, getSystemId, hasChildNodes, setNameCode, setSystemId, useChildrenArray |
Methods inherited from class net.sf.saxon.tree.NodeImpl |
compareOrder, copy, getDisplayName, getDocumentElement, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getOriginatingNode, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getURI, isSameNode, iterateAxis, iterateAxis |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.Locator |
getColumnNumber, getPublicId, getSystemId |
Methods inherited from interface org.w3c.dom.Element |
getElementsByTagName, getElementsByTagNameNS, getTagName |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public XSLStyleSheet()
Method Detail |
public void setPreparedStyleSheet(PreparedStyleSheet sheet)
public PreparedStyleSheet getPreparedStyleSheet()
getPreparedStyleSheet
in class StyleElement
public NamePool getTargetNamePool()
getTargetNamePool
in class StyleElement
protected int putModuleNumber(String module)
protected int getModuleNumber(String module)
NullPointerException
- if not foundpublic RuleManager getRuleManager()
protected Mode getStripperRules()
public boolean stripsWhitespace()
public KeyManager getKeyManager()
public DecimalFormatManager getDecimalFormatManager()
public void setCollation(String name, Comparator collation, boolean isDefault)
protected Comparator findCollation(String name)
name
- identifies the name of the collation required; null indicates that the default
collation is required
public String getDefaultCollationName()
public XSLCharacterMap getCharacterMap(int fingerprint)
fingerprint
- The fingerprint of the character map name,
in the target namepool.
public void setPrecedence(int prec)
public int getPrecedence()
getPrecedence
in class StyleElement
public int getMinImportPrecedence()
public void setMinImportPrecedence(int precedence)
public void setImporter(XSLStyleSheet importer)
public XSLStyleSheet getImporter()
public void setWasIncluded()
public List getTopLevel()
public int allocateSlotNumber()
public void allocateLocalSlots(int n)
public void prepareAttributes() throws TransformerConfigurationException
prepareAttributes
in class StyleElement
TransformerConfigurationException
public int getDefaultValidation()
protected int getNamespaceAlias(short uriCode)
uriCode
- The code of the uri used in the stylesheet.
protected boolean isAliasResultNamespace(short uriCode)
public void validate() throws TransformerConfigurationException
validate
in class StyleElement
TransformerConfigurationException
public void preprocess() throws TransformerConfigurationException
TransformerConfigurationException
public void spliceIncludes() throws TransformerConfigurationException
TransformerConfigurationException
protected boolean hasNamespaceAliases()
public void processAllAttributes() throws TransformerConfigurationException
processAllAttributes
in class StyleElement
TransformerConfigurationException
public XSLVariableDeclaration getGlobalVariable(int fingerprint)
public Properties gatherOutputProperties(int fingerprint) throws TransformerConfigurationException
fingerprint
- The name of the output format required. If set to -1, gathers
information for the unnamed output format
TransformerConfigurationException
- if a named output format does not exist in
the stylesheetpublic Class getExternalJavaClass(String uri)
protected void declareXQueryFunction(XQueryFunction function)
protected XQueryFunction bindXQueryFunction(int fingerprint)
protected boolean isImportedSchema(String targetNamespace)
targetNamespace
- The target namespace of the required schema.
Supply an empty string for the default namespace
protected void addImportedSchema(String targetNamespace)
public Instruction compile() throws TransformerConfigurationException
compile
in class StyleElement
TransformerConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |