Package com.saxonica.config.pe
Class StyleNodeFactoryPE
java.lang.Object
net.sf.saxon.style.StyleNodeFactory
com.saxonica.config.pe.StyleNodeFactoryPE
- All Implemented Interfaces:
NodeFactory
- Direct Known Subclasses:
StyleNodeFactoryEE
Class StyleNodeFactoryPE: Subclass of StyleNodeFactory used for Saxon-PE.
A Factory for nodes in the stylesheet tree.
This version differs from the parent class in allowing extension elements to be constructed if the URI corresponds to an extension element factory registered in the Configuration
A Factory for nodes in the stylesheet tree.
This version differs from the parent class in allowing extension elements to be constructed if the URI corresponds to an extension element factory registered in the Configuration
-
Field Summary
FieldsFields inherited from class net.sf.saxon.style.StyleNodeFactory
config, namePool
-
Constructor Summary
ConstructorsConstructorDescriptionStyleNodeFactoryPE
(Configuration config, Compilation compilation) Create the node factory for representing an XSLT stylesheet as a tree structure -
Method Summary
Modifier and TypeMethodDescriptionboolean
isElementAvailable
(NamespaceUri uri, String localName, boolean instructionsOnly) Method to support the element-available() functionmakeElementNode
(NodeInfo parent, NodeName elementName, SchemaType elementType, boolean isNilled, AttributeMap attlist, NamespaceMap namespaces, PipelineConfiguration pipe, Location location, int sequence) Create an Element node.protected StyleElement
makeXSLElement
(int f, NodeImpl parent) Make an XSL element nodeMethods inherited from class net.sf.saxon.style.StyleNodeFactory
getCompilation, getConfiguration, isTopLevelModule, makeTextNode, newPrincipalModule, setTopLevelModule
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.saxon.tree.linked.NodeFactory
makeTextNode
-
Field Details
-
allowExtensions
protected boolean allowExtensions
-
-
Constructor Details
-
StyleNodeFactoryPE
Create the node factory for representing an XSLT stylesheet as a tree structure- Parameters:
config
- the Saxon configurationcompilation
- the compilation episode (compiling one package)
-
-
Method Details
-
makeElementNode
public ElementImpl makeElementNode(NodeInfo parent, NodeName elementName, SchemaType elementType, boolean isNilled, AttributeMap attlist, NamespaceMap namespaces, PipelineConfiguration pipe, Location location, int sequence) Create an Element node. Note, if there is an error detected while constructing the Element, we add the element anyway, and return success, but flag the element with a validation error. This allows us to report more than one error from a single compilation.- Specified by:
makeElementNode
in interfaceNodeFactory
- Overrides:
makeElementNode
in classStyleNodeFactory
- Parameters:
parent
- The parent elementelementName
- The element nameelementType
- 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.- Returns:
- the element node
-
makeXSLElement
Make an XSL element node- Overrides:
makeXSLElement
in classStyleNodeFactory
- Parameters:
f
- the fingerprint of the node nameparent
- the parent node- Returns:
- the constructed element node
-
isElementAvailable
Method to support the element-available() function- Overrides:
isElementAvailable
in classStyleNodeFactory
- Parameters:
uri
- the namespace URIlocalName
- the local NameinstructionsOnly
- true if only instructions qualify- Returns:
- true if an extension element of this name is recognized
-
makeAccumulatorManager
- Overrides:
makeAccumulatorManager
in classStyleNodeFactory
-