Classes | |
class | BorrowReturnMutableNodeRefList |
class | ContextNodeListPushAndPop |
class | CurrentNodePushAndPop |
class | GetAndReleaseCachedString |
class | PrefixResolverSetAndRestore |
Public Types | |
typedef XalanVector< XObjectPtr > | XObjectArgVectorType |
typedef NodeRefListBase::size_type | size_type |
typedef GetAndReleaseCachedString | GetCachedString |
Public Member Functions | |
XPathExecutionContext (MemoryManagerType &m_memoryManager, XObjectFactory *theXObjectFactory=0) | |
virtual | ~XPathExecutionContext () |
virtual void | reset ()=0 |
Reset the instance. | |
virtual XalanNode * | getCurrentNode () const =0 |
Retrieve the node currently being executed. | |
virtual void | pushCurrentNode (XalanNode *theCurrentNode)=0 |
Change the node currently being executed. | |
virtual void | popCurrentNode ()=0 |
Reset the node currently being executed. | |
XObjectFactory & | getXObjectFactory () const |
Retrieve the factory object for creating XObjects. | |
virtual bool | isNodeAfter (const XalanNode &node1, const XalanNode &node2) const =0 |
Determine if a node is after another node, in document order. | |
virtual void | pushContextNodeList (const NodeRefListBase &theList)=0 |
Push the node list for current context. | |
virtual void | popContextNodeList ()=0 |
Pop the node list for current context. | |
virtual const NodeRefListBase & | getContextNodeList () const =0 |
Get the node list for current context. | |
virtual size_type | getContextNodeListLength () const =0 |
virtual size_type | getContextNodeListPosition (const XalanNode &contextNode) const =0 |
virtual bool | elementAvailable (const XalanQName &theQName) const =0 |
Determine if an external element is available. | |
virtual bool | elementAvailable (const XalanDOMString &theName, const LocatorType *locator) const =0 |
Determine if an external element is available by resolving a string to a QName. | |
virtual bool | functionAvailable (const XalanQName &theQName) const =0 |
Determine if a function is available. | |
virtual bool | functionAvailable (const XalanDOMString &theName, const LocatorType *locator) const =0 |
Determine if a function is available. | |
virtual const XObjectPtr | extFunction (const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const LocatorType *locator)=0 |
Handle an extension function. | |
virtual XalanDocument * | parseXML (MemoryManagerType &theManager, const XalanDOMString &urlString, const XalanDOMString &base) const =0 |
Provides support for XML parsing service. | |
virtual MutableNodeRefList * | borrowMutableNodeRefList ()=0 |
Borrow a cached MutableNodeRefList instance. | |
virtual bool | returnMutableNodeRefList (MutableNodeRefList *theList)=0 |
Return a previously borrowed MutableNodeRefList instance. | |
virtual XalanDOMString & | getCachedString ()=0 |
Get a cached string for temporary use. | |
virtual bool | releaseCachedString (XalanDOMString &theString)=0 |
Return a cached string. | |
virtual MutableNodeRefList * | createMutableNodeRefList (MemoryManagerType &theManager) const =0 |
Create a MutableNodeRefList with the appropriate context. | |
virtual void | getNodeSetByKey (XalanDocument *doc, const XalanQName &qname, const XalanDOMString &ref, MutableNodeRefList &nodelist)=0 |
Given a valid element key, return the corresponding node list. | |
virtual void | getNodeSetByKey (XalanDocument *doc, const XalanDOMString &name, const XalanDOMString &ref, const LocatorType *locator, MutableNodeRefList &nodelist)=0 |
Given a valid element key, return the corresponding node list. | |
virtual const XObjectPtr | getVariable (const XalanQName &name, const LocatorType *locator=0)=0 |
Given a name, locate a variable in the current context, and return a pointer to the object. | |
virtual const PrefixResolver * | getPrefixResolver () const =0 |
Retrieve the resolver for namespaces. | |
virtual void | setPrefixResolver (const PrefixResolver *thePrefixResolver)=0 |
Change the resolver for namespaces. | |
virtual const XalanDOMString * | getNamespaceForPrefix (const XalanDOMString &prefix) const =0 |
Retrieve the URI corresponding to a namespace prefix. | |
virtual const XalanDOMString & | findURIFromDoc (const XalanDocument *owner) const =0 |
Given a DOM Document, tell what URI was used to parse it. | |
virtual const XalanDOMString & | getUnparsedEntityURI (const XalanDOMString &theName, const XalanDocument &theDocument) const =0 |
The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in the same document as the context node (see [3.3 Unparsed Entities]). | |
virtual bool | shouldStripSourceNode (const XalanText &node)=0 |
Tells, through the combination of the default-space attribute on xsl:stylesheet, xsl:strip-space, xsl:preserve-space, and the xml:space attribute, whether or not extra whitespace should be stripped from the node. | |
virtual XalanDocument * | getSourceDocument (const XalanDOMString &theURI) const =0 |
Get the document associated with the given URI. | |
virtual void | setSourceDocument (const XalanDOMString &theURI, XalanDocument *theDocument)=0 |
Associate a document with a given URI. | |
virtual void | formatNumber (double number, const XalanDOMString &pattern, XalanDOMString &theResult, const XalanNode *context=0, const LocatorType *locator=0)=0 |
Formats a number according to the specified pattern. | |
virtual void | formatNumber (double number, const XalanDOMString &pattern, const XalanDOMString &dfsName, XalanDOMString &theResult, const XalanNode *context=0, const LocatorType *locator=0)=0 |
Formats a number according to the specified pattern. | |
virtual void | error (const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0 |
Report an error and throw an exception. | |
virtual void | warn (const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0 |
Report a warning. | |
virtual void | message (const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0 |
Output a message. | |
![]() | |
ExecutionContext (MemoryManagerType &m_memoryManager) | |
virtual | ~ExecutionContext () |
MemoryManagerType & | getMemoryManager () |
Protected Attributes | |
XObjectFactory * | m_xobjectFactory |
![]() | |
MemoryManagerType & | m_memoryManager |
|
explicit |
|
virtual |
|
pure virtual |
Borrow a cached MutableNodeRefList instance.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Create a MutableNodeRefList with the appropriate context.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Determine if an external element is available.
theQName | The QName of the element |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Determine if an external element is available by resolving a string to a QName.
theName | The name of the element |
locator | A LocatorType instance for error reporting |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Report an error and throw an exception.
msg | The text of the message. |
sourceNode | The source node where the error occurred. May be 0. |
locator | A Locator to determine where the error occurred. May be 0. |
Implements ExecutionContext.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Handle an extension function.
theNamespace | namespace of function |
functionName | extension function name |
context | The context node |
argVec | vector of arguments to function |
locator | A LocatorType instance for error reporting |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Given a DOM Document, tell what URI was used to parse it.
Needed for relative resolution.
owner | source document |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Formats a number according to the specified pattern.
number | the number to be formatted |
pattern | the format pattern |
theResult | the formatted number |
context | the source node |
locator | the locator |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Formats a number according to the specified pattern.
number | the number to be formatted |
pattern | the format pattern |
dfsName | the name of decimal format to use |
theResult | the formatted number |
context | the source node |
locator | the locator |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Determine if a function is available.
theQName | The QName of the function |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Determine if a function is available.
theName | The name of the function |
locator | A LocatorType instance for error reporting |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Get a cached string for temporary use.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Get the node list for current context.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Retrieve the node currently being executed.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Retrieve the URI corresponding to a namespace prefix.
prefix | prefix for a namespace |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Given a valid element key, return the corresponding node list.
doc | source document |
name | qname of the key, which must match the 'name' attribute on xsl:key |
ref | value that must match the value found by the 'match' attribute on xsl:key |
nodelist | A node list to contain the nodes found |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Given a valid element key, return the corresponding node list.
doc | source document |
name | name of the key, which must match the 'name' attribute on xsl:key. Will be resolved to a qname using the provided resolver. |
ref | value that must match the value found by the 'match' attribute on xsl:key |
locator | The LocatorType to use for error reporting. Can be 0. |
nodelist | A node list to contain the nodes found |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Retrieve the resolver for namespaces.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Get the document associated with the given URI.
theURI | document URI |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in the same document as the context node (see [3.3 Unparsed Entities]).
It returns the empty string if there is no such entity.
theName | name of entity |
theDocument | document containing entity |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Given a name, locate a variable in the current context, and return a pointer to the object.
theName | name of variable |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
XObjectFactory& XPathExecutionContext::getXObjectFactory | ( | ) | const |
Retrieve the factory object for creating XObjects.
|
pure virtual |
Determine if a node is after another node, in document order.
node1 | The first node |
node2 | The second node |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Output a message.
msg | The text of the message. |
sourceNode | The source node where the message occurred. May be 0. |
locator | A Locator to determine where the message occurred. May be 0. |
Implements ExecutionContext.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Provides support for XML parsing service.
urlString | location of the XML |
base | base location for URI |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Pop the node list for current context.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Reset the node currently being executed.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Push the node list for current context.
theList | new node list |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Change the node currently being executed.
theCurrentNode | new current node |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Return a cached string.
theString | The string to release. |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Reset the instance.
This must be called before another execution is attempted.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Return a previously borrowed MutableNodeRefList instance.
theList | A pointer the to previously borrowed instance. |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Change the resolver for namespaces.
thePrefixResolver | new object for namespace resolution |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Associate a document with a given URI.
theURI | document URI |
theDocument | source document |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Tells, through the combination of the default-space attribute on xsl:stylesheet, xsl:strip-space, xsl:preserve-space, and the xml:space attribute, whether or not extra whitespace should be stripped from the node.
Literal elements from template elements should not be tested with this function.
textNode | text node from the source tree |
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
pure virtual |
Report a warning.
msg | The text of the message. |
sourceNode | The source node where the warning occurred. May be 0. |
locator | A Locator to determine where the warning occurred. May be 0. |
Implements ExecutionContext.
Implemented in StylesheetExecutionContext, StylesheetExecutionContextDefault, and XPathExecutionContextDefault.
|
protected |
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.10 |
|