|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.tree.linked.NodeImpl
net.sf.saxon.tree.linked.ParentNodeImpl
net.sf.saxon.tree.linked.ElementImpl
net.sf.saxon.style.StyleElement
net.sf.saxon.style.XSLStylesheet
public class XSLStylesheet
An xsl:stylesheet or xsl:transform element in the stylesheet.
Note this element represents a stylesheet module, not necessarily
the whole stylesheet. However, much of the functionality (and the fields)
are relevant only to the top-level module.
Field Summary | |
---|---|
static int |
ANNOTATION_PRESERVE
|
static int |
ANNOTATION_STRIP
|
static int |
ANNOTATION_UNSPECIFIED
|
(package private) PreparedStylesheet |
exec
|
Fields inherited from class net.sf.saxon.tree.linked.NodeImpl |
---|
NODE_LETTER |
Fields inherited from interface net.sf.saxon.om.NodeInfo |
---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
Constructor Summary | |
---|---|
XSLStylesheet()
|
Method Summary | |
---|---|
Expression |
compile(Executable exec,
Declaration decl)
Dummy compile() method to satisfy the interface |
StructuredQName |
getDefaultMode()
Get the default mode (XSLT 3.0 feature) |
int |
getDefaultValidation()
Get the value of the default validation attribute |
PreparedStylesheet |
getExecutable()
Get the run-time Executable object |
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 |
PreparedStylesheet |
getPreparedStylesheet()
Get the owning PreparedStylesheet object. |
PrincipalStylesheetModule |
getPrincipalStylesheetModule()
Get the principal stylesheet module |
RuleManager |
getRuleManager()
Get the RuleManager which handles template rules |
protected void |
index(Declaration decl,
PrincipalStylesheetModule top)
Method supplied by declaration elements to add themselves to a stylesheet-level index |
protected boolean |
mayContainParam(String attName)
Determine whether this type of element is allowed to contain an xsl:param element |
void |
prepareAttributes()
Prepare the attributes on the stylesheet element |
void |
processAllAttributes()
Process the attributes of every node in the stylesheet |
void |
setPrincipalStylesheetModule(PrincipalStylesheetModule module)
|
void |
validate(Declaration decl)
Validate this element |
Methods inherited from class net.sf.saxon.tree.linked.ParentNodeImpl |
---|
addChild, compact, enumerateChildren, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, insertChildrenAt, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumber |
Methods inherited from class net.sf.saxon.tree.linked.NodeImpl |
---|
atomize, compareOrder, equals, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRawParent, getSiblingPosition, getTypedValue, getURI, insertSiblings, isDeleted, isIdref, isSameNodeInfo, iterateAxis, iterateAxis, newBuilder, replace, setRawParent, setSiblingPosition |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.trace.InstructionInfo |
---|
getLineNumber, getSystemId |
Methods inherited from interface org.xml.sax.Locator |
---|
getColumnNumber, getPublicId |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getColumnNumber, getPublicId |
Methods inherited from interface net.sf.saxon.om.NodeInfo |
---|
hashCode |
Field Detail |
---|
PreparedStylesheet exec
public static final int ANNOTATION_UNSPECIFIED
public static final int ANNOTATION_STRIP
public static final int ANNOTATION_PRESERVE
Constructor Detail |
---|
public XSLStylesheet()
Method Detail |
---|
public PreparedStylesheet getPreparedStylesheet()
getPreparedStylesheet
in class StyleElement
public void setPrincipalStylesheetModule(PrincipalStylesheetModule module)
public PrincipalStylesheetModule getPrincipalStylesheetModule()
StyleElement
getPrincipalStylesheetModule
in class StyleElement
public PreparedStylesheet getExecutable()
getExecutable
in interface Container
getExecutable
in class StyleElement
protected boolean mayContainParam(String attName)
StyleElement
mayContainParam
in class StyleElement
attName
- if null, the method tests whether an xsl:param child is allowed.
If non-null, it tests whether an xsl:param child with the given attribute name is allowed
public LocationMap getLocationMap()
public RuleManager getRuleManager()
public StructuredQName getDefaultMode()
public KeyManager getKeyManager()
public void prepareAttributes() throws XPathException
prepareAttributes
in class StyleElement
XPathException
public int getDefaultValidation()
Validation.STRIP
public int getInputTypeAnnotationsAttribute() throws XPathException
ANNOTATION_STRIP
and ANNOTATION_PRESERVE
XPathException
public void validate(Declaration decl) throws XPathException
validate
in class StyleElement
decl
-
XPathException
public void processAllAttributes() throws XPathException
processAllAttributes
in class StyleElement
XPathException
- in the event of a static error being detectedprotected void index(Declaration decl, PrincipalStylesheetModule top) throws XPathException
StyleElement
index
in class StyleElement
decl
- the Declaration being indexed. (This corresponds to the StyleElement object
except in cases where one module is imported several times with different precedence.)top
- the outermost XSLStylesheet element
XPathException
public Expression compile(Executable exec, Declaration decl)
compile
in class StyleElement
exec
- the Executabledecl
- the containing top-level declaration, for example xsl:function or xsl:template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |