Xalan-C++ API Documentation
Go to the documentation of this file.
18 #if !defined(STYLESHEETEXECUTIONCONTEXT_HEADER_GUARD_1357924680)
19 #define STYLESHEETEXECUTIONCONTEXT_HEADER_GUARD_1357924680
44 #if defined(XALAN_AUTO_PTR_REQUIRES_DEFINITION)
65 XALAN_CPP_NAMESPACE_BEGIN
69 #if defined(XALAN_STRICT_ANSI_HEADERS)
116 #if defined(XALAN_NO_STD_NAMESPACE)
124 MemoryManager& theMemoryManager,
177 m_executionContext(executionContext)
184 m_executionContext.popCopyTextNodesOnly();
200 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
322 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
327 class PushAndPopCurrentTemplate
331 PushAndPopCurrentTemplate(
334 m_executionContext(executionContext)
339 ~PushAndPopCurrentTemplate()
341 m_executionContext.popCurrentTemplate();
366 const XalanDOMChar* theName,
367 const XalanDOMChar* theNewType,
368 const XalanDOMChar* theNewValue) = 0;
405 m_executionContext(theExecutionContext)
407 m_executionContext.pushOutputContext(theNewListener);
412 m_executionContext.popOutputContext();
440 const XalanDOMChar* value) = 0;
534 const XPath* xpath = 0) :
544 m_context.returnXPath(m_xpath);
557 const XPath*
const temp = m_xpath;
569 m_context.returnXPath(m_xpath);
579 const XPath* m_xpath;
608 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
662 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
721 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
726 class PushAndPopContextMarker
731 m_executionContext(executionContext)
736 PushAndPopContextMarker(
738 int& currentStackFrameIndex) :
739 m_executionContext(executionContext)
746 ~PushAndPopContextMarker()
748 m_executionContext.popContextMarker();
752 getExecutionContext()
const
754 return m_executionContext;
775 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
776 class ResolveAndClearTopLevelParams
781 m_executionContext(executionContext)
783 m_executionContext.resolveTopLevelParams();
786 ~ResolveAndClearTopLevelParams()
788 m_executionContext.clearTopLevelParams();
854 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
859 class PushAndPopElementFrame
863 PushAndPopElementFrame(
866 m_executionContext(executionContext)
871 ~PushAndPopElementFrame()
873 m_executionContext.popElementFrame();
924 m_executionContext(executionContext),
925 m_savedIndex(executionContext.getCurrentStackFrameIndex())
932 m_executionContext.popCurrentStackFrameIndex();
939 const int m_savedIndex;
942 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
946 class ParamsPushPop :
public PushAndPopContextMarker
953 PushAndPopContextMarker(executionContext)
955 doPush(xslCallTemplateElement);
961 int& savedStackFrameIndex) :
962 PushAndPopContextMarker(executionContext, savedStackFrameIndex)
965 xslCallTemplateElement,
966 savedStackFrameIndex);
978 int stackFrameIndex);
1036 const XalanDOMChar* ch,
1051 const XalanDOMChar* ch,
1071 const XalanDOMChar* target,
1072 const XalanDOMChar* data) = 0;
1089 const Locator* locator) = 0;
1105 bool shouldCloneAttributes,
1106 const Locator* locator) = 0;
1108 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
1148 createXResultTreeFrag(
1163 const Locator* locator) = 0;
1175 const Locator* locator) = 0;
1233 m_executionContext(executionContext)
1235 m_executionContext.pushOnElementRecursionStack(element);
1240 m_executionContext.popElementRecursionStack();
1264 eDefaultXMLIndentAmount = 0,
1265 eDefaultHTMLIndentAmount = 0
1316 virtual eOmitMETATag
1354 bool doIndent =
false,
1355 int indent = eDefaultXMLIndentAmount,
1360 bool xmlDecl =
true,
1387 bool doIndent =
true,
1388 int indent = eDefaultHTMLIndentAmount,
1389 bool escapeURLs =
true,
1390 bool omitMetaTag =
false) = 0;
1403 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
1404 class BorrowReturnFormatterToText
1408 BorrowReturnFormatterToText(
1411 bool normalizeLinefeed =
true,
1412 bool handleIgnorableWhitespace =
true);
1414 ~BorrowReturnFormatterToText()
1416 assert(m_formatter != 0);
1418 m_executionContext.returnFormatterToText(m_formatter);
1424 assert(m_formatter != 0);
1426 return *m_formatter;
1432 assert(m_formatter != 0);
1451 friend class BorrowReturnFormatterToText;
1454 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
1468 borrowNodeSorter() = 0;
1479 class BorrowReturnNodeSorter
1484 m_executionContext(executionContext),
1485 m_sorter(executionContext.borrowNodeSorter())
1487 assert(m_sorter != 0);
1490 ~BorrowReturnNodeSorter()
1492 assert(m_sorter != 0);
1494 m_executionContext.returnNodeSorter(m_sorter);
1500 assert(m_sorter != 0);
1508 assert(m_sorter != 0);
1538 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
1546 attributeSetNameIndex(0),
1547 matchingAttributeSetIndex(0) {}
1638 const XPath* xpath) = 0;
1683 const XalanDOMChar* theLHS,
1684 const XalanDOMChar* theRHS,
1699 const XalanDOMChar* theLHS,
1700 const XalanDOMChar* theRHS,
1701 const XalanDOMChar* theLocale,
1843 const Locator* locator)
const = 0;
1866 const Locator* locator)
const = 0;
1874 const Locator* locator) = 0;
1878 MemoryManager& theManager,
1881 ErrorHandler* theErrorHandler = 0)
const = 0;
1892 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
1952 const Locator* locator,
1960 const Locator* locator,
1966 const Locator* locator = 0) = 0;
2002 const Locator* locator = 0) = 0;
2011 const Locator* locator = 0) = 0;
2020 const Locator* locator,
2030 #if defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
2038 borrowFormatterToText() = 0;
2053 XALAN_CPP_NAMESPACE_END
2057 #endif // STYLESHEETEXECUTIONCONTEXT_HEADER_GUARD_1357924680
virtual void setRootDocument(XalanNode *theDocument)=0
Set root document for stylesheet.
virtual XalanDOMString & getAndPushCachedString()=0
Get a string that is cached on a stack.
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.
virtual void resolveTopLevelParams()=0
Resolve the params that were pushed by the caller.
virtual void cloneToResultTree(const XalanNode &node, XalanNode::NodeType nodeType, bool overrideStrip, bool shouldCloneAttributes, const Locator *locator)=0
Clone a node to the result tree.
virtual eOmitMETATag getOmitMETATag() const =0
Get the value for run-time omission of URLs.
virtual void returnXPath(const XPath *xpath)=0
Return the XPath created by createMatchPattern().
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.
virtual CountersTable & getCountersTable()=0
Get the counters table, which is a table of cached results that is used by ElemNumber.
virtual bool getSkipElementAttributes() const =0
Get the last flag setting that determines if an element's attributes should be skipped.
virtual void pushElementFrame(const ElemTemplateElement *elem)=0
Push a frame marker for an element.
virtual bool releaseCachedString(XalanDOMString &theString)=0
Return a cached string.
virtual void beginFormatToText(XalanDOMString &theResult)=0
Initiate to put execution result in string.
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.
virtual void popContextNodeList()=0
Pop the node list for current context.
XalanVector< TopLevelArg > ParamVectorType
NodeRefListBase::size_type size_type
virtual FormatterListener * getFormatterListener() const =0
Get the current formatter listener.
virtual bool getQuietConflictWarnings() const =0
Determine whether conflicts should be reported.
virtual void pushCurrentMode(const XalanQName *theMode)=0
Set the current mode.
virtual void pushParam(const XalanQName &qName, const XObjectPtr &theValue)=0
Push a single paramter onto the latest initialized paramter set.
virtual void comment(const XalanDOMChar *data)=0
Called when a Comment is to be constructed.
virtual void getUniqueNamespaceValue(XalanDOMString &theValue) const =0
Generate a random namespace prefix guaranteed to be unique.
This class defines an interface for classes that resolve namespace prefixes to their URIs.
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.
virtual void beginParams()=0
Initiate context to accept a new set of parameters.
virtual PrintWriter * createPrintWriter(XalanOutputStream *theTextOutputStream)=0
Create a PrintWriter for the provided stream.
virtual void pushExecuteIf(bool executeIf)=0
Set flag that determines if the if test was true.
virtual bool popExecuteIf()=0
Pop the flag that determines if the if test was true.
Class to hold XPath return types.
XalanDOMString::size_type length(const XalanDOMString &theString)
Get the length of a XalanDOMString.
virtual void setPrefixResolver(const PrefixResolver *thePrefixResolver)=0
Change the resolver for namespaces.
virtual const ElemTemplateElement * popElementRecursionStack()=0
Pop an element off the recursion stack.
virtual void charactersRaw(const XObjectPtr &xobject)=0
Send raw character data from an XObject to the result tree.
virtual UseAttributeSetIndexes & getUseAttributeSetIndexes()=0
<meta name="usage" content="internal"> This is a table of counters, keyed by ElemNumber objects,...
virtual void copyNamespaceAttributes(const XalanNode &src)=0
Add namespace attributes for a node to the list of pending attributes.
This class can sort vectors of nodes according to a select pattern.
This is the parent class of events generated for tracing the progress of the XSL processor.
virtual void traceSelect(const ElemTemplateElement &theStylesheetElement, const NodeRefListBase &nl, const XPath *xpath)=0
Compose a diagnostic trace of the current selection.
virtual PrintWriter * createPrintWriter(const XalanDOMString &theFileName, const XalanDOMString &theEncoding)=0
Create a PrintWriter.
virtual void createUseAttributeSetIndexesOnStack()=0
virtual void characters(const XalanNode &node)=0
Send character data from a node to the result tree.
virtual void outputToResultTree(const XObject &xobj, const Locator *locator)=0
Output an object to the result tree by doing the right conversions.
XalanMemMgrAutoPtr< XalanNumberFormat > XalanNumberFormatAutoPtr
FormatterListener::size_type fl_size_type
virtual void popCurrentMode()=0
Pop the current mode.
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.
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 t...
virtual void setStylesheetRoot(const StylesheetRoot *theStylesheet)=0
Set root stylesheet for stylesheet.
This is the class for events generated by the XSL processor after it generates a new node in the resu...
Class for keeping track of elements pushed on the element recursion stack.
virtual int getIndent() const =0
Retrieve the current number of spaces to indent.
#define XALAN_XSLT_EXPORT
virtual void popCurrentNode()=0
Reset the node currently being executed.
virtual MutableNodeRefList * createMutableNodeRefList(MemoryManager &theManager) const =0
Create a MutableNodeRefList with the appropriate context.
SetAndRestoreCopyTextNodesOnly(StylesheetExecutionContext &executionContext, bool fValue)
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.
virtual int getCurrentStackFrameIndex() const =0
Get the top of the stack frame from where a search for a variable or param should take place.
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.
virtual void pushXObjectPtr(const XObjectPtr &xobjectPtr)=0
virtual void endDocument()=0
Receive notification of the end of a document.
virtual void fireSelectEvent(const SelectionEvent &se)=0
Fire a selection event.
virtual void addResultAttribute(const XalanDOMString &aname, const XalanDOMString &value)=0
Add a result attribute to the list of pending attributes.
virtual void flushPending()=0
Flush the pending element.
virtual size_type getContextNodeListPosition(const XalanNode &contextNode) const =0
virtual const XalanDOMString & getXSLNameSpaceURL() const =0
Determine the full XSLT Namespace URI.
eOmitMETATag
Enums to determine whether or not run-time omission of the META tag has been set.
virtual void addResultAttribute(const XalanDOMString &aname, const XalanDOMChar *value)=0
Add a result attribute to the list of pending attributes.
SetAndRestoreCurrentStackFrameIndex(StylesheetExecutionContext &executionContext, int newIndex)
virtual const XalanDOMString * getResultNamespaceForPrefix(const XalanDOMString &thePrefix) const =0
Retrieve the result namespace corresponding to a prefix.
virtual void startDocument()=0
Receive notification of the beginning of a document.
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.
const XPath * get() const
ElementRecursionStackPusher(StylesheetExecutionContext &executionContext, const ElemTemplateElement *element)
Construct an instance of the recursion stack pusher.
virtual void createAndPushNodesToTransformList(const NodeRefListBase *nodeList)=0
virtual void startElement(const XalanDOMChar *name)=0
Receive notification of the beginning of an element.
virtual bool popProcessCurrentAttribute()=0
Pops the last flag setting that determines if the current attribute should be executed.
virtual const XPath * createMatchPattern(const XalanDOMString &str, const PrefixResolver &resolver)=0
Create and initialize an xpath and return it.
virtual bool findOnElementRecursionStack(const ElemTemplateElement *theElement) const =0
Determine if an element is on the recursion stack.
size_type matchingAttributeSetIndex
virtual void pushOnElementRecursionStack(const ElemTemplateElement *theElement)=0
Push an element onto the recursion stack.
virtual bool isPendingResultPrefix(const XalanDOMString &thePrefix)=0
Determine whether or not a prefix is in use on the pending element or the pending attributes.
virtual const XalanQName * getCurrentMode() const =0
Retrieve the current mode.
virtual const PrefixResolver * getPrefixResolver() const =0
Retrieve the resolver for namespaces.
virtual bool popSkipElementAttributes()=0
Pops the last flag setting that determines if an element's attributes should be skipped.
virtual bool getCopyTextNodesOnly() const =0
If this function returns true, only text nodes can be copied to the result tree.
~SetAndRestoreCurrentStackFrameIndex()
This class represents the base stylesheet or an "import" stylesheet.
virtual void popElementFrame()=0
Pop a frame marker for an element.
virtual const ElemTemplateElement * getInvoker() const =0
Get the lastest element that has invoked a non-child element.
virtual void releaseAndPopMutableNodeRefList()=0
virtual bool returnXResultTreeFrag(XResultTreeFrag *theXResultTreeFrag)=0
This is a hook that XResultTreeFrag instances (which are reference counted), can notify the owning St...
virtual void fireTraceEvent(const TracerEvent &te)=0
Fire a trace event.
virtual void setFormatterListener(FormatterListener *flistener)=0
Set the current formatter listener.
virtual XalanDocument * getSourceDocument(const XalanDOMString &theURI) const =0
Get the document associated with the given URI.
XPathGuard(StylesheetExecutionContext &context, const XPath *xpath=0)
virtual void processingInstruction(const XalanDOMChar *target, const XalanDOMChar *data)=0
Receive notification of a processing instruction.
virtual void setEscapeURLs(eEscapeURLs value)=0
Set the value for run-time escaping of URLs.
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.
virtual PrintWriter * createPrintWriter(StreamType &theStream)=0
Create a PrintWriter using the provided ostream instance.
virtual bool popCopyTextNodesOnly()=0
Pop the last flag setting that determines if only text nodes can be copied to the result tree.
virtual NodeSorter * getNodeSorter()=0
Get node sorter instance.
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const =0
Retrieve the URI corresponding to a namespace prefix.
virtual const XalanDOMString & getXalanXSLNameSpaceURL() const =0
Special Xalan namespace for built-in extensions.
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)=0
Create a new FormatterToHTML instance.
virtual XalanNode * getCurrentNode() const =0
Retrieve the node currently being executed.
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.
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 ref...
This class handles the creation of XObjects and manages their lifetime.
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.
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.
virtual XalanDOMString & getLastCachedString()=0
Gets the last string that was cached on the stack.
virtual void replacePendingAttribute(const XalanDOMChar *theName, const XalanDOMChar *theNewType, const XalanDOMChar *theNewValue)=0
Replace the contents of a pending attribute.
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.
virtual void popUseAttributeSetIndexesFromStack()=0
virtual void pushProcessCurrentAttribute(bool processAttribute)=0
Set the flag that determines if the current attribute should be executed.
virtual bool elementAvailable(const XalanQName &theQName) const =0
Determine if an external element is available.
~ElementRecursionStackPusher()
virtual XalanNode * getRootDocument() const =0
Retrieve root document for stylesheet.
virtual PrintWriter * createPrintWriter(FILE *theStream)=0
Create a PrintWriter using the provided FILE instance.
virtual void charactersRaw(const XalanNode &node)=0
Send raw character data from a node to the result tree.
void reset(const XPath *xpath)
virtual bool isElementPending() const =0
See if there is an element pending.
size_type attributeSetNameIndex
virtual void fireGenerateEvent(const GenerateEvent &ge)=0
Fire a generate event.
virtual void setOmitMETATag(eOmitMETATag value)=0
Get the value for run-time omission of URLs.
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.
virtual MutableNodeRefList * borrowMutableNodeRefList()=0
Borrow a cached MutableNodeRefList instance.
static MemoryManager & getDummyMemMgr()
virtual void pushSkipElementAttributes(bool skipAttributes)=0
Set the flag that determines if an element's attributes should be skipped.
virtual size_type getContextNodeListLength() const =0
Class to hold XObjectPtr return types.
virtual void pushContextNodeList(const NodeRefListBase &theList)=0
Push the node list for current context.
Local implementation of NodeRefList.
virtual void characters(const XalanDOMChar *ch, fl_size_type start, fl_size_type length)=0
Receive notification of character data.
virtual void pushOutputContext(FormatterListener *flistener=0)=0
virtual void pushTopLevelVariables(const ParamVectorType &topLevelParams)=0
Set a list of top level variables in the specified execution context stylesheet.
eEscapeURLs
Enums to determine whether or not run-time escaping of URLs has been set.
virtual void cloneToResultTree(const XalanNode &node, const Locator *locator)=0
Clone a node to the result tree.
virtual void endParams()=0
Indicate parameter set is complete.
virtual const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName, const XalanDocument &theDocument) const =0
The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in t...
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)=0
Function that is called when a problem event occurs.
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()))=0
Create a new FormatterToXML instance.
virtual void popCurrentStackFrameIndex()=0
Pop the last stack frame index setting.
This class takes SAX events (in addition to some extra events that SAX doesn't handle yet) and produc...
virtual MutableNodeRefList & createAndPushMutableNodeRefList()=0
virtual void characters(const XObjectPtr &xobject)=0
Send character data from an XObject to the result tree.
StylesheetExecutionContext(MemoryManager &theMemoryManager, XObjectFactory *theXObjectFactory=0)
Class to represent a qualified name.
virtual void clearTopLevelParams()=0
Reset the vector of top level parameters.
virtual void beginCreateXResultTreeFrag(XalanNode *sourceNode)=0
Initiate creation of a result tree fragment.
virtual ~StylesheetExecutionContext()
This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all styl...
virtual bool isNodeAfter(const XalanNode &node1, const XalanNode &node2) const =0
Determine if a node is after another node, in document order.
virtual void popXObjectPtr()=0
virtual XalanDocument * parseXML(MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) const =0
Provides support for XML parsing service.
virtual XalanDOMString & getAndPopCachedString()=0
Gets the last string to be cached on the stack and pops it from the stack.
virtual bool functionAvailable(const XalanDOMString &theName, const Locator *locator) const =0
Determine if a function is available.
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.
virtual bool functionAvailable(const XalanQName &theQName) const =0
Determine if a function is available.
virtual XalanNode * getNextNodeToTransform()=0
virtual void pushInvoker(const ElemTemplateElement *invoker)=0
Push the element that will invoke non children elements (i.e templates, attribute-sets)
OutputContextPushPop(StylesheetExecutionContext &theExecutionContext, FormatterListener *theNewListener=0)
Construct an object to push and pop the current output context.
virtual const XObjectPtr endCreateXResultTreeFrag()=0
Indicate sthe completion of result tree fragment.
virtual void setIndent(int indentAmount)=0
Set the current number of spaces to indent.
virtual void reset()=0
Reset the instance.
virtual void popCurrentTemplate()=0
virtual bool returnMutableNodeRefList(MutableNodeRefList *theList)=0
Return a previously borrowed MutableNodeRefList instance.
virtual int getGlobalStackFrameIndex() const =0
Get the top of the global stack frame.
virtual void charactersRaw(const XalanDOMChar *ch, fl_size_type start, fl_size_type length)=0
Receive notification of character data.
virtual const XObjectPtr extFunction(const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator)=0
Handle an extension function.
Local implementation of MutableNodeRefList.
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.
virtual const XalanDOMString & findURIFromDoc(const XalanDocument *owner) const =0
Given a DOM Document, tell what URI was used to parse it.
virtual void pushCurrentTemplate(const ElemTemplate *theTemplate)=0
Set the current template.
virtual void pushVariable(const XalanQName &name, const XObjectPtr val, const ElemTemplateElement *element)=0
Push a named variable onto the variables stack.
virtual void popOutputContext()=0
virtual void popInvoker()=0
Pop the element that invoked non children elements.
virtual eEscapeURLs getEscapeURLs() const =0
Get the value for run-time escaping of URLs.
virtual void popContextMarker()=0
Pop the current context from the current context stack.
virtual void pushContextMarker()=0
Push a context marker onto the stack to let us know when to stop searching for a var.
virtual const ElemTemplate * getCurrentTemplate() const =0
Retrieve the current template.
virtual void setSourceDocument(const XalanDOMString &theURI, XalanDocument *theDocument)=0
Associate a document with a given URI.
virtual void endFormatToText()=0
Indicates the completion of the result string.
virtual const NodeRefListBase & getContextNodeList() const =0
Get the node list for current context.
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.
virtual void endElement(const XalanDOMChar *name)=0
Receive notification of the end of an element.
virtual FormatterListener * createFormatterToText(Writer &writer, const XalanDOMString &encoding)=0
FormatterToText instance constructor.
virtual void pushCopyTextNodesOnly(bool copyTextNodesOnly)=0
Set the flag that determines if only text nodes can be copied to the result tree.
~SetAndRestoreCopyTextNodesOnly()
virtual void pushCurrentNode(XalanNode *theCurrentNode)=0
Change the node currently being executed.
virtual void popNodesToTransformList()=0
virtual tl_size_type getTraceListeners() const =0
Determine the number of trace listeners.
virtual bool getTraceSelects() const =0
If this is set to true, simple traces of template calls are made.
virtual const XalanDOMString * getResultPrefixForNamespace(const XalanDOMString &theNamespace) const =0
Retrieve the result prefix corresponding to a namespace.
virtual XalanNumberFormatAutoPtr createXalanNumberFormat()=0
Create a new XalanNumberFormat instance.
virtual XalanDOMString & getCachedString()=0
Get a cached string for temporary use.
Interpreting class diagrams
Doxygen and
GraphViz are
used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.
|
|