Xalan-C++ API Reference  1.12.0
Classes | Public Types | Public Member Functions | List of all members
xalanc::StylesheetExecutionContext Class Referenceabstract

#include <xalanc/XSLT/StylesheetExecutionContext.hpp>

Inheritance diagram for xalanc::StylesheetExecutionContext:
[legend]
Collaboration diagram for xalanc::StylesheetExecutionContext:
[legend]

Classes

class  ElementRecursionStackPusher
 Class for keeping track of elements pushed on the element recursion stack. More...
 
class  OutputContextPushPop
 
class  SetAndRestoreCopyTextNodesOnly
 
class  SetAndRestoreCurrentStackFrameIndex
 
struct  UseAttributeSetIndexes
 
class  XPathGuard
 

Public Types

enum  eDummy { eDefaultXMLIndentAmount = 0, eDefaultHTMLIndentAmount = 0 }
 
enum  eEscapeURLs { eEscapeURLsDefault, eEscapeURLsNo, eEscapeURLsYes }
 Enums to determine whether or not run-time escaping of URLs has been set. More...
 
enum  eOmitMETATag { eOmitMETATagDefault, eOmitMETATagNo, eOmitMETATagYes }
 Enums to determine whether or not run-time omission of the META tag has been set. More...
 
typedef XalanSize_t tl_size_type
 
typedef FormatterListener::size_type fl_size_type
 
typedef std::ostream StreamType
 
typedef XalanVector< TopLevelArgParamVectorType
 
typedef XalanMemMgrAutoPtr< XalanNumberFormatXalanNumberFormatAutoPtr
 
- Public Types inherited from xalanc::XPathExecutionContext
typedef XalanVector< XObjectPtrXObjectArgVectorType
 
typedef NodeRefListBase::size_type size_type
 
typedef GetCachedNodeList BorrowReturnMutableNodeRefList
 
typedef GetCachedString GetAndReleaseCachedString
 
- Public Types inherited from xalanc::ProblemListenerBase
enum  eSource {
  eXMLPARSER = 0, eXMLParser = 0, eXSLPROCESSOR = 1, eXSLTProcessor = 1,
  eXPATH = 2, eXPath = 2, eSourceCount
}
 
enum  eClassification {
  eMESSAGE = 0, eMessage = 0, eWARNING = 1, eWarning = 1,
  eERROR = 2, eError = 2, eClassificationCount
}
 
typedef eSource eProblemSource
 

Public Member Functions

 StylesheetExecutionContext (MemoryManager &theMemoryManager, XObjectFactory *theXObjectFactory=0)
 
virtual ~StylesheetExecutionContext ()
 
virtual bool getQuietConflictWarnings () const =0
 Determine whether conflicts should be reported. More...
 
virtual bool getCopyTextNodesOnly () const =0
 If this function returns true, only text nodes can be copied to the result tree. More...
 
virtual void pushCopyTextNodesOnly (bool copyTextNodesOnly)=0
 Set the flag that determines if only text nodes can be copied to the result tree. More...
 
virtual bool popCopyTextNodesOnly ()=0
 Pop the last flag setting that determines if only text nodes can be copied to the result tree. More...
 
virtual void pushProcessCurrentAttribute (bool processAttribute)=0
 Set the flag that determines if the current attribute should be executed. More...
 
virtual bool popProcessCurrentAttribute ()=0
 Pops the last flag setting that determines if the current attribute should be executed. More...
 
virtual void pushSkipElementAttributes (bool skipAttributes)=0
 Set the flag that determines if an element's attributes should be skipped. More...
 
virtual bool getSkipElementAttributes () const =0
 Get the last flag setting that determines if an element's attributes should be skipped. More...
 
virtual bool popSkipElementAttributes ()=0
 Pops the last flag setting that determines if an element's attributes should be skipped. More...
 
virtual void pushExecuteIf (bool executeIf)=0
 Set flag that determines if the if test was true. More...
 
virtual bool popExecuteIf ()=0
 Pop the flag that determines if the if test was true. More...
 
virtual XalanNodegetRootDocument () const =0
 Retrieve root document for stylesheet. More...
 
virtual void setRootDocument (XalanNode *theDocument)=0
 Set root document for stylesheet. More...
 
virtual void setStylesheetRoot (const StylesheetRoot *theStylesheet)=0
 Set root stylesheet for stylesheet. More...
 
virtual const XalanQNamegetCurrentMode () const =0
 Retrieve the current mode. More...
 
virtual void pushCurrentMode (const XalanQName *theMode)=0
 Set the current mode. More...
 
virtual void popCurrentMode ()=0
 Pop the current mode. More...
 
virtual const ElemTemplategetCurrentTemplate () const =0
 Retrieve the current template. More...
 
virtual void pushCurrentTemplate (const ElemTemplate *theTemplate)=0
 Set the current template. More...
 
virtual void popCurrentTemplate ()=0
 
virtual bool isElementPending () const =0
 See if there is an element pending. More...
 
virtual void replacePendingAttribute (const XalanDOMChar *theName, const XalanDOMChar *theNewType, const XalanDOMChar *theNewValue)=0
 Replace the contents of a pending attribute. More...
 
virtual FormatterListenergetFormatterListener () const =0
 Get the current formatter listener. More...
 
virtual void setFormatterListener (FormatterListener *flistener)=0
 Set the current formatter listener. More...
 
virtual void pushOutputContext (FormatterListener *flistener=0)=0
 
virtual void popOutputContext ()=0
 
virtual void addResultAttribute (const XalanDOMString &aname, const XalanDOMString &value)=0
 Add a result attribute to the list of pending attributes. More...
 
virtual void addResultAttribute (const XalanDOMString &aname, const XalanDOMChar *value)=0
 Add a result attribute to the list of pending attributes. More...
 
virtual void copyNamespaceAttributes (const XalanNode &src)=0
 Add namespace attributes for a node to the list of pending attributes. More...
 
virtual const XalanDOMStringgetResultPrefixForNamespace (const XalanDOMString &theNamespace) const =0
 Retrieve the result prefix corresponding to a namespace. More...
 
virtual const XalanDOMStringgetResultNamespaceForPrefix (const XalanDOMString &thePrefix) const =0
 Retrieve the result namespace corresponding to a prefix. More...
 
virtual bool isPendingResultPrefix (const XalanDOMString &thePrefix)=0
 Determine whether or not a prefix is in use on the pending element or the pending attributes. More...
 
virtual void getUniqueNamespaceValue (XalanDOMString &theValue) const =0
 Generate a random namespace prefix guaranteed to be unique. More...
 
virtual int getIndent () const =0
 Retrieve the current number of spaces to indent. More...
 
virtual void setIndent (int indentAmount)=0
 Set the current number of spaces to indent. More...
 
virtual const XPathcreateMatchPattern (const XalanDOMString &str, const PrefixResolver &resolver)=0
 Create and initialize an xpath and return it. More...
 
virtual void returnXPath (const XPath *xpath)=0
 Return the XPath created by createMatchPattern(). More...
 
virtual void pushTopLevelVariables (const ParamVectorType &topLevelParams)=0
 Set a list of top level variables in the specified execution context stylesheet. More...
 
virtual const XObjectPtr createVariable (const XPath &xpath, XalanNode *contextNode, const PrefixResolver &resolver)=0
 Execute the supplied XPath and and create a variable in the current context. More...
 
virtual void pushVariable (const XalanQName &name, const ElemTemplateElement *element, const XalanDOMString &str, XalanNode *contextNode, const PrefixResolver &resolver)=0
 Execute an XPath using the provided expression, and push the result as a variable in the context of the supplied element. More...
 
virtual void pushVariable (const XalanQName &name, const ElemTemplateElement *element, const XPath &xpath, XalanNode *contextNode, const PrefixResolver &resolver)=0
 Execute the supplied XPath and push the result as a variable in the current context. More...
 
virtual void pushVariable (const XalanQName &name, const XObjectPtr val, const ElemTemplateElement *element)=0
 Push a named variable onto the variables stack. More...
 
virtual void pushVariable (const XalanQName &name, const ElemVariable *var, const ElemTemplateElement *element)=0
 Push a named variable onto the processor variable stack The variable will be evaluated when first referenced. More...
 
virtual void pushContextMarker ()=0
 Push a context marker onto the stack to let us know when to stop searching for a var. More...
 
virtual void popContextMarker ()=0
 Pop the current context from the current context stack. More...
 
virtual void resolveTopLevelParams ()=0
 Resolve the params that were pushed by the caller. More...
 
virtual void clearTopLevelParams ()=0
 Reset the vector of top level parameters. More...
 
virtual void beginParams ()=0
 Initiate context to accept a new set of parameters. More...
 
virtual void endParams ()=0
 Indicate parameter set is complete. More...
 
virtual void pushParam (const XalanQName &qName, const XObjectPtr &theValue)=0
 Push a single paramter onto the latest initialized paramter set. More...
 
virtual const XObjectPtr getParamVariable (const XalanQName &theName)=0
 Given a name, return a string representing the value, but don't look in the global space. More...
 
virtual void pushElementFrame (const ElemTemplateElement *elem)=0
 Push a frame marker for an element. More...
 
virtual void popElementFrame ()=0
 Pop a frame marker for an element. More...
 
virtual int getGlobalStackFrameIndex () const =0
 Get the top of the global stack frame. More...
 
virtual int getCurrentStackFrameIndex () const =0
 Get the top of the stack frame from where a search for a variable or param should take place. More...
 
virtual void pushCurrentStackFrameIndex (int currentStackFrameIndex=-1)=0
 Set the top of the stack frame from where a search for a variable or param should take place. More...
 
virtual void popCurrentStackFrameIndex ()=0
 Pop the last stack frame index setting. More...
 
virtual void startDocument ()=0
 Receive notification of the beginning of a document. More...
 
virtual void endDocument ()=0
 Receive notification of the end of a document. More...
 
virtual void startElement (const XalanDOMChar *name)=0
 Receive notification of the beginning of an element. More...
 
virtual void endElement (const XalanDOMChar *name)=0
 Receive notification of the end of an element. More...
 
virtual void characters (const XalanDOMChar *ch, fl_size_type start, fl_size_type length)=0
 Receive notification of character data. More...
 
virtual void charactersRaw (const XalanDOMChar *ch, fl_size_type start, fl_size_type length)=0
 Receive notification of character data. More...
 
virtual void comment (const XalanDOMChar *data)=0
 Called when a Comment is to be constructed. More...
 
virtual void processingInstruction (const XalanDOMChar *target, const XalanDOMChar *data)=0
 Receive notification of a processing instruction. More...
 
virtual void flushPending ()=0
 Flush the pending element. More...
 
virtual void cloneToResultTree (const XalanNode &node, const Locator *locator)=0
 Clone a node to the result tree. More...
 
virtual void cloneToResultTree (const XalanNode &node, XalanNode::NodeType nodeType, bool overrideStrip, bool shouldCloneAttributes, const Locator *locator)=0
 Clone a node to the result tree. More...
 
virtual void beginCreateXResultTreeFrag (XalanNode *sourceNode)=0
 Initiate creation of a result tree fragment. More...
 
virtual const XObjectPtr endCreateXResultTreeFrag ()=0
 Indicate sthe completion of result tree fragment. More...
 
virtual void beginFormatToText (XalanDOMString &theResult)=0
 Initiate to put execution result in string. More...
 
virtual void endFormatToText ()=0
 Indicates the completion of the result string. More...
 
virtual void outputToResultTree (const XObject &xobj, const Locator *locator)=0
 Output an object to the result tree by doing the right conversions. More...
 
virtual void outputResultTreeFragment (const XObject &theTree, const Locator *locator)=0
 Given a result tree fragment, walk the tree and output it to the result stream. More...
 
virtual const XalanDOMStringgetXSLNameSpaceURL () const =0
 Determine the full XSLT Namespace URI. More...
 
virtual const XalanDOMStringgetXalanXSLNameSpaceURL () const =0
 Special Xalan namespace for built-in extensions. More...
 
virtual bool findOnElementRecursionStack (const ElemTemplateElement *theElement) const =0
 Determine if an element is on the recursion stack. More...
 
virtual void pushOnElementRecursionStack (const ElemTemplateElement *theElement)=0
 Push an element onto the recursion stack. More...
 
virtual const ElemTemplateElementpopElementRecursionStack ()=0
 Pop an element off the recursion stack. More...
 
virtual bool returnXResultTreeFrag (XResultTreeFrag *theXResultTreeFrag)=0
 This is a hook that XResultTreeFrag instances (which are reference counted), can notify the owning StylesheetExecutionContext instance when they are dereferenced and can be cleaned up. More...
 
virtual eEscapeURLs getEscapeURLs () const =0
 Get the value for run-time escaping of URLs. More...
 
virtual void setEscapeURLs (eEscapeURLs value)=0
 Set the value for run-time escaping of URLs. More...
 
virtual eOmitMETATag getOmitMETATag () const =0
 Get the value for run-time omission of URLs. More...
 
virtual void setOmitMETATag (eOmitMETATag value)=0
 Get the value for run-time omission of URLs. More...
 
virtual FormatterListenercreateFormatterToXML (Writer &writer, const XalanDOMString &version=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), bool doIndent=false, int indent=eDefaultXMLIndentAmount, const XalanDOMString &encoding=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &mediaType=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypeSystem=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypePublic=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), bool xmlDecl=true, const XalanDOMString &standalone=XalanDOMString(XalanMemMgrs::getDummyMemMgr()))=0
 Create a new FormatterToXML instance. More...
 
virtual FormatterListenercreateFormatterToHTML (Writer &writer, const XalanDOMString &encoding=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &mediaType=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypeSystem=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), const XalanDOMString &doctypePublic=XalanDOMString(XalanMemMgrs::getDummyMemMgr()), bool doIndent=true, int indent=eDefaultHTMLIndentAmount, bool escapeURLs=true, bool omitMetaTag=false)=0
 Create a new FormatterToHTML instance. More...
 
virtual FormatterListenercreateFormatterToText (Writer &writer, const XalanDOMString &encoding)=0
 FormatterToText instance constructor. More...
 
virtual NodeSortergetNodeSorter ()=0
 Get node sorter instance. More...
 
virtual XalanNumberFormatAutoPtr createXalanNumberFormat ()=0
 Create a new XalanNumberFormat instance. More...
 
virtual void createUseAttributeSetIndexesOnStack ()=0
 
virtual UseAttributeSetIndexesgetUseAttributeSetIndexes ()=0
 
virtual void popUseAttributeSetIndexesFromStack ()=0
 
virtual void pushInvoker (const ElemTemplateElement *invoker)=0
 Push the element that will invoke non children elements (i.e templates, attribute-sets) More...
 
virtual void popInvoker ()=0
 Pop the element that invoked non children elements. More...
 
virtual const ElemTemplateElementgetInvoker () const =0
 Get the lastest element that has invoked a non-child element. More...
 
virtual tl_size_type getTraceListeners () const =0
 Determine the number of trace listeners. More...
 
virtual void fireGenerateEvent (const GenerateEvent &ge)=0
 Fire a generate event. More...
 
virtual void fireTraceEvent (const TracerEvent &te)=0
 Fire a trace event. More...
 
virtual void fireSelectEvent (const SelectionEvent &se)=0
 Fire a selection event. More...
 
virtual bool getTraceSelects () const =0
 If this is set to true, simple traces of template calls are made. More...
 
virtual void traceSelect (const ElemTemplateElement &theStylesheetElement, const NodeRefListBase &nl, const XPath *xpath)=0
 Compose a diagnostic trace of the current selection. More...
 
virtual int collationCompare (const XalanDOMString &theLHS, const XalanDOMString &theRHS, XalanCollationServices::eCaseOrder theCaseOrder=XalanCollationServices::eDefault)=0
 Compare two strings using the collation of the current locale. More...
 
virtual int collationCompare (const XalanDOMString &theLHS, const XalanDOMString &theRHS, const XalanDOMString &theLocale, XalanCollationServices::eCaseOrder theCaseOrder=XalanCollationServices::eDefault)=0
 Compare two strings using the collation of the supplied locale. More...
 
virtual int collationCompare (const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, XalanCollationServices::eCaseOrder theCaseOrder=XalanCollationServices::eDefault)=0
 Compare two strings using the collation of the current locale. More...
 
virtual int collationCompare (const XalanDOMChar *theLHS, const XalanDOMChar *theRHS, const XalanDOMChar *theLocale, XalanCollationServices::eCaseOrder theCaseOrder=XalanCollationServices::eDefault)=0
 Compare two strings using the collation of the current locale. More...
 
virtual PrintWritercreatePrintWriter (XalanOutputStream *theTextOutputStream)=0
 Create a PrintWriter for the provided stream. More...
 
virtual PrintWritercreatePrintWriter (const XalanDOMString &theFileName, const XalanDOMString &theEncoding)=0
 Create a PrintWriter. More...
 
virtual PrintWritercreatePrintWriter (StreamType &theStream)=0
 Create a PrintWriter using the provided ostream instance. More...
 
virtual PrintWritercreatePrintWriter (FILE *theStream)=0
 Create a PrintWriter using the provided FILE instance. More...
 
virtual CountersTablegetCountersTable ()=0
 Get the counters table, which is a table of cached results that is used by ElemNumber. More...
 
virtual void characters (const XalanNode &node)=0
 Send character data from a node to the result tree. More...
 
virtual void characters (const XObjectPtr &xobject)=0
 Send character data from an XObject to the result tree. More...
 
virtual void charactersRaw (const XalanNode &node)=0
 Send raw character data from a node to the result tree. More...
 
virtual void charactersRaw (const XObjectPtr &xobject)=0
 Send raw character data from an XObject to the result tree. More...
 
virtual void reset ()=0
 Reset the instance. More...
 
virtual XalanNodegetCurrentNode () const =0
 Retrieve the node currently being executed. More...
 
virtual void pushCurrentNode (XalanNode *theCurrentNode)=0
 Change the node currently being executed. More...
 
virtual void popCurrentNode ()=0
 Reset the node currently being executed. More...
 
virtual bool isNodeAfter (const XalanNode &node1, const XalanNode &node2) const =0
 Determine if a node is after another node, in document order. More...
 
virtual void pushContextNodeList (const NodeRefListBase &theList)=0
 Push the node list for current context. More...
 
virtual void popContextNodeList ()=0
 Pop the node list for current context. More...
 
virtual const NodeRefListBasegetContextNodeList () const =0
 Get the node list for current context. More...
 
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. More...
 
virtual bool elementAvailable (const XalanDOMString &theName, const Locator *locator) const =0
 Determine if an external element is available by resolving a string to a QName. More...
 
virtual bool functionAvailable (const XalanQName &theQName) const =0
 Determine if a function is available. More...
 
virtual bool functionAvailable (const XalanDOMString &theName, const Locator *locator) const =0
 Determine if a function is available. More...
 
virtual const XObjectPtr extFunction (const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator)=0
 Handle an extension function. More...
 
virtual XalanDocumentparseXML (MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) const =0
 Provides support for XML parsing service. More...
 
virtual MutableNodeRefListborrowMutableNodeRefList ()=0
 Borrow a cached MutableNodeRefList instance. More...
 
virtual bool returnMutableNodeRefList (MutableNodeRefList *theList)=0
 Return a previously borrowed MutableNodeRefList instance. More...
 
virtual MutableNodeRefListcreateMutableNodeRefList (MemoryManager &theManager) const =0
 Create a MutableNodeRefList with the appropriate context. More...
 
virtual MutableNodeRefListcreateAndPushMutableNodeRefList ()=0
 
virtual void releaseAndPopMutableNodeRefList ()=0
 
virtual void pushXObjectPtr (const XObjectPtr &xobjectPtr)=0
 
virtual void popXObjectPtr ()=0
 
virtual void createAndPushNodesToTransformList (const NodeRefListBase *nodeList)=0
 
virtual XalanNodegetNextNodeToTransform ()=0
 
virtual void popNodesToTransformList ()=0
 
virtual XalanDOMStringgetAndPushCachedString ()=0
 Get a string that is cached on a stack. More...
 
virtual XalanDOMStringgetLastCachedString ()=0
 Gets the last string that was cached on the stack. More...
 
virtual XalanDOMStringgetAndPopCachedString ()=0
 Gets the last string to be cached on the stack and pops it from the stack. More...
 
virtual XalanDOMStringgetCachedString ()=0
 Get a cached string for temporary use. More...
 
virtual bool releaseCachedString (XalanDOMString &theString)=0
 Return a cached string. More...
 
virtual void getNodeSetByKey (XalanNode *context, const XalanQName &qname, const XalanDOMString &ref, const Locator *locator, MutableNodeRefList &nodelist)=0
 Given a valid element key, return the corresponding node list. More...
 
virtual void getNodeSetByKey (XalanNode *context, const XalanDOMString &name, const XalanDOMString &ref, const Locator *locator, MutableNodeRefList &nodelist)=0
 Given a valid element key, return the corresponding node list. More...
 
virtual const XObjectPtr getVariable (const XalanQName &name, const Locator *locator=0)=0
 Given a name, locate a variable in the current context, and return a pointer to the object. More...
 
virtual const PrefixResolvergetPrefixResolver () const =0
 Retrieve the resolver for namespaces. More...
 
virtual void setPrefixResolver (const PrefixResolver *thePrefixResolver)=0
 Change the resolver for namespaces. More...
 
virtual const XalanDOMStringgetNamespaceForPrefix (const XalanDOMString &prefix) const =0
 Retrieve the URI corresponding to a namespace prefix. More...
 
virtual const XalanDOMStringfindURIFromDoc (const XalanDocument *owner) const =0
 Given a DOM Document, tell what URI was used to parse it. More...
 
virtual const XalanDOMStringgetUnparsedEntityURI (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]). More...
 
virtual bool shouldStripSourceNode (const XalanText &node)=0
 Determine if a text node should be stripped from the source tree, as if it weren't there. More...
 
virtual XalanDocumentgetSourceDocument (const XalanDOMString &theURI) const =0
 Get the document associated with the given URI. More...
 
virtual void setSourceDocument (const XalanDOMString &theURI, XalanDocument *theDocument)=0
 Associate a document with a given URI. More...
 
virtual void formatNumber (double number, const XalanDOMString &pattern, XalanDOMString &theResult, const XalanNode *context=0, const Locator *locator=0)=0
 Formats a number according to the specified pattern. More...
 
virtual void formatNumber (double number, const XalanDOMString &pattern, const XalanDOMString &dfsName, XalanDOMString &theResult, const XalanNode *context=0, const Locator *locator=0)=0
 Formats a number according to the specified pattern. More...
 
virtual void problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)=0
 Function that is called when a problem event occurs. More...
 
virtual void problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)=0
 Function that is called when a problem event occurs. More...
 
- Public Member Functions inherited from xalanc::XPathExecutionContext
 XPathExecutionContext (MemoryManager &theMemoryManager, XObjectFactory *theXObjectFactory=0)
 
virtual ~XPathExecutionContext ()
 
XObjectFactorygetXObjectFactory () const
 Retrieve the factory object for creating XObjects. More...
 
- Public Member Functions inherited from xalanc::ExecutionContext
 ExecutionContext (MemoryManager &theMemoryManager)
 
virtual ~ExecutionContext ()
 
bool hasPreserveOrStripSpaceConditions () const
 
MemoryManager & getMemoryManager () const
 
MemoryManager & getExceptionMemoryManager () const
 
- Public Member Functions inherited from xalanc::ProblemListenerBase
 ProblemListenerBase ()
 
virtual ~ProblemListenerBase ()
 

Additional Inherited Members

- Static Public Member Functions inherited from xalanc::ProblemListenerBase
static void defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)
 Function to format a problem call to a PrintWriter instance. More...
 
static void defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)
 Function to format a problem call to a PrintWriter instance. More...
 
- Protected Attributes inherited from xalanc::XPathExecutionContext
XObjectFactorym_xobjectFactory
 
- Protected Attributes inherited from xalanc::ExecutionContext
MemoryManager & m_memoryManager
 
bool m_hasPreserveOrStripConditions
 
- Static Protected Attributes inherited from xalanc::ProblemListenerBase
static const XalanMessages::Codes s_messageCodes [eSourceCount][eClassificationCount]
 

Detailed Description

Definition at line 106 of file StylesheetExecutionContext.hpp.

Member Typedef Documentation

◆ fl_size_type

Definition at line 112 of file StylesheetExecutionContext.hpp.

◆ ParamVectorType

Definition at line 576 of file StylesheetExecutionContext.hpp.

◆ StreamType

Definition at line 114 of file StylesheetExecutionContext.hpp.

◆ tl_size_type

Definition at line 110 of file StylesheetExecutionContext.hpp.

◆ XalanNumberFormatAutoPtr

Definition at line 1521 of file StylesheetExecutionContext.hpp.

Member Enumeration Documentation

◆ eDummy

Enumerator
eDefaultXMLIndentAmount 
eDefaultHTMLIndentAmount 

Definition at line 1256 of file StylesheetExecutionContext.hpp.

◆ eEscapeURLs

Enums to determine whether or not run-time escaping of URLs has been set.

Enumerator
eEscapeURLsDefault 
eEscapeURLsNo 
eEscapeURLsYes 

Definition at line 1265 of file StylesheetExecutionContext.hpp.

◆ eOmitMETATag

Enums to determine whether or not run-time omission of the META tag has been set.

Enumerator
eOmitMETATagDefault 
eOmitMETATagNo 
eOmitMETATagYes 

Definition at line 1296 of file StylesheetExecutionContext.hpp.

Constructor & Destructor Documentation

◆ StylesheetExecutionContext()

xalanc::StylesheetExecutionContext::StylesheetExecutionContext ( MemoryManager &  theMemoryManager,
XObjectFactory theXObjectFactory = 0 
)
explicit

◆ ~StylesheetExecutionContext()

virtual xalanc::StylesheetExecutionContext::~StylesheetExecutionContext ( )
virtual

Member Function Documentation

◆ addResultAttribute() [1/2]

virtual void xalanc::StylesheetExecutionContext::addResultAttribute ( const XalanDOMString aname,
const XalanDOMChar *  value 
)
pure virtual

Add a result attribute to the list of pending attributes.

Parameters
anamename of attribute
valuevalue of attribute

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ addResultAttribute() [2/2]

virtual void xalanc::StylesheetExecutionContext::addResultAttribute ( const XalanDOMString aname,
const XalanDOMString value 
)
pure virtual

Add a result attribute to the list of pending attributes.

Parameters
anamename of attribute
valuevalue of attribute

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ beginCreateXResultTreeFrag()

virtual void xalanc::StylesheetExecutionContext::beginCreateXResultTreeFrag ( XalanNode sourceNode)
pure virtual

Initiate creation of a result tree fragment.

Parameters
sourceNodethe source Node

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ beginFormatToText()

virtual void xalanc::StylesheetExecutionContext::beginFormatToText ( XalanDOMString theResult)
pure virtual

Initiate to put execution result in string.

Parameters
theResultthe string to contain the result

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ beginParams()

virtual void xalanc::StylesheetExecutionContext::beginParams ( )
pure virtual

Initiate context to accept a new set of parameters.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ borrowMutableNodeRefList()

virtual MutableNodeRefList* xalanc::StylesheetExecutionContext::borrowMutableNodeRefList ( )
pure virtual

Borrow a cached MutableNodeRefList instance.

Returns
A pointer to the instance.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ characters() [1/3]

virtual void xalanc::StylesheetExecutionContext::characters ( const XalanDOMChar *  ch,
fl_size_type  start,
fl_size_type  length 
)
pure virtual

Receive notification of character data.

Parameters
chpointer to characters from the XML document
startstart position in the array
lengthnumber of characters to read from the array

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ characters() [2/3]

virtual void xalanc::StylesheetExecutionContext::characters ( const XalanNode node)
pure virtual

Send character data from a node to the result tree.

Parameters
nodeThe node to send.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ characters() [3/3]

virtual void xalanc::StylesheetExecutionContext::characters ( const XObjectPtr xobject)
pure virtual

Send character data from an XObject to the result tree.

Parameters
nodeThe xobject to send.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ charactersRaw() [1/3]

virtual void xalanc::StylesheetExecutionContext::charactersRaw ( const XalanDOMChar *  ch,
fl_size_type  start,
fl_size_type  length 
)
pure virtual

Receive notification of character data.

If available, when the disable-output-escaping attribute is used, output raw text without escaping.

Parameters
chpointer to characters from the XML document
startstart position in the array
lengthnumber of characters to read from the array

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ charactersRaw() [2/3]

virtual void xalanc::StylesheetExecutionContext::charactersRaw ( const XalanNode node)
pure virtual

Send raw character data from a node to the result tree.

Parameters
nodeThe node to send.
lengthnumber of characters to read from the array

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ charactersRaw() [3/3]

virtual void xalanc::StylesheetExecutionContext::charactersRaw ( const XObjectPtr xobject)
pure virtual

Send raw character data from an XObject to the result tree.

Parameters
nodeThe xobject to send.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ clearTopLevelParams()

virtual void xalanc::StylesheetExecutionContext::clearTopLevelParams ( )
pure virtual

Reset the vector of top level parameters.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ cloneToResultTree() [1/2]

virtual void xalanc::StylesheetExecutionContext::cloneToResultTree ( const XalanNode node,
const Locator *  locator 
)
pure virtual

Clone a node to the result tree.

Parameters
nodenode to clone
locatorThe Locator, if any

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ cloneToResultTree() [2/2]

virtual void xalanc::StylesheetExecutionContext::cloneToResultTree ( const XalanNode node,
XalanNode::NodeType  nodeType,
bool  overrideStrip,
bool  shouldCloneAttributes,
const Locator *  locator 
)
pure virtual

Clone a node to the result tree.

Parameters
nodenode to clone
nodeTypethe type of the node
overrideStripfalse if white space stripping should be done
shouldCloneAttributestrue if attributes should be cloned
locatorThe Locator, if any

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ collationCompare() [1/4]

virtual int xalanc::StylesheetExecutionContext::collationCompare ( const XalanDOMChar *  theLHS,
const XalanDOMChar *  theRHS,
const XalanDOMChar *  theLocale,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
)
pure virtual

Compare two strings using the collation of the current locale.

Parameters
theLHSa string to compare
theRHSa string to compare
theLocala string that specifies the locale
theCaseOrderthe case order for the comparison
Returns
< 0 if theLHS is before theRHS, 0 if they are equal, or > 0 if theLHS is after theRHS

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ collationCompare() [2/4]

virtual int xalanc::StylesheetExecutionContext::collationCompare ( const XalanDOMChar *  theLHS,
const XalanDOMChar *  theRHS,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
)
pure virtual

Compare two strings using the collation of the current locale.

Parameters
theLHSa string to compare
theRHSa string to compare
theCaseOrderthe case order for the comparison
Returns
< 0 if theLHS is before theRHS, 0 if they are equal, or > 0 if theLHS is after theRHS

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ collationCompare() [3/4]

virtual int xalanc::StylesheetExecutionContext::collationCompare ( const XalanDOMString theLHS,
const XalanDOMString theRHS,
const XalanDOMString theLocale,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
)
pure virtual

Compare two strings using the collation of the supplied locale.

Parameters
theLHSa string to compare
theRHSa string to compare
theLocala string that specifies the locale
theCaseOrderthe case order for the comparison
Returns
< 0 if theLHS is before theRHS, 0 if they are equal, or > 0 if theLHS is after theRHS

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ collationCompare() [4/4]

virtual int xalanc::StylesheetExecutionContext::collationCompare ( const XalanDOMString theLHS,
const XalanDOMString theRHS,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
)
pure virtual

Compare two strings using the collation of the current locale.

Parameters
theLHSa string to compare
theRHSa string to compare
theCaseOrderthe case order for the comparison
Returns
< 0 if theLHS is before theRHS, 0 if they are equal, or > 0 if theLHS is after theRHS

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ comment()

virtual void xalanc::StylesheetExecutionContext::comment ( const XalanDOMChar *  data)
pure virtual

Called when a Comment is to be constructed.

Parameters
datapointer to comment data

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ copyNamespaceAttributes()

virtual void xalanc::StylesheetExecutionContext::copyNamespaceAttributes ( const XalanNode src)
pure virtual

Add namespace attributes for a node to the list of pending attributes.

Parameters
srcsource node

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createAndPushMutableNodeRefList()

virtual MutableNodeRefList& xalanc::StylesheetExecutionContext::createAndPushMutableNodeRefList ( )
pure virtual

◆ createAndPushNodesToTransformList()

virtual void xalanc::StylesheetExecutionContext::createAndPushNodesToTransformList ( const NodeRefListBase nodeList)
pure virtual

◆ createFormatterToHTML()

virtual FormatterListener* xalanc::StylesheetExecutionContext::createFormatterToHTML ( Writer writer,
const XalanDOMString encoding = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString mediaType = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypeSystem = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypePublic = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  doIndent = true,
int  indent = eDefaultHTMLIndentAmount,
bool  escapeURLs = true,
bool  omitMetaTag = false 
)
pure virtual

Create a new FormatterToHTML instance.

The execution context owns the instance and will delete it when reset.

Parameters
writercharacter output stream to use
encodingcharacter encoding for the writer
mediaTypemedia type (MIME content type) of the data
doctypeSystemsystem identifier to be used in the document type declaration
doctypePublicpublic identifier to be used in the document type declaration
doIndenttrue if output is to be indented
indentnumber of spaces to indent at each nesting level
escapeURLsWhether or not to escape URLs according to the recommendation. The default is true.
omitMetaTagWhether or not to output a META TAG according to the recommendation. The default is false.
Returns
a pointer to the new instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createFormatterToText()

virtual FormatterListener* xalanc::StylesheetExecutionContext::createFormatterToText ( Writer writer,
const XalanDOMString encoding 
)
pure virtual

FormatterToText instance constructor.

Parameters
writerwriter for output
encodingcharacter encoding for the writer

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createFormatterToXML()

virtual FormatterListener* xalanc::StylesheetExecutionContext::createFormatterToXML ( Writer writer,
const XalanDOMString version = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  doIndent = false,
int  indent = eDefaultXMLIndentAmount,
const XalanDOMString encoding = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString mediaType = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypeSystem = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
const XalanDOMString doctypePublic = XalanDOMString(XalanMemMgrs::getDummyMemMgr()),
bool  xmlDecl = true,
const XalanDOMString standalone = XalanDOMString(XalanMemMgrs::getDummyMemMgr()) 
)
pure virtual

Create a new FormatterToXML instance.

The execution context owns the instance and will delete it when reset.

Parameters
writercharacter output stream to use
versionversion of the output method
doIndenttrue if output is to be indented
indentnumber of spaces to indent at each nesting level
encodingcharacter encoding for the writer
mediaTypemedia type (MIME content type) of the data
doctypeSystemsystem identifier to be used in the document type declaration
doctypePublicpublic identifier to be used in the document type declaration
xmlDecltrue if the XSLT processor should output an XML declaration
standalonetrue if the XSLT processor should output a standalone document declaration
Returns
a pointer to the new instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createMatchPattern()

virtual const XPath* xalanc::StylesheetExecutionContext::createMatchPattern ( const XalanDOMString str,
const PrefixResolver resolver 
)
pure virtual

Create and initialize an xpath and return it.

This is to be used to create an XPath that is only used during execution.

Parameters
strstring expression for XPath evaluation
resolverresolver for namespace resolution
Returns
pointer to resulting XPath

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createMutableNodeRefList()

virtual MutableNodeRefList* xalanc::StylesheetExecutionContext::createMutableNodeRefList ( MemoryManager &  theManager) const
pure virtual

Create a MutableNodeRefList with the appropriate context.

Returns
pointer to node list created

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createPrintWriter() [1/4]

virtual PrintWriter* xalanc::StylesheetExecutionContext::createPrintWriter ( const XalanDOMString theFileName,
const XalanDOMString theEncoding 
)
pure virtual

Create a PrintWriter.

Create an appropriate output stream using the provided file name and encoding.

Parameters
theFileNameThe file name for the output stream
theEncodingThe encoding for the output stream
Returns
The new instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createPrintWriter() [2/4]

virtual PrintWriter* xalanc::StylesheetExecutionContext::createPrintWriter ( FILE *  theStream)
pure virtual

Create a PrintWriter using the provided FILE instance.

Parameters
theStreamThe output stream for the PrintWriter.
Returns
The new instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createPrintWriter() [3/4]

virtual PrintWriter* xalanc::StylesheetExecutionContext::createPrintWriter ( StreamType theStream)
pure virtual

Create a PrintWriter using the provided ostream instance.

Parameters
theStreamThe output stream for the PrintWriter.
Returns
The new instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createPrintWriter() [4/4]

virtual PrintWriter* xalanc::StylesheetExecutionContext::createPrintWriter ( XalanOutputStream theTextOutputStream)
pure virtual

Create a PrintWriter for the provided stream.

Parameters
theTextOutputStreamThe output stream for the PrintWriter.
Returns
The new instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createUseAttributeSetIndexesOnStack()

virtual void xalanc::StylesheetExecutionContext::createUseAttributeSetIndexesOnStack ( )
pure virtual

◆ createVariable()

virtual const XObjectPtr xalanc::StylesheetExecutionContext::createVariable ( const XPath xpath,
XalanNode contextNode,
const PrefixResolver resolver 
)
pure virtual

Execute the supplied XPath and and create a variable in the current context.

Parameters
strstring expression for XPath evaluation
contextNodecurrent node in the source tree
resolverresolver for namespace resolution
Returns
a pointer to the XObject result

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ createXalanNumberFormat()

virtual XalanNumberFormatAutoPtr xalanc::StylesheetExecutionContext::createXalanNumberFormat ( )
pure virtual

Create a new XalanNumberFormat instance.

Returns
an XalanNumberFormatAutoPtr that owns a new XalanNumberFormat instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ elementAvailable() [1/2]

virtual bool xalanc::StylesheetExecutionContext::elementAvailable ( const XalanDOMString theName,
const Locator *  locator 
) const
pure virtual

Determine if an external element is available by resolving a string to a QName.

Parameters
theNameThe name of the element
locatorA Locator instance for error reporting
Returns
whether the given element is available or not

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ elementAvailable() [2/2]

virtual bool xalanc::StylesheetExecutionContext::elementAvailable ( const XalanQName theQName) const
pure virtual

Determine if an external element is available.

Parameters
theQNameThe QName of the element
Returns
whether the given element is available or not

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ endCreateXResultTreeFrag()

virtual const XObjectPtr xalanc::StylesheetExecutionContext::endCreateXResultTreeFrag ( )
pure virtual

Indicate sthe completion of result tree fragment.

Returns
a pointer to the result tree fragment

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ endDocument()

virtual void xalanc::StylesheetExecutionContext::endDocument ( )
pure virtual

Receive notification of the end of a document.

The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.

Exceptions
SAXException

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ endElement()

virtual void xalanc::StylesheetExecutionContext::endElement ( const XalanDOMChar *  name)
pure virtual

Receive notification of the end of an element.

Parameters
nameelement type name

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ endFormatToText()

virtual void xalanc::StylesheetExecutionContext::endFormatToText ( )
pure virtual

Indicates the completion of the result string.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ endParams()

virtual void xalanc::StylesheetExecutionContext::endParams ( )
pure virtual

Indicate parameter set is complete.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ extFunction()

virtual const XObjectPtr xalanc::StylesheetExecutionContext::extFunction ( const XalanDOMString theNamespace,
const XalanDOMString functionName,
XalanNode context,
const XObjectArgVectorType argVec,
const Locator *  locator 
)
pure virtual

Handle an extension function.

Parameters
theNamespacenamespace of function
functionNameextension function name
contextThe context node
argVecvector of arguments to function
locatorA Locator instance for error reporting
Returns
pointer to XObject result

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ findOnElementRecursionStack()

virtual bool xalanc::StylesheetExecutionContext::findOnElementRecursionStack ( const ElemTemplateElement theElement) const
pure virtual

Determine if an element is on the recursion stack.

Returns
true if element on stack

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ findURIFromDoc()

virtual const XalanDOMString& xalanc::StylesheetExecutionContext::findURIFromDoc ( const XalanDocument owner) const
pure virtual

Given a DOM Document, tell what URI was used to parse it.

Needed for relative resolution.

Parameters
ownersource document
Returns
document URI

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ fireGenerateEvent()

virtual void xalanc::StylesheetExecutionContext::fireGenerateEvent ( const GenerateEvent ge)
pure virtual

Fire a generate event.

Parameters
gegenerate event to fire

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ fireSelectEvent()

virtual void xalanc::StylesheetExecutionContext::fireSelectEvent ( const SelectionEvent se)
pure virtual

Fire a selection event.

Parameters
seselection event to fire

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ fireTraceEvent()

virtual void xalanc::StylesheetExecutionContext::fireTraceEvent ( const TracerEvent te)
pure virtual

Fire a trace event.

Parameters
tetrace event to fire

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ flushPending()

virtual void xalanc::StylesheetExecutionContext::flushPending ( )
pure virtual

Flush the pending element.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ formatNumber() [1/2]

virtual void xalanc::StylesheetExecutionContext::formatNumber ( double  number,
const XalanDOMString pattern,
const XalanDOMString dfsName,
XalanDOMString theResult,
const XalanNode context = 0,
const Locator *  locator = 0 
)
pure virtual

Formats a number according to the specified pattern.

Parameters
numberthe number to be formatted
patternthe format pattern
dfsNamethe name of decimal format to use
theResultthe formatted number
contextthe source node
locatorthe locator
Returns
a pointer to the functor, 0 if none was found

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ formatNumber() [2/2]

virtual void xalanc::StylesheetExecutionContext::formatNumber ( double  number,
const XalanDOMString pattern,
XalanDOMString theResult,
const XalanNode context = 0,
const Locator *  locator = 0 
)
pure virtual

Formats a number according to the specified pattern.

Parameters
numberthe number to be formatted
patternthe format pattern
theResultthe formatted number
contextthe source node
locatorthe locator

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ functionAvailable() [1/2]

virtual bool xalanc::StylesheetExecutionContext::functionAvailable ( const XalanDOMString theName,
const Locator *  locator 
) const
pure virtual

Determine if a function is available.

Parameters
theNameThe name of the function
locatorA Locator instance for error reporting
Returns
whether the function is available or not

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ functionAvailable() [2/2]

virtual bool xalanc::StylesheetExecutionContext::functionAvailable ( const XalanQName theQName) const
pure virtual

Determine if a function is available.

Parameters
theQNameThe QName of the function
Returns
whether the function is available or not

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getAndPopCachedString()

virtual XalanDOMString& xalanc::StylesheetExecutionContext::getAndPopCachedString ( )
pure virtual

Gets the last string to be cached on the stack and pops it from the stack.

The reference is valid until the next request is made for a cached string

Returns
the last string to be cached

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getAndPushCachedString()

virtual XalanDOMString& xalanc::StylesheetExecutionContext::getAndPushCachedString ( )
pure virtual

Get a string that is cached on a stack.

Returns
a cached string

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getCachedString()

virtual XalanDOMString& xalanc::StylesheetExecutionContext::getCachedString ( )
pure virtual

Get a cached string for temporary use.

Returns
A reference to the string

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getContextNodeList()

virtual const NodeRefListBase& xalanc::StylesheetExecutionContext::getContextNodeList ( ) const
pure virtual

Get the node list for current context.

Returns
node list

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getContextNodeListLength()

virtual size_type xalanc::StylesheetExecutionContext::getContextNodeListLength ( ) const
pure virtual

◆ getContextNodeListPosition()

virtual size_type xalanc::StylesheetExecutionContext::getContextNodeListPosition ( const XalanNode contextNode) const
pure virtual

◆ getCopyTextNodesOnly()

virtual bool xalanc::StylesheetExecutionContext::getCopyTextNodesOnly ( ) const
pure virtual

If this function returns true, only text nodes can be copied to the result tree.

Returns
true or false

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getCountersTable()

virtual CountersTable& xalanc::StylesheetExecutionContext::getCountersTable ( )
pure virtual

Get the counters table, which is a table of cached results that is used by ElemNumber.

Returns
A reference to the counters table.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getCurrentMode()

virtual const XalanQName* xalanc::StylesheetExecutionContext::getCurrentMode ( ) const
pure virtual

Retrieve the current mode.

Returns
QName for mode

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getCurrentNode()

virtual XalanNode* xalanc::StylesheetExecutionContext::getCurrentNode ( ) const
pure virtual

Retrieve the node currently being executed.

Returns
current node

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getCurrentStackFrameIndex()

virtual int xalanc::StylesheetExecutionContext::getCurrentStackFrameIndex ( ) const
pure virtual

Get the top of the stack frame from where a search for a variable or param should take place.

Returns
current value of index

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getCurrentTemplate()

virtual const ElemTemplate* xalanc::StylesheetExecutionContext::getCurrentTemplate ( ) const
pure virtual

Retrieve the current template.

Returns
The current template instance or null if there is no current template

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getEscapeURLs()

virtual eEscapeURLs xalanc::StylesheetExecutionContext::getEscapeURLs ( ) const
pure virtual

Get the value for run-time escaping of URLs.

This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.

Returns
The value of the enum

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getFormatterListener()

virtual FormatterListener* xalanc::StylesheetExecutionContext::getFormatterListener ( ) const
pure virtual

Get the current formatter listener.

Returns
pointer to formatter listener

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getGlobalStackFrameIndex()

virtual int xalanc::StylesheetExecutionContext::getGlobalStackFrameIndex ( ) const
pure virtual

Get the top of the global stack frame.

Returns
current value of index

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getIndent()

virtual int xalanc::StylesheetExecutionContext::getIndent ( ) const
pure virtual

Retrieve the current number of spaces to indent.

Returns
number of spaces

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getInvoker()

virtual const ElemTemplateElement* xalanc::StylesheetExecutionContext::getInvoker ( ) const
pure virtual

Get the lastest element that has invoked a non-child element.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getLastCachedString()

virtual XalanDOMString& xalanc::StylesheetExecutionContext::getLastCachedString ( )
pure virtual

Gets the last string that was cached on the stack.

Returns
the last string to be cached

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getNamespaceForPrefix()

virtual const XalanDOMString* xalanc::StylesheetExecutionContext::getNamespaceForPrefix ( const XalanDOMString prefix) const
pure virtual

Retrieve the URI corresponding to a namespace prefix.

Parameters
prefixprefix for a namespace
Returns
URI corresponding to namespace

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getNextNodeToTransform()

virtual XalanNode* xalanc::StylesheetExecutionContext::getNextNodeToTransform ( )
pure virtual

◆ getNodeSetByKey() [1/2]

virtual void xalanc::StylesheetExecutionContext::getNodeSetByKey ( XalanNode context,
const XalanDOMString name,
const XalanDOMString ref,
const Locator *  locator,
MutableNodeRefList nodelist 
)
pure virtual

Given a valid element key, return the corresponding node list.

Parameters
contextcontext node
namename of the key, which must match the 'name' attribute on xsl:key. Will be resolved to a qname using the provided resolver.
refvalue that must match the value found by the 'match' attribute on xsl:key
locatorThe Locator to use for error reporting. Can be 0.
nodelistA node list to contain the nodes found

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getNodeSetByKey() [2/2]

virtual void xalanc::StylesheetExecutionContext::getNodeSetByKey ( XalanNode context,
const XalanQName qname,
const XalanDOMString ref,
const Locator *  locator,
MutableNodeRefList nodelist 
)
pure virtual

Given a valid element key, return the corresponding node list.

Parameters
contextcontext node
nameqname of the key, which must match the 'name' attribute on xsl:key
refvalue that must match the value found by the 'match' attribute on xsl:key
locatorThe Locator to use for error reporting. Can be 0.
nodelistA node list to contain the nodes found

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getNodeSorter()

virtual NodeSorter* xalanc::StylesheetExecutionContext::getNodeSorter ( )
pure virtual

Get node sorter instance.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getOmitMETATag()

virtual eOmitMETATag xalanc::StylesheetExecutionContext::getOmitMETATag ( ) const
pure virtual

Get the value for run-time omission of URLs.

This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.

Returns
The value of the enum

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getParamVariable()

virtual const XObjectPtr xalanc::StylesheetExecutionContext::getParamVariable ( const XalanQName theName)
pure virtual

Given a name, return a string representing the value, but don't look in the global space.

Parameters
theNamename of variable
Returns
An XObjectPtr instance. Call XObjectPtr::null() on the instance to determine if the variable was found. If XObjectPtr::null() returns true, the variable was not found, and no other operations on the XObject instance are permitted.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getPrefixResolver()

virtual const PrefixResolver* xalanc::StylesheetExecutionContext::getPrefixResolver ( ) const
pure virtual

Retrieve the resolver for namespaces.

Returns
object for namespace resolution

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getQuietConflictWarnings()

virtual bool xalanc::StylesheetExecutionContext::getQuietConflictWarnings ( ) const
pure virtual

Determine whether conflicts should be reported.

Returns
true if conflicts should not be warned

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getResultNamespaceForPrefix()

virtual const XalanDOMString* xalanc::StylesheetExecutionContext::getResultNamespaceForPrefix ( const XalanDOMString thePrefix) const
pure virtual

Retrieve the result namespace corresponding to a prefix.

Parameters
thePrefixprefix for namespace
Returns
A pointer to a string containing the namespace, or 0 if the prefix is not mapped.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getResultPrefixForNamespace()

virtual const XalanDOMString* xalanc::StylesheetExecutionContext::getResultPrefixForNamespace ( const XalanDOMString theNamespace) const
pure virtual

Retrieve the result prefix corresponding to a namespace.

Parameters
theNamespacenamespace for prefix
Returns
A pointer to a string containing the prefix, or 0 if the namespace is not mapped.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getRootDocument()

virtual XalanNode* xalanc::StylesheetExecutionContext::getRootDocument ( ) const
pure virtual

Retrieve root document for stylesheet.

Note that this does not have to be a XalanDocument – it can be any node in a document.

Returns
root document

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getSkipElementAttributes()

virtual bool xalanc::StylesheetExecutionContext::getSkipElementAttributes ( ) const
pure virtual

Get the last flag setting that determines if an element's attributes should be skipped.

Returns
the value of the flag

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getSourceDocument()

virtual XalanDocument* xalanc::StylesheetExecutionContext::getSourceDocument ( const XalanDOMString theURI) const
pure virtual

Get the document associated with the given URI.

Parameters
theURIdocument URI
Returns
a pointer to the document instance, if any.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getTraceListeners()

virtual tl_size_type xalanc::StylesheetExecutionContext::getTraceListeners ( ) const
pure virtual

Determine the number of trace listeners.

Returns
number of listeners

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getTraceSelects()

virtual bool xalanc::StylesheetExecutionContext::getTraceSelects ( ) const
pure virtual

If this is set to true, simple traces of template calls are made.

Returns
true if traces made

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getUniqueNamespaceValue()

virtual void xalanc::StylesheetExecutionContext::getUniqueNamespaceValue ( XalanDOMString theValue) const
pure virtual

Generate a random namespace prefix guaranteed to be unique.

Parameters
theValueA string for returning the new prefix

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getUnparsedEntityURI()

virtual const XalanDOMString& xalanc::StylesheetExecutionContext::getUnparsedEntityURI ( const XalanDOMString theName,
const XalanDocument theDocument 
) const
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.

Parameters
theNamename of entity
theDocumentdocument containing entity
Returns
URI for the entity

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getUseAttributeSetIndexes()

virtual UseAttributeSetIndexes& xalanc::StylesheetExecutionContext::getUseAttributeSetIndexes ( )
pure virtual

◆ getVariable()

virtual const XObjectPtr xalanc::StylesheetExecutionContext::getVariable ( const XalanQName name,
const Locator *  locator = 0 
)
pure virtual

Given a name, locate a variable in the current context, and return a pointer to the object.

Parameters
theNamename of variable
Returns
An XObjectPtr instance. If the variable is not found, an exception is thrown, or the routine returns an instance of XUnknown.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getXalanXSLNameSpaceURL()

virtual const XalanDOMString& xalanc::StylesheetExecutionContext::getXalanXSLNameSpaceURL ( ) const
pure virtual

Special Xalan namespace for built-in extensions.

Returns
Xalan namespace for extensions

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ getXSLNameSpaceURL()

virtual const XalanDOMString& xalanc::StylesheetExecutionContext::getXSLNameSpaceURL ( ) const
pure virtual

Determine the full XSLT Namespace URI.

Returns
Xalan namespace URI

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ isElementPending()

virtual bool xalanc::StylesheetExecutionContext::isElementPending ( ) const
pure virtual

See if there is an element pending.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ isNodeAfter()

virtual bool xalanc::StylesheetExecutionContext::isNodeAfter ( const XalanNode node1,
const XalanNode node2 
) const
pure virtual

Determine if a node is after another node, in document order.

Parameters
node1The first node
node2The second node
Returns
true if node1 one is after node2, or false if it is not.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ isPendingResultPrefix()

virtual bool xalanc::StylesheetExecutionContext::isPendingResultPrefix ( const XalanDOMString thePrefix)
pure virtual

Determine whether or not a prefix is in use on the pending element or the pending attributes.

Parameters
thePrefixprefix for namespace
Returns
true if the prefix is in use, false if not.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ outputResultTreeFragment()

virtual void xalanc::StylesheetExecutionContext::outputResultTreeFragment ( const XObject theTree,
const Locator *  locator 
)
pure virtual

Given a result tree fragment, walk the tree and output it to the result stream.

Parameters
theTreeresult tree fragment
locatorThe Locator, if any

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ outputToResultTree()

virtual void xalanc::StylesheetExecutionContext::outputToResultTree ( const XObject xobj,
const Locator *  locator 
)
pure virtual

Output an object to the result tree by doing the right conversions.

This is public for access by extensions.

Parameters
objthe XObject to output
locatorThe Locator, if any

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ parseXML()

virtual XalanDocument* xalanc::StylesheetExecutionContext::parseXML ( MemoryManager &  theManager,
const XalanDOMString urlString,
const XalanDOMString base,
ErrorHandler *  theErrorHandler = 0 
) const
pure virtual

Provides support for XML parsing service.

Parameters
theManagerThe MemoryManager instance to use.
urlStringlocation of the XML
basebase location for URI
theErrorHandlerAn optional ErrorHandler instance for error reporting.
Returns
parsed document

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popContextMarker()

virtual void xalanc::StylesheetExecutionContext::popContextMarker ( )
pure virtual

Pop the current context from the current context stack.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popContextNodeList()

virtual void xalanc::StylesheetExecutionContext::popContextNodeList ( )
pure virtual

Pop the node list for current context.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popCopyTextNodesOnly()

virtual bool xalanc::StylesheetExecutionContext::popCopyTextNodesOnly ( )
pure virtual

Pop the last flag setting that determines if only text nodes can be copied to the result tree.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popCurrentMode()

virtual void xalanc::StylesheetExecutionContext::popCurrentMode ( )
pure virtual

Pop the current mode.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popCurrentNode()

virtual void xalanc::StylesheetExecutionContext::popCurrentNode ( )
pure virtual

Reset the node currently being executed.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popCurrentStackFrameIndex()

virtual void xalanc::StylesheetExecutionContext::popCurrentStackFrameIndex ( )
pure virtual

Pop the last stack frame index setting.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popCurrentTemplate()

virtual void xalanc::StylesheetExecutionContext::popCurrentTemplate ( )
pure virtual

◆ popElementFrame()

virtual void xalanc::StylesheetExecutionContext::popElementFrame ( )
pure virtual

Pop a frame marker for an element.

Parameters
elemthe element

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popElementRecursionStack()

virtual const ElemTemplateElement* xalanc::StylesheetExecutionContext::popElementRecursionStack ( )
pure virtual

Pop an element off the recursion stack.

Returns
pointer to element popped

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popExecuteIf()

virtual bool xalanc::StylesheetExecutionContext::popExecuteIf ( )
pure virtual

Pop the flag that determines if the if test was true.

Parameters
executeIfthe value of the flag

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popInvoker()

virtual void xalanc::StylesheetExecutionContext::popInvoker ( )
pure virtual

Pop the element that invoked non children elements.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popNodesToTransformList()

virtual void xalanc::StylesheetExecutionContext::popNodesToTransformList ( )
pure virtual

◆ popOutputContext()

virtual void xalanc::StylesheetExecutionContext::popOutputContext ( )
pure virtual

◆ popProcessCurrentAttribute()

virtual bool xalanc::StylesheetExecutionContext::popProcessCurrentAttribute ( )
pure virtual

Pops the last flag setting that determines if the current attribute should be executed.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popSkipElementAttributes()

virtual bool xalanc::StylesheetExecutionContext::popSkipElementAttributes ( )
pure virtual

Pops the last flag setting that determines if an element's attributes should be skipped.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ popUseAttributeSetIndexesFromStack()

virtual void xalanc::StylesheetExecutionContext::popUseAttributeSetIndexesFromStack ( )
pure virtual

◆ popXObjectPtr()

virtual void xalanc::StylesheetExecutionContext::popXObjectPtr ( )
pure virtual

◆ problem() [1/2]

virtual void xalanc::StylesheetExecutionContext::problem ( eSource  source,
eClassification  classification,
const XalanDOMString msg,
const Locator *  locator,
const XalanNode sourceNode 
)
pure virtual

Function that is called when a problem event occurs.

Parameters
sourceEither eXMLParser, eXSLProcessor, or eXPATH.
classificationEither eMessage, eWarning, or eError.
locatorThe current Locator instance for the stylesheet. Maybe be a null pointer.
sourceNodeThe current source node, if any.
msgThe error message.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ problem() [2/2]

virtual void xalanc::StylesheetExecutionContext::problem ( eSource  source,
eClassification  classification,
const XalanDOMString msg,
const XalanNode sourceNode 
)
pure virtual

Function that is called when a problem event occurs.

This version assumes location information is already formatted into the message.

Parameters
sourceeither eXMLPARSER, eXSLPROCESSOR, or eXPATH
classificationeither eMESSAGE, eERROR or eWARNING
msgstring message explaining the problem.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ processingInstruction()

virtual void xalanc::StylesheetExecutionContext::processingInstruction ( const XalanDOMChar *  target,
const XalanDOMChar *  data 
)
pure virtual

Receive notification of a processing instruction.

Parameters
targetprocessing instruction target
dataprocessing instruction data, or null if none was supplied

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushContextMarker()

virtual void xalanc::StylesheetExecutionContext::pushContextMarker ( )
pure virtual

Push a context marker onto the stack to let us know when to stop searching for a var.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushContextNodeList()

virtual void xalanc::StylesheetExecutionContext::pushContextNodeList ( const NodeRefListBase theList)
pure virtual

Push the node list for current context.

Parameters
theListnew node list

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushCopyTextNodesOnly()

virtual void xalanc::StylesheetExecutionContext::pushCopyTextNodesOnly ( bool  copyTextNodesOnly)
pure virtual

Set the flag that determines if only text nodes can be copied to the result tree.

Parameters
copyTextNodesOnlyThe value of the flag

Implemented in xalanc::StylesheetExecutionContextDefault.

Referenced by xalanc::StylesheetExecutionContext::SetAndRestoreCopyTextNodesOnly::SetAndRestoreCopyTextNodesOnly().

◆ pushCurrentMode()

virtual void xalanc::StylesheetExecutionContext::pushCurrentMode ( const XalanQName theMode)
pure virtual

Set the current mode.

Parameters
theModeQName for mode

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushCurrentNode()

virtual void xalanc::StylesheetExecutionContext::pushCurrentNode ( XalanNode theCurrentNode)
pure virtual

Change the node currently being executed.

Parameters
theCurrentNodenew current node

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushCurrentStackFrameIndex()

virtual void xalanc::StylesheetExecutionContext::pushCurrentStackFrameIndex ( int  currentStackFrameIndex = -1)
pure virtual

Set the top of the stack frame from where a search for a variable or param should take place.

Parameters
currentStackFrameIndexnew value of index

Implemented in xalanc::StylesheetExecutionContextDefault.

Referenced by xalanc::StylesheetExecutionContext::SetAndRestoreCurrentStackFrameIndex::SetAndRestoreCurrentStackFrameIndex().

◆ pushCurrentTemplate()

virtual void xalanc::StylesheetExecutionContext::pushCurrentTemplate ( const ElemTemplate theTemplate)
pure virtual

Set the current template.

Parameters
theTemplateThe current template instance

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushElementFrame()

virtual void xalanc::StylesheetExecutionContext::pushElementFrame ( const ElemTemplateElement elem)
pure virtual

Push a frame marker for an element.

Parameters
elemthe element

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushExecuteIf()

virtual void xalanc::StylesheetExecutionContext::pushExecuteIf ( bool  executeIf)
pure virtual

Set flag that determines if the if test was true.

Parameters
executeIfthe value of the flag

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushInvoker()

virtual void xalanc::StylesheetExecutionContext::pushInvoker ( const ElemTemplateElement invoker)
pure virtual

Push the element that will invoke non children elements (i.e templates, attribute-sets)

Parameters
invokersthe element that will invoke non children elements

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushOnElementRecursionStack()

virtual void xalanc::StylesheetExecutionContext::pushOnElementRecursionStack ( const ElemTemplateElement theElement)
pure virtual

Push an element onto the recursion stack.

Parameters
theElementpointer to element to push

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushOutputContext()

virtual void xalanc::StylesheetExecutionContext::pushOutputContext ( FormatterListener flistener = 0)
pure virtual

◆ pushParam()

virtual void xalanc::StylesheetExecutionContext::pushParam ( const XalanQName qName,
const XObjectPtr theValue 
)
pure virtual

Push a single paramter onto the latest initialized paramter set.

Parameters
qNamethe name of the parameter
theValuethe value of the parameter

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushProcessCurrentAttribute()

virtual void xalanc::StylesheetExecutionContext::pushProcessCurrentAttribute ( bool  processAttribute)
pure virtual

Set the flag that determines if the current attribute should be executed.

Parameters
processAttributethe value of the flag

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushSkipElementAttributes()

virtual void xalanc::StylesheetExecutionContext::pushSkipElementAttributes ( bool  skipAttributes)
pure virtual

Set the flag that determines if an element's attributes should be skipped.

Parameters
skipAttributesthe value of the flag

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushTopLevelVariables()

virtual void xalanc::StylesheetExecutionContext::pushTopLevelVariables ( const ParamVectorType topLevelParams)
pure virtual

Set a list of top level variables in the specified execution context stylesheet.

Parameters
topLevelParamslist of top level parameters

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushVariable() [1/4]

virtual void xalanc::StylesheetExecutionContext::pushVariable ( const XalanQName name,
const ElemTemplateElement element,
const XalanDOMString str,
XalanNode contextNode,
const PrefixResolver resolver 
)
pure virtual

Execute an XPath using the provided expression, and push the result as a variable in the context of the supplied element.

Parameters
namename of variable
elementelement marker for variable
strstring expression for XPath evaluation
contextNodecurrent node in the source tree
resolverresolver for namespace resolution
Returns
nothing

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushVariable() [2/4]

virtual void xalanc::StylesheetExecutionContext::pushVariable ( const XalanQName name,
const ElemTemplateElement element,
const XPath xpath,
XalanNode contextNode,
const PrefixResolver resolver 
)
pure virtual

Execute the supplied XPath and push the result as a variable in the current context.

Parameters
namename of variable
elementelement marker for variable
strstring expression for XPath evaluation
contextNodecurrent node in the source tree
resolverresolver for namespace resolution
Returns
nothing

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushVariable() [3/4]

virtual void xalanc::StylesheetExecutionContext::pushVariable ( const XalanQName name,
const ElemVariable var,
const ElemTemplateElement element 
)
pure virtual

Push a named variable onto the processor variable stack The variable will be evaluated when first referenced.

Parameters
namename of variable
varpointer to ElemVariable instance
elementelement marker for variable

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushVariable() [4/4]

virtual void xalanc::StylesheetExecutionContext::pushVariable ( const XalanQName name,
const XObjectPtr  val,
const ElemTemplateElement element 
)
pure virtual

Push a named variable onto the variables stack.

The variable has already been evaluated.

Parameters
namename of variable
valpointer to XObject value
elementelement marker for variable

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ pushXObjectPtr()

virtual void xalanc::StylesheetExecutionContext::pushXObjectPtr ( const XObjectPtr xobjectPtr)
pure virtual

◆ releaseAndPopMutableNodeRefList()

virtual void xalanc::StylesheetExecutionContext::releaseAndPopMutableNodeRefList ( )
pure virtual

◆ releaseCachedString()

virtual bool xalanc::StylesheetExecutionContext::releaseCachedString ( XalanDOMString theString)
pure virtual

Return a cached string.

Parameters
theStringThe string to release.
Returns
true if the string was released successfully.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ replacePendingAttribute()

virtual void xalanc::StylesheetExecutionContext::replacePendingAttribute ( const XalanDOMChar *  theName,
const XalanDOMChar *  theNewType,
const XalanDOMChar *  theNewValue 
)
pure virtual

Replace the contents of a pending attribute.

Parameters
theNamename of attribute
theNewTypetype of attribute
theNewValuenew value of attribute

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ reset()

virtual void xalanc::StylesheetExecutionContext::reset ( )
pure virtual

Reset the instance.

This must be called before another execution is attempted.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ resolveTopLevelParams()

virtual void xalanc::StylesheetExecutionContext::resolveTopLevelParams ( )
pure virtual

Resolve the params that were pushed by the caller.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ returnMutableNodeRefList()

virtual bool xalanc::StylesheetExecutionContext::returnMutableNodeRefList ( MutableNodeRefList theList)
pure virtual

Return a previously borrowed MutableNodeRefList instance.

Parameters
theListA pointer the to previously borrowed instance.
Returns
true if the list was borrowed (at therefore, destroyed), false if not.

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ returnXPath()

virtual void xalanc::StylesheetExecutionContext::returnXPath ( const XPath xpath)
pure virtual

Return the XPath created by createMatchPattern().

Parameters
xpathThe XPath to return.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ returnXResultTreeFrag()

virtual bool xalanc::StylesheetExecutionContext::returnXResultTreeFrag ( XResultTreeFrag theXResultTreeFrag)
pure virtual

This is a hook that XResultTreeFrag instances (which are reference counted), can notify the owning StylesheetExecutionContext instance when they are dereferenced and can be cleaned up.

Parameters
theXResultTreeFragThe instance that is being returned.
Returns
true if the XResultTreeFrag instance belongs to the execution context. false if not.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ setEscapeURLs()

virtual void xalanc::StylesheetExecutionContext::setEscapeURLs ( eEscapeURLs  value)
pure virtual

Set the value for run-time escaping of URLs.

This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.

Parameters
valueThe value of the enum

◆ setFormatterListener()

virtual void xalanc::StylesheetExecutionContext::setFormatterListener ( FormatterListener flistener)
pure virtual

Set the current formatter listener.

Parameters
flistenerpointer to new formatter listener

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ setIndent()

virtual void xalanc::StylesheetExecutionContext::setIndent ( int  indentAmount)
pure virtual

Set the current number of spaces to indent.

Parameters
indentAmountThe number of spaces to indent. Use -1 for the default amount.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ setOmitMETATag()

virtual void xalanc::StylesheetExecutionContext::setOmitMETATag ( eOmitMETATag  value)
pure virtual

Get the value for run-time omission of URLs.

This can override the property specified by the stylesheet. The default behavior is to honor the property in the stylesheet.

Parameters
valueThe value of the enum

◆ setPrefixResolver()

virtual void xalanc::StylesheetExecutionContext::setPrefixResolver ( const PrefixResolver thePrefixResolver)
pure virtual

Change the resolver for namespaces.

Parameters
thePrefixResolvernew object for namespace resolution

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ setRootDocument()

virtual void xalanc::StylesheetExecutionContext::setRootDocument ( XalanNode theDocument)
pure virtual

Set root document for stylesheet.

Note that this does not have to be a XalanDocument – it can be any node in a document.

Parameters
theDocumentroot document

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ setSourceDocument()

virtual void xalanc::StylesheetExecutionContext::setSourceDocument ( const XalanDOMString theURI,
XalanDocument theDocument 
)
pure virtual

Associate a document with a given URI.

Parameters
theURIdocument URI
theDocumentsource document

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ setStylesheetRoot()

virtual void xalanc::StylesheetExecutionContext::setStylesheetRoot ( const StylesheetRoot theStylesheet)
pure virtual

Set root stylesheet for stylesheet.

Parameters
theStylesheetroot stylesheet

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ shouldStripSourceNode()

virtual bool xalanc::StylesheetExecutionContext::shouldStripSourceNode ( const XalanText node)
pure virtual

Determine if a text node should be stripped from the source tree, as if it weren't there.

Parameters
textNodetext node from the source tree
Returns
true if the text node should be stripped

Implements xalanc::XPathExecutionContext.

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ startDocument()

virtual void xalanc::StylesheetExecutionContext::startDocument ( )
pure virtual

Receive notification of the beginning of a document.

The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).

Exceptions
SAXException

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ startElement()

virtual void xalanc::StylesheetExecutionContext::startElement ( const XalanDOMChar *  name)
pure virtual

Receive notification of the beginning of an element.

Parameters
nameelement type name

Implemented in xalanc::StylesheetExecutionContextDefault.

◆ traceSelect()

virtual void xalanc::StylesheetExecutionContext::traceSelect ( const ElemTemplateElement theStylesheetElement,
const NodeRefListBase nl,
const XPath xpath 
)
pure virtual

Compose a diagnostic trace of the current selection.

Parameters
theStylesheetElementThe executing stylesheet element
nlThe list of selected nodes
xpathA pointer to the XPath which generated the list of nodes, if any.

Implemented in xalanc::StylesheetExecutionContextDefault.


The documentation for this class was generated from the following file: