Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Classes | Public Types | Public Member Functions | Static Public Member Functions
StylesheetExecutionContextDefault Class Reference
Inheritance diagram for StylesheetExecutionContextDefault:
StylesheetExecutionContext XPathExecutionContext ExecutionContext

List of all members.

Classes

Public Types

Public Member Functions

Static Public Member Functions


Member Typedef Documentation

typedef XALAN_STD_QUALIFIER pair<const XPath*, ClockType> StylesheetExecutionContextDefault::XPathCacheEntry

Constructor & Destructor Documentation

StylesheetExecutionContextDefault::StylesheetExecutionContextDefault ( MemoryManagerType theManager,
XSLTEngineImpl xsltProcessor,
XPathEnvSupport theXPathEnvSupport,
DOMSupport theDOMSupport,
XObjectFactory theXObjectFactory,
XalanNode theCurrentNode = 0,
const NodeRefListBase theContextNodeList = 0,
const PrefixResolver thePrefixResolver = 0 
)

Construct a StylesheetExecutionContextDefault object.

Parameters:
theXPathEnvSupportXPath environment support class instance
theDOMSupportDOMSupport class instance
theXobjectFactoryfactory class instance for XObjects
theCurrentNodecurrent node in the source tree
theContextNodeListnode list for current context
thePrefixResolverpointer to prefix resolver to use
StylesheetExecutionContextDefault::StylesheetExecutionContextDefault ( MemoryManagerType theManager,
XalanNode theCurrentNode = 0,
const NodeRefListBase theContextNodeList = 0,
const PrefixResolver thePrefixResolver = 0 
) [explicit]

Construct a StylesheetExecutionContextDefault object.

Parameters:
theXPathEnvSupportXPath environment support class instance
theDOMSupportDOMSupport class instance
theXobjectFactoryfactory class instance for XObjects
theCurrentNodecurrent node in the source tree
theContextNodeListnode list for current context
thePrefixResolverpointer to prefix resolver to use
virtual StylesheetExecutionContextDefault::~StylesheetExecutionContextDefault ( ) [virtual]

Member Function Documentation

virtual void StylesheetExecutionContextDefault::addResultAttribute ( const XalanDOMString aname,
const XalanDOMString value 
) [virtual]

Add a result attribute to the list of pending attributes.

Parameters:
anamename of attribute
valuevalue of attribute

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::addResultAttribute ( const XalanDOMString aname,
const XalanDOMChar *  value 
) [virtual]

Add a result attribute to the list of pending attributes.

Parameters:
anamename of attribute
valuevalue of attribute

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::beginCreateXResultTreeFrag ( XalanNode sourceNode) [virtual]

Initiate creation of a result tree fragment.

Parameters:
sourceNodethe source Node

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::beginFormatToText ( XalanDOMString theResult) [virtual]

Initiate to put execution result in string.

Parameters:
theResultthe string to contain the result

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::beginParams ( ) [virtual]

Initiate context to accept a new set of parameters.

Implements StylesheetExecutionContext.

virtual MutableNodeRefList* StylesheetExecutionContextDefault::borrowMutableNodeRefList ( ) [virtual]

Borrow a cached MutableNodeRefList instance.

Returns:
A pointer to the instance.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::characters ( const XalanDOMChar *  ch,
XalanDOMString::size_type  start,
XalanDOMString::size_type  length 
) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::characters ( const XalanNode node) [virtual]

Send character data from a node to the result tree.

Parameters:
nodeThe node to send.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::characters ( const XObjectPtr xobject) [virtual]

Send character data from an XObject to the result tree.

Parameters:
nodeThe xobject to send.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::charactersRaw ( const XalanDOMChar *  ch,
XalanDOMString::size_type  start,
XalanDOMString::size_type  length 
) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::charactersRaw ( const XalanNode node) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::charactersRaw ( const XObjectPtr xobject) [virtual]

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

Parameters:
nodeThe xobject to send.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::clearTopLevelParams ( ) [virtual]

Reset the vector of top level parameters.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::cloneToResultTree ( const XalanNode node,
const LocatorType locator 
) [virtual]

Clone a node to the result tree.

Parameters:
nodenode to clone
locatorThe Locator, if any

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::cloneToResultTree ( const XalanNode node,
XalanNode::NodeType  nodeType,
bool  overrideStrip,
bool  shouldCloneAttributes,
const LocatorType locator 
) [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

Implements StylesheetExecutionContext.

virtual int StylesheetExecutionContextDefault::collationCompare ( const XalanDOMString theLHS,
const XalanDOMString theRHS,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
) [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

Implements StylesheetExecutionContext.

virtual int StylesheetExecutionContextDefault::collationCompare ( const XalanDOMString theLHS,
const XalanDOMString theRHS,
const XalanDOMString theLocale,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
) [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

Implements StylesheetExecutionContext.

virtual int StylesheetExecutionContextDefault::collationCompare ( const XalanDOMChar *  theLHS,
const XalanDOMChar *  theRHS,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
) [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

Implements StylesheetExecutionContext.

virtual int StylesheetExecutionContextDefault::collationCompare ( const XalanDOMChar *  theLHS,
const XalanDOMChar *  theRHS,
const XalanDOMChar *  theLocale,
XalanCollationServices::eCaseOrder  theCaseOrder = XalanCollationServices::eDefault 
) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::comment ( const XalanDOMChar *  data) [virtual]

Called when a Comment is to be constructed.

Parameters:
datapointer to comment data

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::copyNamespaceAttributes ( const XalanNode src) [virtual]

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

Parameters:
srcsource node

Implements StylesheetExecutionContext.

static StylesheetExecutionContextDefault* StylesheetExecutionContextDefault::create ( MemoryManagerType theManager,
XalanNode theCurrentNode = 0,
const NodeRefListBase theContextNodeList = 0,
const PrefixResolver thePrefixResolver = 0 
) [static]
virtual MutableNodeRefList& StylesheetExecutionContextDefault::createAndPushMutableNodeRefList ( ) [virtual]
virtual void StylesheetExecutionContextDefault::createAndPushNodesToTransformList ( const NodeRefListBase nodeList) [virtual]
virtual FormatterListener* StylesheetExecutionContextDefault::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 
) [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.

Implements StylesheetExecutionContext.

virtual FormatterListener* StylesheetExecutionContextDefault::createFormatterToText ( Writer writer,
const XalanDOMString encoding 
) [virtual]

FormatterToText instance constructor.

Parameters:
writerwriter for output
encodingcharacter encoding for the writer

Implements StylesheetExecutionContext.

virtual FormatterListener* StylesheetExecutionContextDefault::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()) 
) [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.

Implements StylesheetExecutionContext.

virtual const XPath* StylesheetExecutionContextDefault::createMatchPattern ( const XalanDOMString str,
const PrefixResolver resolver 
) [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

Implements StylesheetExecutionContext.

virtual MutableNodeRefList* StylesheetExecutionContextDefault::createMutableNodeRefList ( MemoryManagerType theManager) const [virtual]

Create a MutableNodeRefList with the appropriate context.

Returns:
pointer to node list created

Implements StylesheetExecutionContext.

virtual PrintWriter* StylesheetExecutionContextDefault::createPrintWriter ( XalanOutputStream theTextOutputStream) [virtual]

Create a PrintWriter for the provided stream.

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

Implements StylesheetExecutionContext.

virtual PrintWriter* StylesheetExecutionContextDefault::createPrintWriter ( const XalanDOMString theFileName,
const XalanDOMString theEncoding 
) [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.

Implements StylesheetExecutionContext.

virtual PrintWriter* StylesheetExecutionContextDefault::createPrintWriter ( StreamType theStream) [virtual]

Create a PrintWriter using the provided ostream instance.

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

Implements StylesheetExecutionContext.

virtual PrintWriter* StylesheetExecutionContextDefault::createPrintWriter ( FILE *  theStream) [virtual]

Create a PrintWriter using the provided FILE instance.

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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::createUseAttributeSetIndexesOnStack ( ) [virtual]
virtual const XObjectPtr StylesheetExecutionContextDefault::createVariable ( const XPath xpath,
XalanNode contextNode,
const PrefixResolver resolver 
) [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

Implements StylesheetExecutionContext.

virtual XalanNumberFormatAutoPtr StylesheetExecutionContextDefault::createXalanNumberFormat ( ) [virtual]

Create a new XalanNumberFormat instance.

Returns:
an XalanNumberFormatAutoPtr that owns a new XalanNumberFormat instance.

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::elementAvailable ( const XalanQName theQName) const [virtual]

Determine if an external element is available.

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

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::elementAvailable ( const XalanDOMString theName,
const LocatorType locator 
) const [virtual]

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

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

Implements StylesheetExecutionContext.

virtual const XObjectPtr StylesheetExecutionContextDefault::endCreateXResultTreeFrag ( ) [virtual]

Indicate sthe completion of result tree fragment.

Returns:
a pointer to the result tree fragment

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::endDocument ( ) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::endElement ( const XalanDOMChar *  name) [virtual]

Receive notification of the end of an element.

Parameters:
nameelement type name

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::endFormatToText ( ) [virtual]

Indicates the completion of the result string.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::endParams ( ) [virtual]

Indicate parameter set is complete.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::error ( const XalanDOMString msg,
const ElemTemplateElement styleNode,
const XalanNode sourceNode = 0 
) const [virtual]

Report an error and throw an exception.

Parameters:
msgThe text of the message.
styleNodeThe stylesheet node were the error occurred.
sourceNodeThe source node where the error occurred. May be 0.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::error ( const XalanDOMString msg,
const XalanNode sourceNode,
const LocatorType locator 
) const [virtual]

Report an error and throw an exception.

Parameters:
msgThe text of the message.
sourceNodeThe source node where the error occurred. May be 0.
locatorA Locator to determine where the error occurred. May be 0.

Implements StylesheetExecutionContext.

virtual const XObjectPtr StylesheetExecutionContextDefault::extFunction ( const XalanDOMString theNamespace,
const XalanDOMString functionName,
XalanNode context,
const XObjectArgVectorType argVec,
const LocatorType locator 
) [virtual]

Handle an extension function.

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

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::findOnElementRecursionStack ( const ElemTemplateElement theElement) const [virtual]

Determine if an element is on the recursion stack.

Returns:
true if element on stack

Implements StylesheetExecutionContext.

virtual const XalanDOMString& StylesheetExecutionContextDefault::findURIFromDoc ( const XalanDocument owner) const [virtual]

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

Needed for relative resolution.

Parameters:
ownersource document
Returns:
document URI

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::fireGenerateEvent ( const GenerateEvent ge) [virtual]

Fire a generate event.

Parameters:
gegenerate event to fire

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::fireSelectEvent ( const SelectionEvent se) [virtual]

Fire a selection event.

Parameters:
seselection event to fire

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::fireTraceEvent ( const TracerEvent te) [virtual]

Fire a trace event.

Parameters:
tetrace event to fire

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::flushPending ( ) [virtual]

Flush the pending element.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::formatNumber ( double  number,
const XalanDOMString pattern,
XalanDOMString theResult,
const XalanNode context = 0,
const LocatorType locator = 0 
) [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 StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::formatNumber ( double  number,
const XalanDOMString pattern,
const XalanDOMString dfsName,
XalanDOMString theResult,
const XalanNode context = 0,
const LocatorType locator = 0 
) [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 StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::functionAvailable ( const XalanQName theQName) const [virtual]

Determine if a function is available.

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

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::functionAvailable ( const XalanDOMString theName,
const LocatorType locator 
) const [virtual]

Determine if a function is available.

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

Implements StylesheetExecutionContext.

virtual XalanDOMString& StylesheetExecutionContextDefault::getAndPopCachedString ( ) [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

Implements StylesheetExecutionContext.

virtual XalanDOMString& StylesheetExecutionContextDefault::getAndPushCachedString ( ) [virtual]

Get a string that is cached on a stack.

Returns:
a cached string

Implements StylesheetExecutionContext.

virtual XalanDOMString& StylesheetExecutionContextDefault::getCachedString ( ) [virtual]

Get a cached string for temporary use.

Returns:
A reference to the string

Implements StylesheetExecutionContext.

virtual const NodeRefListBase& StylesheetExecutionContextDefault::getContextNodeList ( ) const [virtual]

Get the node list for current context.

Returns:
node list

Implements StylesheetExecutionContext.

virtual size_type StylesheetExecutionContextDefault::getContextNodeListLength ( ) const [virtual]
virtual size_type StylesheetExecutionContextDefault::getContextNodeListPosition ( const XalanNode contextNode) const [virtual]
virtual bool StylesheetExecutionContextDefault::getCopyTextNodesOnly ( ) const [virtual]

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

Returns:
true or false

Implements StylesheetExecutionContext.

virtual CountersTable& StylesheetExecutionContextDefault::getCountersTable ( ) [virtual]

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

Returns:
A reference to the counters table.

Implements StylesheetExecutionContext.

virtual const XalanQName* StylesheetExecutionContextDefault::getCurrentMode ( ) const [virtual]

Retrieve the current mode.

Returns:
QName for mode

Implements StylesheetExecutionContext.

virtual XalanNode* StylesheetExecutionContextDefault::getCurrentNode ( ) const [virtual]

Retrieve the node currently being executed.

Returns:
current node

Implements StylesheetExecutionContext.

virtual int StylesheetExecutionContextDefault::getCurrentStackFrameIndex ( ) const [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

Implements StylesheetExecutionContext.

virtual const ElemTemplate* StylesheetExecutionContextDefault::getCurrentTemplate ( ) const [virtual]

Retrieve the current template.

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

Implements StylesheetExecutionContext.

static XalanNumberFormatFactory& StylesheetExecutionContextDefault::getDefaultXalanNumberFormatFactory ( ) [static]
virtual eEscapeURLs StylesheetExecutionContextDefault::getEscapeURLs ( ) const [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

Implements StylesheetExecutionContext.

virtual FormatterListener* StylesheetExecutionContextDefault::getFormatterListener ( ) const [virtual]

Get the current formatter listener.

Returns:
pointer to formatter listener

Implements StylesheetExecutionContext.

virtual int StylesheetExecutionContextDefault::getGlobalStackFrameIndex ( ) const [virtual]

Get the top of the global stack frame.

Returns:
current value of index

Implements StylesheetExecutionContext.

virtual int StylesheetExecutionContextDefault::getIndent ( ) const [virtual]

Retrieve the current number of spaces to indent.

Returns:
number of spaces

Implements StylesheetExecutionContext.

virtual const ElemTemplateElement* StylesheetExecutionContextDefault::getInvoker ( ) const [virtual]

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

Implements StylesheetExecutionContext.

virtual XalanDOMString& StylesheetExecutionContextDefault::getLastCachedString ( ) [virtual]

Gets the last string that was cached on the stack.

Returns:
the last string to be cached

Implements StylesheetExecutionContext.

virtual const XalanDOMString* StylesheetExecutionContextDefault::getNamespaceForPrefix ( const XalanDOMString prefix) const [virtual]

Retrieve the URI corresponding to a namespace prefix.

Parameters:
prefixprefix for a namespace
Returns:
URI corresponding to namespace

Implements StylesheetExecutionContext.

virtual XalanNode* StylesheetExecutionContextDefault::getNextNodeToTransform ( ) [virtual]
virtual void StylesheetExecutionContextDefault::getNodeSetByKey ( XalanDocument doc,
const XalanDOMString name,
const XalanDOMString ref,
const LocatorType locator,
MutableNodeRefList nodelist 
) [virtual]

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

Parameters:
docsource document
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 LocatorType to use for error reporting. Can be 0.
nodelistA node list to contain the nodes found

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::getNodeSetByKey ( XalanDocument doc,
const XalanQName qname,
const XalanDOMString ref,
MutableNodeRefList nodelist 
) [virtual]

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

Parameters:
docsource document
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
nodelistA node list to contain the nodes found

Implements StylesheetExecutionContext.

virtual NodeSorter* StylesheetExecutionContextDefault::getNodeSorter ( ) [virtual]

Get node sorter instance.

Implements StylesheetExecutionContext.

virtual eOmitMETATag StylesheetExecutionContextDefault::getOmitMETATag ( ) const [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

Implements StylesheetExecutionContext.

virtual const XObjectPtr StylesheetExecutionContextDefault::getParamVariable ( const XalanQName theName) [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.

Implements StylesheetExecutionContext.

virtual const PrefixResolver* StylesheetExecutionContextDefault::getPrefixResolver ( ) const [virtual]

Retrieve the resolver for namespaces.

Returns:
object for namespace resolution

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::getQuietConflictWarnings ( ) const [virtual]

Determine whether conflicts should be reported.

Returns:
true if conflicts should not be warned

Implements StylesheetExecutionContext.

virtual const XalanDOMString* StylesheetExecutionContextDefault::getResultNamespaceForPrefix ( const XalanDOMString thePrefix) const [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.

Implements StylesheetExecutionContext.

virtual const XalanDOMString* StylesheetExecutionContextDefault::getResultPrefixForNamespace ( const XalanDOMString theNamespace) const [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.

Implements StylesheetExecutionContext.

virtual XalanNode* StylesheetExecutionContextDefault::getRootDocument ( ) const [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

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::getSkipElementAttributes ( ) const [virtual]

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

Returns:
the value of the flag

Implements StylesheetExecutionContext.

virtual XalanDocument* StylesheetExecutionContextDefault::getSourceDocument ( const XalanDOMString theURI) const [virtual]

Get the document associated with the given URI.

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

Implements StylesheetExecutionContext.

XalanSourceTreeDocument* StylesheetExecutionContextDefault::getSourceTreeFactory ( MemoryManagerType theManager) const

Get a XalanSourceTreeDocument, primarily for creating result tree fragments.

virtual tl_size_type StylesheetExecutionContextDefault::getTraceListeners ( ) const [virtual]

Determine the number of trace listeners.

Returns:
number of listeners

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::getTraceSelects ( ) const [virtual]

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

Returns:
true if traces made

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::getUniqueNamespaceValue ( XalanDOMString theValue) const [virtual]

Generate a random namespace prefix guaranteed to be unique.

Parameters:
theValueA string for returning the new prefix

Implements StylesheetExecutionContext.

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

virtual UseAttributeSetIndexes& StylesheetExecutionContextDefault::getUseAttributeSetIndexes ( ) [virtual]
bool StylesheetExecutionContextDefault::getUsePerInstanceDocumentFactory ( ) const
virtual const XObjectPtr StylesheetExecutionContextDefault::getVariable ( const XalanQName name,
const LocatorType locator = 0 
) [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 StylesheetExecutionContext.

virtual const XalanDOMString& StylesheetExecutionContextDefault::getXalanXSLNameSpaceURL ( ) const [virtual]

Special Xalan namespace for built-in extensions.

Returns:
Xalan namespace for extensions

Implements StylesheetExecutionContext.

virtual const XalanDOMString& StylesheetExecutionContextDefault::getXSLNameSpaceURL ( ) const [virtual]

Determine the full XSLT Namespace URI.

Returns:
Xalan namespace URI

Implements StylesheetExecutionContext.

const CollationCompareFunctor* StylesheetExecutionContextDefault::installCollationCompareFunctor ( CollationCompareFunctor theFunctor)
const FormatNumberFunctor* StylesheetExecutionContextDefault::installFormatNumberFunctor ( FormatNumberFunctor formatNumberFunctor)
static XalanNumberFormatFactory* StylesheetExecutionContextDefault::installXalanNumberFormatFactory ( XalanNumberFormatFactory theFactory) [static]

Static function to install a new XalanNumberFormatFactory.

The caller owns the XalanNumberFormatFactory instance.

Parameters:
apointer to the new factory instance to use.
Returns:
a pointer to the old factory instance.
virtual bool StylesheetExecutionContextDefault::isElementPending ( ) const [virtual]

See if there is an element pending.

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::isNodeAfter ( const XalanNode node1,
const XalanNode node2 
) const [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 StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::isPendingResultPrefix ( const XalanDOMString thePrefix) [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.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::message ( const XalanDOMString msg,
const XalanNode sourceNode,
const LocatorType locator 
) const [virtual]

Output a message.

Parameters:
msgThe text of the message.
sourceNodeThe source node where the message occurred. May be 0.
locatorA Locator to determine where the message occurred. May be 0.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::message ( const XalanDOMString msg,
const ElemTemplateElement styleNode,
const XalanNode sourceNode = 0 
) const [virtual]

Report a message.

Parameters:
msgThe text of the message.
styleNodeThe stylesheet node were the message occurred.
sourceNodeThe source node where the message occurred. May be 0.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::outputResultTreeFragment ( const XObject theTree,
const LocatorType locator 
) [virtual]

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

Parameters:
theTreeresult tree fragment
locatorThe Locator, if any

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::outputToResultTree ( const XObject xobj,
const LocatorType locator 
) [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

Implements StylesheetExecutionContext.

virtual XalanDocument* StylesheetExecutionContextDefault::parseXML ( MemoryManagerType theManager,
const XalanDOMString urlString,
const XalanDOMString base 
) const [virtual]

Provides support for XML parsing service.

Parameters:
urlStringlocation of the XML
basebase location for URI
Returns:
parsed document

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popContextMarker ( ) [virtual]

Pop the current context from the current context stack.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popContextNodeList ( ) [virtual]

Pop the node list for current context.

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::popCopyTextNodesOnly ( ) [virtual]

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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popCurrentMode ( ) [virtual]

Pop the current mode.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popCurrentNode ( ) [virtual]

Reset the node currently being executed.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popCurrentStackFrameIndex ( ) [virtual]

Pop the last stack frame index setting.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popCurrentTemplate ( ) [virtual]
virtual void StylesheetExecutionContextDefault::popElementFrame ( ) [virtual]

Pop a frame marker for an element.

Parameters:
elemthe element

Implements StylesheetExecutionContext.

virtual const ElemTemplateElement* StylesheetExecutionContextDefault::popElementRecursionStack ( ) [virtual]

Pop an element off the recursion stack.

Returns:
pointer to element popped

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::popExecuteIf ( ) [virtual]

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

Parameters:
executeIfthe value of the flag

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popInvoker ( ) [virtual]

Pop the element that invoked non children elements.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popNodesToTransformList ( ) [virtual]
virtual void StylesheetExecutionContextDefault::popOutputContext ( ) [virtual]
virtual bool StylesheetExecutionContextDefault::popProcessCurrentAttribute ( ) [virtual]

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

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::popSkipElementAttributes ( ) [virtual]

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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::popUseAttributeSetIndexesFromStack ( ) [virtual]
virtual void StylesheetExecutionContextDefault::popXObjectPtr ( ) [virtual]
virtual void StylesheetExecutionContextDefault::processingInstruction ( const XalanDOMChar *  target,
const XalanDOMChar *  data 
) [virtual]

Receive notification of a processing instruction.

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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushContextMarker ( ) [virtual]

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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushContextNodeList ( const NodeRefListBase theList) [virtual]

Push the node list for current context.

Parameters:
theListnew node list

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushCopyTextNodesOnly ( bool  copyTextNodesOnly) [virtual]

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

Parameters:
copyTextNodesOnlyThe value of the flag

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushCurrentMode ( const XalanQName theMode) [virtual]

Set the current mode.

Parameters:
theModeQName for mode

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushCurrentNode ( XalanNode theCurrentNode) [virtual]

Change the node currently being executed.

Parameters:
theCurrentNodenew current node

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushCurrentStackFrameIndex ( int  currentStackFrameIndex = -1) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushCurrentTemplate ( const ElemTemplate theTemplate) [virtual]

Set the current template.

Parameters:
theTemplateThe current template instance

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushElementFrame ( const ElemTemplateElement elem) [virtual]

Push a frame marker for an element.

Parameters:
elemthe element

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushExecuteIf ( bool  executeIf) [virtual]

Set flag that determines if the if test was true.

Parameters:
executeIfthe value of the flag

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushInvoker ( const ElemTemplateElement invoker) [virtual]

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

Parameters:
invokersthe element that will invoke non children elements

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushOnElementRecursionStack ( const ElemTemplateElement theElement) [virtual]

Push an element onto the recursion stack.

Parameters:
theElementpointer to element to push

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushOutputContext ( FormatterListener flistener = 0) [virtual]
virtual void StylesheetExecutionContextDefault::pushParam ( const XalanQName qName,
const XObjectPtr theValue 
) [virtual]

Push a single paramter onto the latest initialized paramter set.

Parameters:
qNamethe name of the parameter
theValuethe value of the parameter

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushProcessCurrentAttribute ( bool  processAttribute) [virtual]

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

Parameters:
processAttributethe value of the flag

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushSkipElementAttributes ( bool  skipAttributes) [virtual]

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

Parameters:
skipAttributesthe value of the flag

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushTopLevelVariables ( const ParamVectorType topLevelParams) [virtual]

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

Parameters:
topLevelParamslist of top level parameters

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushVariable ( const XalanQName name,
const XObjectPtr  val,
const ElemTemplateElement element 
) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushVariable ( const XalanQName name,
const ElemVariable var,
const ElemTemplateElement element 
) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushVariable ( const XalanQName name,
const ElemTemplateElement element,
const XPath xpath,
XalanNode contextNode,
const PrefixResolver resolver 
) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushVariable ( const XalanQName name,
const ElemTemplateElement element,
const XalanDOMString str,
XalanNode contextNode,
const PrefixResolver resolver 
) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::pushXObjectPtr ( const XObjectPtr xobjectPtr) [virtual]
virtual void StylesheetExecutionContextDefault::releaseAndPopMutableNodeRefList ( ) [virtual]
virtual bool StylesheetExecutionContextDefault::releaseCachedString ( XalanDOMString theString) [virtual]

Return a cached string.

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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::replacePendingAttribute ( const XalanDOMChar *  theName,
const XalanDOMChar *  theNewType,
const XalanDOMChar *  theNewValue 
) [virtual]

Replace the contents of a pending attribute.

Parameters:
theNamename of attribute
theNewTypetype of attribute
theNewValuenew value of attribute

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::reset ( ) [virtual]

Reset the instance.

This must be called before another execution is attempted.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::resolveTopLevelParams ( ) [virtual]

Resolve the params that were pushed by the caller.

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::returnMutableNodeRefList ( MutableNodeRefList theList) [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 StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::returnXPath ( const XPath xpath) [virtual]

Return the XPath created by createMatchPattern().

Parameters:
xpathThe XPath to return.

Implements StylesheetExecutionContext.

virtual bool StylesheetExecutionContextDefault::returnXResultTreeFrag ( XResultTreeFrag theXResultTreeFrag) [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.

Implements StylesheetExecutionContext.

void StylesheetExecutionContextDefault::setDOMSupport ( DOMSupport theDOMSupport)

Set the DOMSupport instance.

Parameters:
theDOMSupporta reference to the instance to use.
virtual void StylesheetExecutionContextDefault::setEscapeURLs ( eEscapeURLs  value) [virtual]
virtual void StylesheetExecutionContextDefault::setFormatterListener ( FormatterListener flistener) [virtual]

Set the current formatter listener.

Parameters:
flistenerpointer to new formatter listener

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::setIndent ( int  indentAmount) [virtual]

Set the current number of spaces to indent.

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

Implements StylesheetExecutionContext.

void StylesheetExecutionContextDefault::setOmitMETATag ( eOmitMETATag  value) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::setPrefixResolver ( const PrefixResolver thePrefixResolver) [virtual]

Change the resolver for namespaces.

Parameters:
thePrefixResolvernew object for namespace resolution

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::setRootDocument ( XalanNode theDocument) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::setSourceDocument ( const XalanDOMString theURI,
XalanDocument theDocument 
) [virtual]

Associate a document with a given URI.

Parameters:
theURIdocument URI
theDocumentsource document

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::setStylesheetRoot ( const StylesheetRoot theStylesheet) [virtual]

Set root stylesheet for stylesheet.

Parameters:
theStylesheetroot stylesheet

Implements StylesheetExecutionContext.

void StylesheetExecutionContextDefault::setUsePerInstanceDocumentFactory ( bool  fValue)
void StylesheetExecutionContextDefault::setXObjectFactory ( XObjectFactory theXObjectFactory)

Set the XObjectFactory instance.

Parameters:
theFactorya reference to the instance to use.
void StylesheetExecutionContextDefault::setXPathEnvSupport ( XPathEnvSupport theSupport)

Set the XPathEnvSupport instance.

Parameters:
theSupporta reference to the instance to use.
void StylesheetExecutionContextDefault::setXSLTProcessor ( XSLTEngineImpl theProcessor)

Set the DOMSupport instance.

Parameters:
theDOMSupporta reference to the instance to use.
virtual bool StylesheetExecutionContextDefault::shouldStripSourceNode ( const XalanText node) [virtual]

Tells, through the combination of the default-space attribute on xsl:stylesheet, xsl:strip-space, xsl:preserve-space, and the xml:space attribute, whether or not extra whitespace should be stripped from the node.

Literal elements from template elements should not be tested with this function.

Parameters:
textNodetext node from the source tree
Returns:
true if the text node should be stripped of extra whitespace

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::startDocument ( ) [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

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::startElement ( const XalanDOMChar *  name) [virtual]

Receive notification of the beginning of an element.

Parameters:
nameelement type name

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::traceSelect ( const ElemTemplateElement theStylesheetElement,
const NodeRefListBase nl,
const XPath xpath 
) [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.

Implements StylesheetExecutionContext.

CollationCompareFunctor* StylesheetExecutionContextDefault::uninstallCollationCompareFunctor ( )
FormatNumberFunctor* StylesheetExecutionContextDefault::uninstallFormatNumberFunctor ( )
virtual void StylesheetExecutionContextDefault::warn ( const XalanDOMString msg,
const XalanNode sourceNode,
const LocatorType locator 
) const [virtual]

Report a warning.

Parameters:
msgThe text of the message.
sourceNodeThe source node where the warning occurred. May be 0.
locatorA Locator to determine where the warning occurred. May be 0.

Implements StylesheetExecutionContext.

virtual void StylesheetExecutionContextDefault::warn ( const XalanDOMString msg,
const ElemTemplateElement styleNode,
const XalanNode sourceNode = 0 
) const [virtual]

Report a warning.

Parameters:
msgThe text of the message.
styleNodeThe stylesheet node were the warning occurred.
sourceNodeThe source node where the warning occurred. May be 0.

Implements StylesheetExecutionContext.


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

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

dot

Xalan-C++ XSLT Processor Version 1.10
Copyright © 1999-2004 The Apache Software Foundation. All Rights Reserved.

Apache Logo