Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XSLT/StylesheetExecutionContextDefault.hpp>
Classes | |
class | DefaultCollationCompareFunctor |
class | FormatNumberFunctor |
class | XalanNumberFormatFactory |
class | XPathCacheReturnFunctor |
Public Member Functions | |
StylesheetExecutionContextDefault (MemoryManager &theManager, XSLTEngineImpl &xsltProcessor, XPathEnvSupport &theXPathEnvSupport, DOMSupport &theDOMSupport, XObjectFactory &theXObjectFactory, XalanNode *theCurrentNode=0, const NodeRefListBase *theContextNodeList=0, const PrefixResolver *thePrefixResolver=0) | |
Construct a StylesheetExecutionContextDefault object. More... | |
StylesheetExecutionContextDefault (MemoryManager &theManager, XalanNode *theCurrentNode=0, const NodeRefListBase *theContextNodeList=0, const PrefixResolver *thePrefixResolver=0) | |
Construct a StylesheetExecutionContextDefault object. More... | |
virtual | ~StylesheetExecutionContextDefault () |
void | setXPathEnvSupport (XPathEnvSupport *theSupport) |
Set the XPathEnvSupport instance. More... | |
void | setDOMSupport (DOMSupport *theDOMSupport) |
Set the DOMSupport instance. More... | |
void | setXObjectFactory (XObjectFactory *theXObjectFactory) |
Set the XObjectFactory instance. More... | |
void | setXSLTProcessor (XSLTEngineImpl *theProcessor) |
Set the DOMSupport instance. More... | |
bool | getUsePerInstanceDocumentFactory () const |
void | setUsePerInstanceDocumentFactory (bool fValue) |
virtual bool | getQuietConflictWarnings () const |
Determine whether conflicts should be reported. More... | |
virtual bool | getCopyTextNodesOnly () const |
If this function returns true, only text nodes can be copied to the result tree. More... | |
virtual void | pushCopyTextNodesOnly (bool copyTextNodesOnly) |
Set the flag that determines if only text nodes can be copied to the result tree. More... | |
virtual bool | popCopyTextNodesOnly () |
Pop the last flag setting that determines if only text nodes can be copied to the result tree. More... | |
virtual void | pushProcessCurrentAttribute (bool processAttribute) |
Set the flag that determines if the current attribute should be executed. More... | |
virtual bool | popProcessCurrentAttribute () |
Pops the last flag setting that determines if the current attribute should be executed. More... | |
virtual void | pushSkipElementAttributes (bool skipAttributes) |
Set the flag that determines if an element's attributes should be skipped. More... | |
virtual bool | getSkipElementAttributes () const |
Get the last flag setting that determines if an element's attributes should be skipped. More... | |
virtual bool | popSkipElementAttributes () |
Pops the last flag setting that determines if an element's attributes should be skipped. More... | |
virtual void | pushExecuteIf (bool executeIf) |
Set flag that determines if the if test was true. More... | |
virtual bool | popExecuteIf () |
Pop the flag that determines if the if test was true. More... | |
virtual XalanNode * | getRootDocument () const |
Retrieve root document for stylesheet. More... | |
virtual void | setRootDocument (XalanNode *theDocument) |
Set root document for stylesheet. More... | |
virtual void | setStylesheetRoot (const StylesheetRoot *theStylesheet) |
Set root stylesheet for stylesheet. More... | |
virtual const XalanQName * | getCurrentMode () const |
Retrieve the current mode. More... | |
virtual void | pushCurrentMode (const XalanQName *theMode) |
Set the current mode. More... | |
virtual void | popCurrentMode () |
Pop the current mode. More... | |
virtual const ElemTemplate * | getCurrentTemplate () const |
Retrieve the current template. More... | |
virtual void | pushCurrentTemplate (const ElemTemplate *theTemplate) |
Set the current template. More... | |
virtual void | popCurrentTemplate () |
virtual bool | isElementPending () const |
See if there is an element pending. More... | |
virtual void | replacePendingAttribute (const XalanDOMChar *theName, const XalanDOMChar *theNewType, const XalanDOMChar *theNewValue) |
Replace the contents of a pending attribute. More... | |
virtual void | pushOutputContext (FormatterListener *flistener=0) |
virtual void | popOutputContext () |
virtual void | addResultAttribute (const XalanDOMString &aname, const XalanDOMString &value) |
Add a result attribute to the list of pending attributes. More... | |
virtual void | addResultAttribute (const XalanDOMString &aname, const XalanDOMChar *value) |
Add a result attribute to the list of pending attributes. More... | |
virtual void | copyNamespaceAttributes (const XalanNode &src) |
Add namespace attributes for a node to the list of pending attributes. More... | |
virtual const XalanDOMString * | getResultPrefixForNamespace (const XalanDOMString &theNamespace) const |
Retrieve the result prefix corresponding to a namespace. More... | |
virtual const XalanDOMString * | getResultNamespaceForPrefix (const XalanDOMString &thePrefix) const |
Retrieve the result namespace corresponding to a prefix. More... | |
virtual bool | isPendingResultPrefix (const XalanDOMString &thePrefix) |
Determine whether or not a prefix is in use on the pending element or the pending attributes. More... | |
virtual void | getUniqueNamespaceValue (XalanDOMString &theValue) const |
Generate a random namespace prefix guaranteed to be unique. More... | |
virtual FormatterListener * | getFormatterListener () const |
Get the current formatter listener. More... | |
virtual void | setFormatterListener (FormatterListener *flistener) |
Set the current formatter listener. More... | |
virtual int | getIndent () const |
Retrieve the current number of spaces to indent. More... | |
virtual void | setIndent (int indentAmount) |
Set the current number of spaces to indent. More... | |
virtual const XPath * | createMatchPattern (const XalanDOMString &str, const PrefixResolver &resolver) |
Create and initialize an xpath and return it. More... | |
virtual void | returnXPath (const XPath *xpath) |
Return the XPath created by createMatchPattern(). More... | |
virtual void | pushTopLevelVariables (const ParamVectorType &topLevelParams) |
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) |
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) |
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 XObjectPtr val, const ElemTemplateElement *element) |
Push a named variable onto the variables stack. More... | |
virtual void | pushVariable (const XalanQName &name, const ElemVariable *var, const ElemTemplateElement *element) |
Push a named variable onto the processor variable stack The variable will be evaluated when first referenced. More... | |
virtual void | pushVariable (const XalanQName &name, const ElemTemplateElement *element, const XPath &xpath, XalanNode *contextNode, const PrefixResolver &resolver) |
Execute the supplied XPath and push the result as a variable in the current context. More... | |
virtual void | pushContextMarker () |
Push a context marker onto the stack to let us know when to stop searching for a var. More... | |
virtual void | popContextMarker () |
Pop the current context from the current context stack. More... | |
virtual void | resolveTopLevelParams () |
Resolve the params that were pushed by the caller. More... | |
virtual void | clearTopLevelParams () |
Reset the vector of top level parameters. More... | |
virtual void | beginParams () |
Initiate context to accept a new set of parameters. More... | |
virtual void | endParams () |
Indicate parameter set is complete. More... | |
virtual void | pushParam (const XalanQName &qName, const XObjectPtr &theValue) |
Push a single paramter onto the latest initialized paramter set. More... | |
virtual const XObjectPtr | getParamVariable (const XalanQName &theName) |
Given a name, return a string representing the value, but don't look in the global space. More... | |
virtual void | pushElementFrame (const ElemTemplateElement *elem) |
Push a frame marker for an element. More... | |
virtual void | popElementFrame () |
Pop a frame marker for an element. More... | |
virtual int | getGlobalStackFrameIndex () const |
Get the top of the global stack frame. More... | |
virtual int | getCurrentStackFrameIndex () const |
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) |
Set the top of the stack frame from where a search for a variable or param should take place. More... | |
virtual void | popCurrentStackFrameIndex () |
Pop the last stack frame index setting. More... | |
virtual void | startDocument () |
Receive notification of the beginning of a document. More... | |
virtual void | endDocument () |
Receive notification of the end of a document. More... | |
virtual void | startElement (const XalanDOMChar *name) |
Receive notification of the beginning of an element. More... | |
virtual void | endElement (const XalanDOMChar *name) |
Receive notification of the end of an element. More... | |
virtual void | characters (const XalanDOMChar *ch, fl_size_type start, fl_size_type length) |
Receive notification of character data. More... | |
virtual void | charactersRaw (const XalanDOMChar *ch, fl_size_type start, fl_size_type length) |
Receive notification of character data. More... | |
virtual void | comment (const XalanDOMChar *data) |
Called when a Comment is to be constructed. More... | |
virtual void | processingInstruction (const XalanDOMChar *target, const XalanDOMChar *data) |
Receive notification of a processing instruction. More... | |
virtual void | flushPending () |
Flush the pending element. More... | |
virtual void | cloneToResultTree (const XalanNode &node, const Locator *locator) |
Clone a node to the result tree. More... | |
virtual void | cloneToResultTree (const XalanNode &node, XalanNode::NodeType nodeType, bool overrideStrip, bool shouldCloneAttributes, const Locator *locator) |
Clone a node to the result tree. More... | |
virtual void | beginCreateXResultTreeFrag (XalanNode *sourceNode) |
Initiate creation of a result tree fragment. More... | |
virtual const XObjectPtr | endCreateXResultTreeFrag () |
Indicate sthe completion of result tree fragment. More... | |
virtual void | beginFormatToText (XalanDOMString &theResult) |
Initiate to put execution result in string. More... | |
virtual void | endFormatToText () |
Indicates the completion of the result string. More... | |
virtual void | outputToResultTree (const XObject &xobj, const Locator *locator) |
Output an object to the result tree by doing the right conversions. More... | |
virtual void | outputResultTreeFragment (const XObject &theTree, const Locator *locator) |
Given a result tree fragment, walk the tree and output it to the result stream. More... | |
virtual const XalanDOMString & | getXSLNameSpaceURL () const |
Determine the full XSLT Namespace URI. More... | |
virtual const XalanDOMString & | getXalanXSLNameSpaceURL () const |
Special Xalan namespace for built-in extensions. More... | |
virtual bool | findOnElementRecursionStack (const ElemTemplateElement *theElement) const |
Determine if an element is on the recursion stack. More... | |
virtual void | pushOnElementRecursionStack (const ElemTemplateElement *theElement) |
Push an element onto the recursion stack. More... | |
virtual const ElemTemplateElement * | popElementRecursionStack () |
Pop an element off the recursion stack. More... | |
virtual bool | returnXResultTreeFrag (XResultTreeFrag *theXResultTreeFrag) |
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 |
Get the value for run-time escaping of URLs. More... | |
virtual void | setEscapeURLs (eEscapeURLs value) |
virtual eOmitMETATag | getOmitMETATag () const |
Get the value for run-time omission of URLs. More... | |
void | setOmitMETATag (eOmitMETATag value) |
virtual FormatterListener * | 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())) |
Create a new FormatterToXML instance. More... | |
virtual FormatterListener * | 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) |
Create a new FormatterToHTML instance. More... | |
virtual FormatterListener * | createFormatterToText (Writer &writer, const XalanDOMString &encoding) |
FormatterToText instance constructor. More... | |
virtual NodeSorter * | getNodeSorter () |
Get node sorter instance. More... | |
virtual XalanNumberFormatAutoPtr | createXalanNumberFormat () |
Create a new XalanNumberFormat instance. More... | |
virtual tl_size_type | getTraceListeners () const |
Determine the number of trace listeners. More... | |
virtual void | fireGenerateEvent (const GenerateEvent &ge) |
Fire a generate event. More... | |
virtual void | fireTraceEvent (const TracerEvent &te) |
Fire a trace event. More... | |
virtual void | fireSelectEvent (const SelectionEvent &se) |
Fire a selection event. More... | |
virtual bool | getTraceSelects () const |
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) |
Compose a diagnostic trace of the current selection. More... | |
virtual int | collationCompare (const XalanDOMString &theLHS, const XalanDOMString &theRHS, XalanCollationServices::eCaseOrder theCaseOrder=XalanCollationServices::eDefault) |
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) |
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) |
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) |
Compare two strings using the collation of the current locale. More... | |
const CollationCompareFunctor * | installCollationCompareFunctor (CollationCompareFunctor *theFunctor) |
CollationCompareFunctor * | uninstallCollationCompareFunctor () |
virtual void | formatNumber (double number, const XalanDOMString &pattern, XalanDOMString &theResult, const XalanNode *context=0, const Locator *locator=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) |
Formats a number according to the specified pattern. More... | |
const FormatNumberFunctor * | installFormatNumberFunctor (FormatNumberFunctor *formatNumberFunctor) |
FormatNumberFunctor * | uninstallFormatNumberFunctor () |
virtual PrintWriter * | createPrintWriter (XalanOutputStream *theTextOutputStream) |
Create a PrintWriter for the provided stream. More... | |
virtual PrintWriter * | createPrintWriter (const XalanDOMString &theFileName, const XalanDOMString &theEncoding) |
Create a PrintWriter. More... | |
virtual PrintWriter * | createPrintWriter (StreamType &theStream) |
Create a PrintWriter using the provided ostream instance. More... | |
virtual PrintWriter * | createPrintWriter (FILE *theStream) |
Create a PrintWriter using the provided FILE instance. More... | |
virtual CountersTable & | getCountersTable () |
Get the counters table, which is a table of cached results that is used by ElemNumber. More... | |
virtual void | characters (const XalanNode &node) |
Send character data from a node to the result tree. More... | |
virtual void | characters (const XObjectPtr &xobject) |
Send character data from an XObject to the result tree. More... | |
virtual void | charactersRaw (const XalanNode &node) |
Send raw character data from a node to the result tree. More... | |
virtual void | charactersRaw (const XObjectPtr &xobject) |
Send raw character data from an XObject to the result tree. More... | |
virtual void | reset () |
Reset the instance. More... | |
virtual XalanNode * | getCurrentNode () const |
Retrieve the node currently being executed. More... | |
virtual void | pushCurrentNode (XalanNode *theCurrentNode) |
Change the node currently being executed. More... | |
virtual void | popCurrentNode () |
Reset the node currently being executed. More... | |
virtual bool | isNodeAfter (const XalanNode &node1, const XalanNode &node2) const |
Determine if a node is after another node, in document order. More... | |
virtual void | pushContextNodeList (const NodeRefListBase &theList) |
Push the node list for current context. More... | |
virtual void | popContextNodeList () |
Pop the node list for current context. More... | |
virtual const NodeRefListBase & | getContextNodeList () const |
Get the node list for current context. More... | |
virtual size_type | getContextNodeListLength () const |
virtual size_type | getContextNodeListPosition (const XalanNode &contextNode) const |
virtual bool | elementAvailable (const XalanQName &theQName) const |
Determine if an external element is available. More... | |
virtual bool | elementAvailable (const XalanDOMString &theName, const Locator *locator) const |
Determine if an external element is available by resolving a string to a QName. More... | |
virtual bool | functionAvailable (const XalanQName &theQName) const |
Determine if a function is available. More... | |
virtual bool | functionAvailable (const XalanDOMString &theName, const Locator *locator) const |
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) |
Handle an extension function. More... | |
virtual XalanDocument * | parseXML (MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) const |
Provides support for XML parsing service. More... | |
virtual MutableNodeRefList * | borrowMutableNodeRefList () |
Borrow a cached MutableNodeRefList instance. More... | |
virtual bool | returnMutableNodeRefList (MutableNodeRefList *theList) |
Return a previously borrowed MutableNodeRefList instance. More... | |
virtual MutableNodeRefList * | createMutableNodeRefList (MemoryManager &theManager) const |
Create a MutableNodeRefList with the appropriate context. More... | |
virtual void | createUseAttributeSetIndexesOnStack () |
virtual UseAttributeSetIndexes & | getUseAttributeSetIndexes () |
virtual void | popUseAttributeSetIndexesFromStack () |
virtual void | pushInvoker (const ElemTemplateElement *invoker) |
Push the element that will invoke non children elements (i.e templates, attribute-sets) More... | |
virtual void | popInvoker () |
Pop the element that invoked non children elements. More... | |
virtual const ElemTemplateElement * | getInvoker () const |
Get the lastest element that has invoked a non-child element. More... | |
virtual MutableNodeRefList & | createAndPushMutableNodeRefList () |
virtual void | releaseAndPopMutableNodeRefList () |
virtual void | pushXObjectPtr (const XObjectPtr &xobjectPtr) |
virtual void | popXObjectPtr () |
virtual void | createAndPushNodesToTransformList (const NodeRefListBase *nodeList) |
virtual XalanNode * | getNextNodeToTransform () |
virtual void | popNodesToTransformList () |
virtual XalanDOMString & | getAndPushCachedString () |
Get a string that is cached on a stack. More... | |
virtual XalanDOMString & | getLastCachedString () |
Gets the last string that was cached on the stack. More... | |
virtual XalanDOMString & | getAndPopCachedString () |
Gets the last string to be cached on the stack and pops it from the stack. More... | |
virtual XalanDOMString & | getCachedString () |
Get a cached string for temporary use. More... | |
virtual bool | releaseCachedString (XalanDOMString &theString) |
Return a cached string. More... | |
virtual void | getNodeSetByKey (XalanNode *context, const XalanQName &qname, const XalanDOMString &ref, const Locator *locator, MutableNodeRefList &nodelist) |
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) |
Given a valid element key, return the corresponding node list. More... | |
virtual const XObjectPtr | getVariable (const XalanQName &name, const Locator *locator=0) |
Given a name, locate a variable in the current context, and return a pointer to the object. More... | |
virtual const PrefixResolver * | getPrefixResolver () const |
Retrieve the resolver for namespaces. More... | |
virtual void | setPrefixResolver (const PrefixResolver *thePrefixResolver) |
Change the resolver for namespaces. More... | |
virtual const XalanDOMString * | getNamespaceForPrefix (const XalanDOMString &prefix) const |
Retrieve the URI corresponding to a namespace prefix. More... | |
virtual const XalanDOMString & | findURIFromDoc (const XalanDocument *owner) const |
Given a DOM Document, tell what URI was used to parse it. More... | |
virtual const XalanDOMString & | getUnparsedEntityURI (const XalanDOMString &theName, const XalanDocument &theDocument) const |
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) |
Determine if a text node should be stripped from the source tree, as if it weren't there. More... | |
virtual XalanDocument * | getSourceDocument (const XalanDOMString &theURI) const |
Get the document associated with the given URI. More... | |
virtual void | setSourceDocument (const XalanDOMString &theURI, XalanDocument *theDocument) |
Associate a document with a given URI. More... | |
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
Function that is called when a problem event occurs. More... | |
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
Function that is called when a problem event occurs. More... | |
XalanSourceTreeDocument * | getSourceTreeFactory (MemoryManager &theManager) const |
Get a XalanSourceTreeDocument, primarily for creating result tree fragments. More... | |
Public Member Functions inherited from xalanc::StylesheetExecutionContext | |
StylesheetExecutionContext (MemoryManager &theMemoryManager, XObjectFactory *theXObjectFactory=0) | |
virtual | ~StylesheetExecutionContext () |
virtual void | setEscapeURLs (eEscapeURLs value)=0 |
Set the value for run-time escaping of URLs. More... | |
virtual void | setOmitMETATag (eOmitMETATag value)=0 |
Get the value for run-time omission of URLs. More... | |
Public Member Functions inherited from xalanc::XPathExecutionContext | |
XPathExecutionContext (MemoryManager &theMemoryManager, XObjectFactory *theXObjectFactory=0) | |
virtual | ~XPathExecutionContext () |
XObjectFactory & | getXObjectFactory () 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 () |
Static Public Member Functions | |
static StylesheetExecutionContextDefault * | create (MemoryManager &theManager, XalanNode *theCurrentNode=0, const NodeRefListBase *theContextNodeList=0, const PrefixResolver *thePrefixResolver=0) |
static XalanNumberFormatFactory & | getDefaultXalanNumberFormatFactory () |
static XalanNumberFormatFactory * | installXalanNumberFormatFactory (XalanNumberFormatFactory *theFactory) |
Static function to install a new XalanNumberFormatFactory. More... | |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from xalanc::XPathExecutionContext | |
XObjectFactory * | m_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] |
Definition at line 88 of file StylesheetExecutionContextDefault.hpp.
typedef std::clock_t xalanc::StylesheetExecutionContextDefault::ClockType |
Definition at line 92 of file StylesheetExecutionContextDefault.hpp.
typedef XalanCollationServices::CollationCompareFunctor xalanc::StylesheetExecutionContextDefault::CollationCompareFunctor |
Definition at line 670 of file StylesheetExecutionContextDefault.hpp.
typedef XalanVector<const ElemTemplate*> xalanc::StylesheetExecutionContextDefault::CurrentTemplateStackType |
Definition at line 101 of file StylesheetExecutionContextDefault.hpp.
typedef XalanVector<const ElemTemplateElement*> xalanc::StylesheetExecutionContextDefault::ElementTemplateElementStackType |
Definition at line 98 of file StylesheetExecutionContextDefault.hpp.
typedef XalanVector<FormatterListener*> xalanc::StylesheetExecutionContextDefault::FormatterListenerVectorType |
Definition at line 94 of file StylesheetExecutionContextDefault.hpp.
typedef Stylesheet::KeyTablesTableType xalanc::StylesheetExecutionContextDefault::KeyTablesTableType |
Definition at line 103 of file StylesheetExecutionContextDefault.hpp.
typedef XalanVector<XalanOutputStream*> xalanc::StylesheetExecutionContextDefault::OutputStreamVectorType |
Definition at line 96 of file StylesheetExecutionContextDefault.hpp.
Definition at line 104 of file StylesheetExecutionContextDefault.hpp.
Definition at line 95 of file StylesheetExecutionContextDefault.hpp.
typedef std::pair<const XPath*, ClockType> xalanc::StylesheetExecutionContextDefault::XPathCacheEntry |
Definition at line 99 of file StylesheetExecutionContextDefault.hpp.
typedef XalanMap<XalanDOMString, XPathCacheEntry> xalanc::StylesheetExecutionContextDefault::XPathCacheMapType |
Definition at line 100 of file StylesheetExecutionContextDefault.hpp.
xalanc::StylesheetExecutionContextDefault::StylesheetExecutionContextDefault | ( | MemoryManager & | theManager, |
XSLTEngineImpl & | xsltProcessor, | ||
XPathEnvSupport & | theXPathEnvSupport, | ||
DOMSupport & | theDOMSupport, | ||
XObjectFactory & | theXObjectFactory, | ||
XalanNode * | theCurrentNode = 0 , |
||
const NodeRefListBase * | theContextNodeList = 0 , |
||
const PrefixResolver * | thePrefixResolver = 0 |
||
) |
Construct a StylesheetExecutionContextDefault object.
theXPathEnvSupport | XPath environment support class instance |
theDOMSupport | DOMSupport class instance |
theXobjectFactory | factory class instance for XObjects |
theCurrentNode | current node in the source tree |
theContextNodeList | node list for current context |
thePrefixResolver | pointer to prefix resolver to use |
|
explicit |
Construct a StylesheetExecutionContextDefault object.
theXPathEnvSupport | XPath environment support class instance |
theDOMSupport | DOMSupport class instance |
theXobjectFactory | factory class instance for XObjects |
theCurrentNode | current node in the source tree |
theContextNodeList | node list for current context |
thePrefixResolver | pointer to prefix resolver to use |
|
virtual |
|
virtual |
Add a result attribute to the list of pending attributes.
aname | name of attribute |
value | value of attribute |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Add a result attribute to the list of pending attributes.
aname | name of attribute |
value | value of attribute |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Initiate creation of a result tree fragment.
sourceNode | the source Node |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Initiate to put execution result in string.
theResult | the string to contain the result |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Initiate context to accept a new set of parameters.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Borrow a cached MutableNodeRefList instance.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Receive notification of character data.
ch | pointer to characters from the XML document |
start | start position in the array |
length | number of characters to read from the array |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Send character data from a node to the result tree.
node | The node to send. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Send character data from an XObject to the result tree.
node | The xobject to send. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Receive notification of character data.
If available, when the disable-output-escaping attribute is used, output raw text without escaping.
ch | pointer to characters from the XML document |
start | start position in the array |
length | number of characters to read from the array |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Send raw character data from a node to the result tree.
node | The node to send. |
length | number of characters to read from the array |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Send raw character data from an XObject to the result tree.
node | The xobject to send. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Reset the vector of top level parameters.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Clone a node to the result tree.
node | node to clone |
locator | The Locator, if any |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Clone a node to the result tree.
node | node to clone |
nodeType | the type of the node |
overrideStrip | false if white space stripping should be done |
shouldCloneAttributes | true if attributes should be cloned |
locator | The Locator, if any |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Compare two strings using the collation of the current locale.
theLHS | a string to compare |
theRHS | a string to compare |
theLocal | a string that specifies the locale |
theCaseOrder | the case order for the comparison |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Compare two strings using the collation of the current locale.
theLHS | a string to compare |
theRHS | a string to compare |
theCaseOrder | the case order for the comparison |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Compare two strings using the collation of the supplied locale.
theLHS | a string to compare |
theRHS | a string to compare |
theLocal | a string that specifies the locale |
theCaseOrder | the case order for the comparison |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Compare two strings using the collation of the current locale.
theLHS | a string to compare |
theRHS | a string to compare |
theCaseOrder | the case order for the comparison |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Called when a Comment is to be constructed.
data | pointer to comment data |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Add namespace attributes for a node to the list of pending attributes.
src | source node |
Implements xalanc::StylesheetExecutionContext.
|
static |
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a new FormatterToHTML instance.
The execution context owns the instance and will delete it when reset.
writer | character output stream to use |
encoding | character encoding for the writer |
mediaType | media type (MIME content type) of the data |
doctypeSystem | system identifier to be used in the document type declaration |
doctypePublic | public identifier to be used in the document type declaration |
doIndent | true if output is to be indented |
indent | number of spaces to indent at each nesting level |
escapeURLs | Whether or not to escape URLs according to the recommendation. The default is true. |
omitMetaTag | Whether or not to output a META TAG according to the recommendation. The default is false. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
FormatterToText instance constructor.
writer | writer for output |
encoding | character encoding for the writer |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a new FormatterToXML instance.
The execution context owns the instance and will delete it when reset.
writer | character output stream to use |
version | version of the output method |
doIndent | true if output is to be indented |
indent | number of spaces to indent at each nesting level |
encoding | character encoding for the writer |
mediaType | media type (MIME content type) of the data |
doctypeSystem | system identifier to be used in the document type declaration |
doctypePublic | public identifier to be used in the document type declaration |
xmlDecl | true if the XSLT processor should output an XML declaration |
standalone | true if the XSLT processor should output a standalone document declaration |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create and initialize an xpath and return it.
This is to be used to create an XPath that is only used during execution.
str | string expression for XPath evaluation |
resolver | resolver for namespace resolution |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a MutableNodeRefList with the appropriate context.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a PrintWriter.
Create an appropriate output stream using the provided file name and encoding.
theFileName | The file name for the output stream |
theEncoding | The encoding for the output stream |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a PrintWriter using the provided FILE instance.
theStream | The output stream for the PrintWriter. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a PrintWriter using the provided ostream instance.
theStream | The output stream for the PrintWriter. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a PrintWriter for the provided stream.
theTextOutputStream | The output stream for the PrintWriter. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Execute the supplied XPath and and create a variable in the current context.
str | string expression for XPath evaluation |
contextNode | current node in the source tree |
resolver | resolver for namespace resolution |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Create a new XalanNumberFormat instance.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine if an external element is available by resolving a string to a QName.
theName | The name of the element |
locator | A Locator instance for error reporting |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine if an external element is available.
theQName | The QName of the element |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Indicate sthe completion of result tree fragment.
Implements xalanc::StylesheetExecutionContext.
|
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.
SAXException |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Receive notification of the end of an element.
name | element type name |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Indicates the completion of the result string.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Indicate parameter set is complete.
Implements xalanc::StylesheetExecutionContext.
|
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 Locator instance for error reporting |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine if an element is on the recursion stack.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Given a DOM Document, tell what URI was used to parse it.
Needed for relative resolution.
owner | source document |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Fire a generate event.
ge | generate event to fire |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Fire a selection event.
se | selection event to fire |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
|
virtual |
Flush the pending element.
Implements xalanc::StylesheetExecutionContext.
|
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 |
Implements xalanc::StylesheetExecutionContext.
|
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 |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine if a function is available.
theName | The name of the function |
locator | A Locator instance for error reporting |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine if a function is available.
theQName | The QName of the function |
Implements xalanc::StylesheetExecutionContext.
|
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
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get a string that is cached on a stack.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get a cached string for temporary use.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the node list for current context.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
If this function returns true, only text nodes can be copied to the result tree.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the counters table, which is a table of cached results that is used by ElemNumber.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
|
virtual |
Retrieve the node currently being executed.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the top of the stack frame from where a search for a variable or param should take place.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Retrieve the current template.
Implements xalanc::StylesheetExecutionContext.
|
inlinestatic |
Definition at line 607 of file StylesheetExecutionContextDefault.hpp.
|
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.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the current formatter listener.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the top of the global stack frame.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Retrieve the current number of spaces to indent.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the lastest element that has invoked a non-child element.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Gets the last string that was cached on the stack.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Retrieve the URI corresponding to a namespace prefix.
prefix | prefix for a namespace |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Given a valid element key, return the corresponding node list.
context | context node |
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 Locator to use for error reporting. Can be 0. |
nodelist | A node list to contain the nodes found |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Given a valid element key, return the corresponding node list.
context | context node |
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 |
locator | The Locator to use for error reporting. Can be 0. |
nodelist | A node list to contain the nodes found |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get node sorter instance.
Implements xalanc::StylesheetExecutionContext.
|
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.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Given a name, return a string representing the value, but don't look in the global space.
theName | name of variable |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Retrieve the resolver for namespaces.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine whether conflicts should be reported.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Retrieve the result namespace corresponding to a prefix.
thePrefix | prefix for namespace |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Retrieve the result prefix corresponding to a namespace.
theNamespace | namespace for prefix |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Retrieve root document for stylesheet.
Note that this does not have to be a XalanDocument – it can be any node in a document.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the last flag setting that determines if an element's attributes should be skipped.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Get the document associated with the given URI.
theURI | document URI |
Implements xalanc::StylesheetExecutionContext.
XalanSourceTreeDocument* xalanc::StylesheetExecutionContextDefault::getSourceTreeFactory | ( | MemoryManager & | theManager | ) | const |
Get a XalanSourceTreeDocument, primarily for creating result tree fragments.
|
virtual |
Determine the number of trace listeners.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
If this is set to true, simple traces of template calls are made.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Generate a random namespace prefix guaranteed to be unique.
theValue | A string for returning the new prefix |
Implements xalanc::StylesheetExecutionContext.
|
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 |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
inline |
Definition at line 202 of file StylesheetExecutionContextDefault.hpp.
|
virtual |
Given a name, locate a variable in the current context, and return a pointer to the object.
theName | name of variable |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Special Xalan namespace for built-in extensions.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine the full XSLT Namespace URI.
Implements xalanc::StylesheetExecutionContext.
const CollationCompareFunctor* xalanc::StylesheetExecutionContextDefault::installCollationCompareFunctor | ( | CollationCompareFunctor * | theFunctor | ) |
const FormatNumberFunctor* xalanc::StylesheetExecutionContextDefault::installFormatNumberFunctor | ( | FormatNumberFunctor * | formatNumberFunctor | ) |
|
static |
Static function to install a new XalanNumberFormatFactory.
The caller owns the XalanNumberFormatFactory instance.
a | pointer to the new factory instance to use. |
|
virtual |
See if there is an element pending.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine if a node is after another node, in document order.
node1 | The first node |
node2 | The second node |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Determine whether or not a prefix is in use on the pending element or the pending attributes.
thePrefix | prefix for namespace |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Given a result tree fragment, walk the tree and output it to the result stream.
theTree | result tree fragment |
locator | The Locator, if any |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Output an object to the result tree by doing the right conversions.
This is public for access by extensions.
obj | the XObject to output |
locator | The Locator, if any |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Provides support for XML parsing service.
theManager | The MemoryManager instance to use. |
urlString | location of the XML |
base | base location for URI |
theErrorHandler | An optional ErrorHandler instance for error reporting. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop the current context from the current context stack.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop the node list for current context.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop the last flag setting that determines if only text nodes can be copied to the result tree.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop the current mode.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Reset the node currently being executed.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop the last stack frame index setting.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop a frame marker for an element.
elem | the element |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop an element off the recursion stack.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop the flag that determines if the if test was true.
executeIf | the value of the flag |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pop the element that invoked non children elements.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pops the last flag setting that determines if the current attribute should be executed.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Pops the last flag setting that determines if an element's attributes should be skipped.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Function that is called when a problem event occurs.
source | Either eXMLParser, eXSLProcessor, or eXPATH. |
classification | Either eMessage, eWarning, or eError. |
locator | The current Locator instance for the stylesheet. Maybe be a null pointer. |
sourceNode | The current source node, if any. |
msg | The error message. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Function that is called when a problem event occurs.
This version assumes location information is already formatted into the message.
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH |
classification | either eMESSAGE, eERROR or eWARNING |
msg | string message explaining the problem. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Receive notification of a processing instruction.
target | processing instruction target |
data | processing instruction data, or null if none was supplied |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push a context marker onto the stack to let us know when to stop searching for a var.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push the node list for current context.
theList | new node list |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set the flag that determines if only text nodes can be copied to the result tree.
copyTextNodesOnly | The value of the flag |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set the current mode.
theMode | QName for mode |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Change the node currently being executed.
theCurrentNode | new current node |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set the top of the stack frame from where a search for a variable or param should take place.
currentStackFrameIndex | new value of index |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set the current template.
theTemplate | The current template instance |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push a frame marker for an element.
elem | the element |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set flag that determines if the if test was true.
executeIf | the value of the flag |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push the element that will invoke non children elements (i.e templates, attribute-sets)
invokers | the element that will invoke non children elements |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push an element onto the recursion stack.
theElement | pointer to element to push |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push a single paramter onto the latest initialized paramter set.
qName | the name of the parameter |
theValue | the value of the parameter |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set the flag that determines if the current attribute should be executed.
processAttribute | the value of the flag |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set the flag that determines if an element's attributes should be skipped.
skipAttributes | the value of the flag |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set a list of top level variables in the specified execution context stylesheet.
topLevelParams | list of top level parameters |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Execute an XPath using the provided expression, and push the result as a variable in the context of the supplied element.
name | name of variable |
element | element marker for variable |
str | string expression for XPath evaluation |
contextNode | current node in the source tree |
resolver | resolver for namespace resolution |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Execute the supplied XPath and push the result as a variable in the current context.
name | name of variable |
element | element marker for variable |
str | string expression for XPath evaluation |
contextNode | current node in the source tree |
resolver | resolver for namespace resolution |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push a named variable onto the processor variable stack The variable will be evaluated when first referenced.
name | name of variable |
var | pointer to ElemVariable instance |
element | element marker for variable |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Push a named variable onto the variables stack.
The variable has already been evaluated.
name | name of variable |
val | pointer to XObject value |
element | element marker for variable |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Return a cached string.
theString | The string to release. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Replace the contents of a pending attribute.
theName | name of attribute |
theNewType | type of attribute |
theNewValue | new value of attribute |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Reset the instance.
This must be called before another execution is attempted.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Resolve the params that were pushed by the caller.
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Return a previously borrowed MutableNodeRefList instance.
theList | A pointer the to previously borrowed instance. |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Return the XPath created by createMatchPattern().
xpath | The XPath to return. |
Implements xalanc::StylesheetExecutionContext.
|
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.
theXResultTreeFrag | The instance that is being returned. |
Implements xalanc::StylesheetExecutionContext.
|
inline |
Set the DOMSupport instance.
theDOMSupport | a reference to the instance to use. |
Definition at line 171 of file StylesheetExecutionContextDefault.hpp.
|
virtual |
|
virtual |
Set the current formatter listener.
flistener | pointer to new formatter listener |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set the current number of spaces to indent.
indentAmount | The number of spaces to indent. Use -1 for the default amount. |
Implements xalanc::StylesheetExecutionContext.
void xalanc::StylesheetExecutionContextDefault::setOmitMETATag | ( | eOmitMETATag | value | ) |
|
virtual |
Change the resolver for namespaces.
thePrefixResolver | new object for namespace resolution |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set root document for stylesheet.
Note that this does not have to be a XalanDocument – it can be any node in a document.
theDocument | root document |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Associate a document with a given URI.
theURI | document URI |
theDocument | source document |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Set root stylesheet for stylesheet.
theStylesheet | root stylesheet |
Implements xalanc::StylesheetExecutionContext.
|
inline |
Definition at line 208 of file StylesheetExecutionContextDefault.hpp.
|
inline |
Set the XObjectFactory instance.
theFactory | a reference to the instance to use. |
Definition at line 182 of file StylesheetExecutionContextDefault.hpp.
|
inline |
Set the XPathEnvSupport instance.
theSupport | a reference to the instance to use. |
Definition at line 160 of file StylesheetExecutionContextDefault.hpp.
|
inline |
Set the DOMSupport instance.
theDOMSupport | a reference to the instance to use. |
Definition at line 196 of file StylesheetExecutionContextDefault.hpp.
|
virtual |
Determine if a text node should be stripped from the source tree, as if it weren't there.
textNode | text node from the source tree |
Implements xalanc::StylesheetExecutionContext.
|
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).
SAXException |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Receive notification of the beginning of an element.
name | element type name |
Implements xalanc::StylesheetExecutionContext.
|
virtual |
Compose a diagnostic trace of the current selection.
theStylesheetElement | The executing stylesheet element |
nl | The list of selected nodes |
xpath | A pointer to the XPath which generated the list of nodes, if any. |
Implements xalanc::StylesheetExecutionContext.
CollationCompareFunctor* xalanc::StylesheetExecutionContextDefault::uninstallCollationCompareFunctor | ( | ) |
FormatNumberFunctor* xalanc::StylesheetExecutionContextDefault::uninstallFormatNumberFunctor | ( | ) |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:33 for Xalan-C++ API Reference by 1.8.17