public class StyleNodeFactory extends java.lang.Object implements NodeFactory
Modifier and Type | Field and Description |
---|---|
protected Configuration |
config |
protected NamePool |
namePool |
Constructor and Description |
---|
StyleNodeFactory(Configuration config,
Compilation compilation)
Create the node factory for representing an XSLT stylesheet as a tree structure
|
Modifier and Type | Method and Description |
---|---|
Compilation |
getCompilation() |
Configuration |
getConfiguration() |
boolean |
isElementAvailable(java.lang.String uri,
java.lang.String localName,
boolean instructionsOnly)
Method to support the element-available() function
|
boolean |
isTopLevelModule()
Ask whether this is the top-level module of a package
|
AccumulatorRegistry |
makeAccumulatorManager() |
ElementImpl |
makeElementNode(NodeInfo parent,
NodeName elemName,
SchemaType elemType,
boolean isNilled,
AttributeMap attlist,
NamespaceMap namespaces,
PipelineConfiguration pipe,
Location location,
int sequence)
Create an Element node.
|
TextImpl |
makeTextNode(NodeInfo parent,
java.lang.CharSequence content)
Make a text node
|
protected StyleElement |
makeXSLElement(int f,
NodeImpl parent)
Make an XSL element node
|
PrincipalStylesheetModule |
newPrincipalModule(XSLPackage node)
Create a stylesheet package
|
void |
setTopLevelModule(boolean topLevelModule)
Say that this is the top-level module of a package
|
protected Configuration config
protected NamePool namePool
public StyleNodeFactory(Configuration config, Compilation compilation)
config
- the Saxon configurationcompilation
- the compilation episode (compiling one package)public void setTopLevelModule(boolean topLevelModule)
topLevelModule
- true if this stylesheet module is the top level of a package; false
if it is included or importedpublic boolean isTopLevelModule()
public Compilation getCompilation()
public Configuration getConfiguration()
public ElementImpl makeElementNode(NodeInfo parent, NodeName elemName, SchemaType elemType, boolean isNilled, AttributeMap attlist, NamespaceMap namespaces, PipelineConfiguration pipe, Location location, int sequence)
makeElementNode
in interface NodeFactory
parent
- The parent elementelemName
- The element nameelemType
- The type annotation of the elementisNilled
- true if the element is to be marked as nilledattlist
- The attribute collection, excluding any namespace attributesnamespaces
- in-scope namespace declarations for this elementpipe
- The pipeline configuration (provides access to the error listener and the
location provider)location
- Indicates the source document and line number containing the nodesequence
- Sequence number to be assigned to represent document order.protected StyleElement makeXSLElement(int f, NodeImpl parent)
f
- the fingerprint of the node nameparent
- the parent nodepublic TextImpl makeTextNode(NodeInfo parent, java.lang.CharSequence content)
makeTextNode
in interface NodeFactory
parent
- the parent elementcontent
- the content of the text nodepublic boolean isElementAvailable(java.lang.String uri, java.lang.String localName, boolean instructionsOnly)
uri
- the namespace URIlocalName
- the local NameinstructionsOnly
- true if only instruction elements qualifypublic AccumulatorRegistry makeAccumulatorManager()
public PrincipalStylesheetModule newPrincipalModule(XSLPackage node) throws XPathException
node
- the XSLPackage elementXPathException
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.