|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.om.AbstractNode com.icl.saxon.tree.NodeImpl com.icl.saxon.tree.ParentNodeImpl com.icl.saxon.tree.ElementImpl com.icl.saxon.tree.ElementWithAttributes com.icl.saxon.style.StyleElement com.icl.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 com.icl.saxon.style.StyleElement |
attributeSets, extensionNamespaces, REPORT_ALWAYS, REPORT_IF_INSTANTIATED, REPORT_UNLESS_FORWARDS_COMPATIBLE, reportingCircumstances, staticContext, validationError, version |
Fields inherited from class com.icl.saxon.tree.ElementWithAttributes |
attributeList, namespaceList |
Fields inherited from class com.icl.saxon.tree.ElementImpl |
nameCode, root, sequence |
Fields inherited from class com.icl.saxon.tree.NodeImpl |
emptyArray, index, parent |
Fields inherited from class com.icl.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 com.icl.saxon.om.NodeInfo |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
Constructor Summary | |
XSLStyleSheet()
|
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(java.util.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 |
java.lang.Class |
getExternalJavaClass(java.lang.String uri)
Get a Java class for a given namespace URI, if possible. |
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 |
java.util.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(java.util.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. |
Methods inherited from class com.icl.saxon.tree.ElementImpl |
addChild, compact, copy, copyStringValue, dropChildren, enumerateChildren, generateId, getBaseURI, getChildNodes, getDocumentRoot, getFirstChild, getLastChild, getLineNumber, getNameCode, getNodeType, getNodeValue, getNthChild, getSequenceNumber, getStringValue, getSystemId, hasChildNodes, makeNameCode, removeChild, renumberChildren, setLineNumber, setNameCode, setSystemId, useChildrenArray |
Methods inherited from class com.icl.saxon.tree.NodeImpl |
compareOrder, getDisplayName, getDocumentElement, getEnumeration, getFingerprint, getLocalName, getNamePool, getNextInDocument, getNextSibling, getOriginatingNode, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getURI, isSameNodeInfo, removeNode |
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, getLineNumber, 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 RuleManager getRuleManager()
protected Mode getStripperRules()
public Stripper newStripper()
public boolean stripsWhitespace()
public KeyManager getKeyManager()
public DecimalFormatManager getDecimalFormatManager()
public PreviewManager getPreviewManager()
public void setPreviewManager(PreviewManager pm)
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 boolean wasIncluded()
public java.util.Vector getTopLevel()
public int allocateSlotNumber()
public void allocateLocalSlots(int n)
public void prepareAttributes() throws TransformerConfigurationException
prepareAttributes
in class StyleElement
TransformerConfigurationException
protected void processVersionAttribute(int nc)
processVersionAttribute
in class StyleElement
nc
- the name code of the attribute requiredprotected short getNamespaceAlias(short uriCode)
uriCode
- The code of the uri used in the stylesheet.
public void validate() throws TransformerConfigurationException
validate
in class StyleElement
TransformerConfigurationException
public void preprocess() throws TransformerConfigurationException
preprocess
in class StyleElement
TransformerConfigurationException
public void spliceIncludes() throws TransformerConfigurationException
TransformerConfigurationException
protected boolean hasNamespaceAliases()
public void processAllAttributes() throws TransformerConfigurationException
processAllAttributes
in class StyleElement
TransformerConfigurationException
public void initialiseBindery(Bindery bindery)
public void gatherOutputProperties(java.util.Properties details)
public void updateOutputProperties(java.util.Properties details, Context context) throws TransformerException
TransformerException
public java.lang.Class getExternalJavaClass(java.lang.String uri) throws TransformerException
TransformerException
- if a class is found but cannot
be loadedpublic void process(Context context) throws TransformerException
process
in class StyleElement
context
- The context in the source XML document, giving access to the current node,
the current variables, etc.
TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |