public class StyleNodeFactoryPE extends StyleNodeFactory implements NodeFactory
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowExtensions |
config, namePool, processorVersion| Constructor and Description |
|---|
StyleNodeFactoryPE(Configuration config)
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,
Container container)
Compile a content value text node.
|
boolean |
isElementAvailable(String uri,
String localName)
Method to support the element-available() function
|
AccumulatorManagerPE |
makeAccumulatorManager() |
ElementImpl |
makeElementNode(NodeInfo parent,
NodeName elementName,
SchemaType elementType,
boolean isNilled,
AttributeCollectionImpl attlist,
NamespaceBinding[] namespaces,
int namespacesUsed,
PipelineConfiguration pipe,
int locationId,
int sequence)
Create an Element node.
|
TextImpl |
makeTextNode(NodeInfo parent,
CharSequence content)
Make a text node
|
protected StyleElement |
makeXSLElement(int f,
NodeInfo parent)
Make an XSL element node
|
boolean |
validateTextNode(NodeInfo node)
Validate a text node in the stylesheet
|
getCompilation, getConfiguration, getXsltProcessorVersion, isTopLevelModule, isXSLOverride, newStylesheetPackage, setCompilation, setTopLevelModule, setXsltProcessorVersionpublic StyleNodeFactoryPE(Configuration config)
config - the Saxon configurationpublic ElementImpl makeElementNode(NodeInfo parent, NodeName elementName, SchemaType elementType, boolean isNilled, AttributeCollectionImpl attlist, NamespaceBinding[] namespaces, int namespacesUsed, PipelineConfiguration pipe, int locationId, 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)locationId - Indicates the source document and line number containing the nodesequence - Sequence number to be assigned to represent document order.protected StyleElement makeXSLElement(int f, NodeInfo parent)
StyleNodeFactorymakeXSLElement in class StyleNodeFactoryf - the fingerprint of the node nameparent - the parent nodepublic boolean isElementAvailable(String uri, String localName)
isElementAvailable in class StyleNodeFactoryuri - the namespace URIlocalName - the local Namepublic AccumulatorManagerPE 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, Container container) 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 appendedcontainer - the container for the new expressionsXPathException - if a static error is foundCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.