public class StyleNodeFactoryPE extends StyleNodeFactory implements NodeFactory
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowExtensions |
config, namePool| Constructor and Description |
|---|
StyleNodeFactoryPE(Configuration config,
Compilation compilation)
Create the node factory for representing an XSLT stylesheet as a tree structure
|
| Modifier and Type | Method and Description |
|---|---|
void |
compileContentValueTemplate(TextImpl node,
List<Expression> contents)
Compile a content value text node.
|
boolean |
isElementAvailable(String uri,
String localName,
boolean instructionsOnly)
Method to support the element-available() function
|
AccumulatorRegistryPE |
makeAccumulatorManager() |
Expression |
makeConditionalBlock(List<Expression> content)
Make an expression representing a sequence constructor with contained xsl:on-empty and xsl:on-non-empty
instructions
|
ElementImpl |
makeElementNode(NodeInfo parent,
NodeName elementName,
SchemaType elementType,
boolean isNilled,
AttributeCollectionImpl attlist,
NamespaceBinding[] namespaces,
int namespacesUsed,
PipelineConfiguration pipe,
Location location,
int sequence)
Create an Element node.
|
TextImpl |
makeTextNode(NodeInfo parent,
CharSequence content)
Make a text node
|
protected StyleElement |
makeXSLElement(int f,
NodeImpl parent)
Make an XSL element node
|
boolean |
validateTextNode(NodeInfo node)
Validate a text node in the stylesheet
|
getCompilation, getConfiguration, getXsltProcessorVersion, isTopLevelModule, isXSLOverride, newPrincipalModule, setTopLevelModulepublic StyleNodeFactoryPE(Configuration config, Compilation compilation)
config - the Saxon configurationpublic ElementImpl makeElementNode(NodeInfo parent, NodeName elementName, SchemaType elementType, boolean isNilled, AttributeCollectionImpl attlist, NamespaceBinding[] namespaces, int namespacesUsed, PipelineConfiguration pipe, Location location, int sequence)
makeElementNode in interface NodeFactorymakeElementNode in class StyleNodeFactoryparent - 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 - List of new namespace declarations for this element, as a sequence
of namespace codes representing pairs of strings: (prefix1, uri1), (prefix2, uri2)...namespacesUsed - the number of elemnts of the namespaces array actually usedpipe - 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)
StyleNodeFactorymakeXSLElement in class StyleNodeFactoryf - the fingerprint of the node nameparent - the parent nodepublic boolean isElementAvailable(String uri, String localName, boolean instructionsOnly)
isElementAvailable in class StyleNodeFactoryuri - the namespace URIlocalName - the local NameinstructionsOnly - true if only instructions qualifypublic AccumulatorRegistryPE makeAccumulatorManager()
makeAccumulatorManager in class StyleNodeFactorypublic TextImpl makeTextNode(NodeInfo parent, CharSequence content)
makeTextNode in interface NodeFactorymakeTextNode in class StyleNodeFactorycontent - the content of the text nodepublic boolean validateTextNode(NodeInfo node) throws XPathException
validateTextNode in class StyleNodeFactorynode - the text nodeXPathException - if the node is invalidpublic void compileContentValueTemplate(TextImpl node, List<Expression> contents) throws XPathException
compileContentValueTemplate in class StyleNodeFactorynode - the text node potentially containing the templatecontents - a list to which expressions representing the fixed and variable parts of the content template
will be appendedXPathException - if a static error is foundpublic Expression makeConditionalBlock(List<Expression> content) throws XPathException
makeConditionalBlock in class StyleNodeFactorycontent - the full list of compiled instructions, including OnEmpty and OnNotEmpty expressionsXPathException - if (for example) XSLT 3.0 is not enabled.Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.