|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--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.
Fields inherited from class com.icl.saxon.style.StyleElement |
attributeSets, validationError, version |
Fields inherited from class com.icl.saxon.tree.ElementWithAttributes |
attributeList, namespaceList |
Fields inherited from class com.icl.saxon.tree.ElementImpl |
emptyArray, emptyEnumeration, index, nameCode, parent, root, sequence |
Fields inherited from interface com.icl.saxon.om.NodeInfo |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NODE_TYPE_NAMES, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
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 |
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 |
DecimalFormatManager |
getDecimalFormatManager()
Get the DecimalFormatManager which handles decimal-format definitions |
XSLStyleSheet |
getImporter()
Get the StyleSheet that included or imported this one. |
KeyManager |
getKeyManager()
Get the KeyManager which handles key definitions |
java.lang.String |
getMediaType()
Get the media type (MIME type) of the principal output of this stylesheet |
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 |
Stripper |
getStripper()
Get the Stripper which handles whitespace stripping definitions |
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 |
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 |
void |
setImporter(XSLStyleSheet importer)
Set the StyleSheet that included or imported 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. |
void |
updateOutputDetails(OutputDetails details)
Update an output details 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.xml.sax.Locator |
getLineNumber, getPublicId, getSystemId |
Methods inherited from interface com.icl.saxon.om.NodeInfo |
copy, copyStringValue, defaultAction, enumerateChildren, getAllChildNodes, getDisplayName, getDocumentElement, getDocumentRoot, getFingerprint, getIndex, getLineNumber, getLocalName, getNameCode, getNextInDocument, getNodeName, getNodeType, getNumberOfChildren, getPath, getPrefix, getPreviousInDocument, getSequenceNumber, getSequentialKey, getSystemId, getURI, getURICode, getValue, isDocumentElement, isSameNode |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.w3c.dom.Element |
getElementsByTagName, getElementsByTagNameNS, getTagName |
Constructor Detail |
public XSLStyleSheet()
Method Detail |
public void setPreparedStyleSheet(PreparedStyleSheet sheet)
public PreparedStyleSheet getPreparedStyleSheet()
getPreparedStyleSheet
in class StyleElement
com.icl.saxon.style.StyleElement
public RuleManager getRuleManager()
public Stripper getStripper()
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 java.lang.String getMediaType()
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 org.xml.sax.SAXException
prepareAttributes
in class StyleElement
protected void processVersionAttribute(int nc) throws org.xml.sax.SAXException
processVersionAttribute
in class StyleElement
com.icl.saxon.style.StyleElement
nc
- the name code of the attribute requiredprotected short getNamespaceAlias(short uriCode) throws org.xml.sax.SAXException
uriCode
- The code of the uri used in the stylesheet.public void validate() throws org.xml.sax.SAXException
validate
in class StyleElement
public void preprocess() throws org.xml.sax.SAXException
preprocess
in class StyleElement
protected boolean hasNamespaceAliases()
public void processAllAttributes() throws org.xml.sax.SAXException
processAllAttributes
in class StyleElement
public void initialiseBindery(Bindery bindery) throws org.xml.sax.SAXException
public void updateOutputDetails(OutputDetails details) throws org.xml.sax.SAXException
public void process(Context context) throws org.xml.sax.SAXException
process
in class StyleElement
com.icl.saxon.style.StyleElement
context
- The context in the source XML document, giving access to the current node,
the current variables, etc.public void spliceIncludes() throws org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |