#include <StylesheetExecutionContext.hpp>
Inheritance diagram for StylesheetExecutionContext:
Collaboration diagram for StylesheetExecutionContext:
|
|
|
eDefaultHTMLIndentAmount |
|
|
|
Add a result attribute to the list of pending attributes.
aname | name of attribute |
value | value of attribute |
Reimplemented in StylesheetExecutionContextDefault.
|
Associate an XLocator provider to a node.
This makes the association based on the root of the tree that is the node's parent.
node | node for association |
xlocator | locator to associate with node |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Add KeyDeclaration to construction list.
KeyDeclaration | being constructed |
Reimplemented in StylesheetExecutionContextDefault.
|
Borrow a cached MutableNodeRefList.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Receive notification of character data.
The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity, so that the Locator provides useful information.
The application must not attempt to read from the array outside of the specified range.
Note that some parsers will report whitespace using the ignorableWhitespace() method rather than this one (validating parsers must do so).
ch | pointer to characters from the XML document |
start | start position in the array |
length | number of characters to read from the array |
SAXException |
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
SAXException |
Reimplemented in StylesheetExecutionContextDefault.
|
|
Clone an element with or without children.
node | node to clone |
isLiteral | true if a literal element |
overrideStrip | false if white space stripping should be done |
shouldCloneAttributes | true if attributes should be cloned |
Reimplemented in StylesheetExecutionContextDefault.
|
Compare two strings using the collation of the current locale.
theLHS | a string to compare |
theRHS | a string to compare |
Reimplemented in StylesheetExecutionContextDefault.
|
Compare two strings using the collation of the current locale.
theLHS | a string to compare |
theRHS | a string to compare |
Reimplemented in StylesheetExecutionContextDefault.
|
Called when a Comment is to be constructed.
data | pointer to comment data |
SAXException |
Reimplemented in StylesheetExecutionContextDefault.
|
Add namespace attributes for a node to the list of pending attributes.
src | source node |
srcIsStylesheetTree | true if source node corresponds to a stylesheet |
Reimplemented in StylesheetExecutionContextDefault.
|
Create a new empty document.
Reimplemented in StylesheetExecutionContextDefault.
|
Construct a FormatterToDOM instance.
it will add the DOM nodes to the document fragment.
doc | document for nodes |
docFrag | document fragment for nodes, default none |
currentElement | current element for nodes, default none |
Reimplemented in StylesheetExecutionContextDefault.
|
Construct a FormatterToDOM instance.
it will add the DOM nodes to the document fragment.
doc | document for nodes |
docFrag | document fragment for nodes, default none |
currentElement | current element for nodes, default none |
Reimplemented in StylesheetExecutionContextDefault.
|
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 in use by 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 |
version | version of the output method |
standalone | true if the XSLT processor should output a standalone document declaration |
xmlDecl | true if the XSLT processor should output an XML declaration |
Reimplemented in StylesheetExecutionContextDefault.
|
FormatterToText instance constructor.
pw | print writer for output |
Reimplemented in StylesheetExecutionContextDefault.
|
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 in use by 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 |
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented in StylesheetExecutionContextDefault.
|
Create a MutableNodeRefList with the appropriate context.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Convenience function for creating a node set with the supplied node as the only member.
node | The node queried |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Create a PrintWriter using the provided ostream instance.
ostream | The output stream for the PrintWriter. |
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented in StylesheetExecutionContextDefault.
|
Create a PrintWriter for the provided stream.
theTextOutputStream | The output stream for the PrintWriter. |
Reimplemented in StylesheetExecutionContextDefault.
|
Create an ResultTreeFragment as a variable and push it on to the stack with the current context.
name | name of variable |
element | element marker for variable |
templateChild | result tree fragment to use. |
sourceTree | node for source tree |
sourceNode | source node |
Reimplemented in StylesheetExecutionContextDefault.
|
Execute the supplied XPath and and create a variable in the current context.
element | element marker for variable |
str | string expression for XPath evaluation |
contextNode | current node in the source tree |
resolver | resolver for namespace resolution |
Reimplemented in StylesheetExecutionContextDefault.
|
Create an XObject that represents a Result tree fragment.
templateChild | result tree fragment to use. |
sourceTree | node for source tree |
sourceNode | source node |
mode | current mode |
Reimplemented in StylesheetExecutionContextDefault.
|
Create an XObject that represents a Result tree fragment.
templateChild | result tree fragment to use. |
sourceTree | node for source tree |
sourceNode | source node |
Reimplemented in StylesheetExecutionContextDefault.
|
Create a new XalanNumberFormat instance.
Reimplemented in StylesheetExecutionContextDefault.
|
Function to destroy an XObject that was returned by executing.
It is safe to call this function with any XObject.
theXObject | pointer to the XObject. |
Reimplemented in StylesheetExecutionContextDefault.
|
Print a diagnostics string to the output device.
theString | string to print |
Reimplemented in StylesheetExecutionContextDefault.
|
Display the duration since pushTime was called.
theMessage | message to display |
theKey | key for which duration is displayed |
Reimplemented in StylesheetExecutionContextDefault.
|
Whether diagnostic output is to be generated.
Reimplemented in StylesheetExecutionContextDefault.
|
Determine if an external element is available.
theNamespace | namespace for the element |
elementName | name of extension element |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Remove KeyDeclaration from construction list.
constructed | KeyDeclaration |
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented in StylesheetExecutionContextDefault.
|
Receive notification of the end of an element.
The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).
If the element name has a namespace prefix, the prefix will still be attached to the name.
name | element type name |
SAXException |
Reimplemented in StylesheetExecutionContextDefault.
|
Tell the user of an error, and probably throw an exception.
msg | text of message to output |
sourceNode | node in source where error occurred |
styleNode | node in stylesheet where error occurred |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Evaluate the value of an attribute within the context of a specified context node and namespace.
contextNode | current context node |
namespaceContext | context for namespace resolution |
stringedValue | value to evaluate |
Reimplemented in StylesheetExecutionContextDefault.
|
Execute an XPath and return the resulting XObject.
The lifetime of this XObject is not necessarily that of the Stylesheet.
str | string expression for XPath evaluation |
contextNode | current node in the source tree |
resolver | resolver for namespace resolution |
Reimplemented in StylesheetExecutionContextDefault.
|
Handle an extension function.
theNamespace | namespace of function |
functionName | extension function name |
argVec | vector of arguments to function |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Determine if an element is on the recursion stack.
Reimplemented in StylesheetExecutionContextDefault.
|
Given a DOM Document, tell what URI was used to parse it.
Needed for relative resolution.
owner | source document |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Fire a generate event.
ge | generate event to fire |
Reimplemented in StylesheetExecutionContextDefault.
|
Fire a selection event.
se | selection event to fire |
Reimplemented in StylesheetExecutionContextDefault.
|
Fire a trace event.
te | trace event to fire |
Reimplemented in StylesheetExecutionContextDefault.
|
|
Determine if a function is available.
For standard function availability, theNamespace should be an empty string.
theNamespace | namespace for the function |
functionName | name of the function |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve node list for current context.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
|
|
Retrieve the node currently being executed.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the current match pattern.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Get the top of the stack frame from where a search for a variable or param should take place.
Reimplemented in StylesheetExecutionContextDefault.
|
Get a DOM document, primarily for creating result tree fragments.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the XalanDecimalFormatSymbols instance associated with the name.
name | the name for the lookup |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Given a valid element id, return the corresponding element.
id | string representing ID |
doc | document to search |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Get the current formatter listener.
Reimplemented in StylesheetExecutionContextDefault.
|
Reimplemented in StylesheetExecutionContextDefault.
|
Determine if a KeyDeclaration is being constructed.
The | KeyDeclaration in question. |
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the current number of spaces to indent.
Reimplemented in StylesheetExecutionContextDefault.
|
Returns the local name of the given node.
n | node queried |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
See if a pending start document event must be flushed.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models.
node | DOM node whose name is returned |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the URI corresponding to a namespace prefix.
prefix | prefix for a namespace |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve namespace corresponding to a DOM node.
n | DOM node queried |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Get node data recursively.
(Note whitespace issues.)
n | DOM node queried |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Given a valid element key, return the corresponding node list.
doc | source document |
name | name of the key, which must match the 'name' attribute on xsl:key |
ref | value that must match the value found by the 'match' attribute on xsl:key |
resolver | resolver for namespace resolution |
nodelist | A node list to contain the nodes found |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Given a name, return a string representing the value, but don't look in the global space.
theName | name of variable |
Reimplemented in StylesheetExecutionContextDefault.
|
Returns the parent of the given node.
n | DOM node queried |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve list of attributes yet to be processed.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve name of the pending element currently being processed.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the resolver for namespaces.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Tells if namespaces should be supported.
For optimization purposes.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Determine whether conflicts should be reported.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the result namespace corresponding to a prefix.
thePrefix | prefix for namespace |
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the result prefix corresponding to a namespace.
theNamespace | namespace for prefix |
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve root document for stylesheet.
Note that this does not have to be a XalanDocument -- it can be any node in a document.
Reimplemented in StylesheetExecutionContextDefault.
|
|
Tells if FoundIndex should be thrown if index is found.
This is an optimization for match patterns, and is used internally by the XPath engine.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Determine the number of trace listeners.
Reimplemented in StylesheetExecutionContextDefault.
|
If this is set to true, simple traces of template calls are made.
Reimplemented in StylesheetExecutionContextDefault.
|
Generate a random namespace prefix guaranteed to be unique.
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Given a name, locate a variable in the current context, and return a pointer to the object.
theName | name of variable |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Get an XLocator provider keyed by node.
This gets the association based on the root of the tree that is the node's parent.
node | node for locator |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Retrieve the factory object for creating XObjects.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Determine the full XSLT Namespace URI.
Reimplemented in StylesheetExecutionContextDefault.
|
Special Xalan namespace for built-in extensions.
Reimplemented in StylesheetExecutionContextDefault.
|
Tell if the node is ignorable whitespace.
This should be in the DOM. Return false if the parser doesn't handle this.
node | text node queried |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Determine if a node is after another node, in document order.
node1 | The first node |
node2 | The second node |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Output a message.
msg | text of message to output |
sourceNode | node in source where error occurred |
styleNode | node in stylesheet where error occurred |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Given a result tree fragment, walk the tree and output it to the result stream.
theTree | result tree fragment |
Reimplemented in StylesheetExecutionContextDefault.
|
Output an object to the result tree by doing the right conversions.
This is public for access by extensions.
obj | the XObject to output |
Reimplemented in StylesheetExecutionContextDefault.
|
Provides support for XML parsing service.
urlString | location of the XML |
base | base location for URI |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Pop the arg vector from the execution context.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Pop the current context from the current context stack.
Reimplemented in StylesheetExecutionContextDefault.
|
Pop a frame marker for an element.
elem | the element |
Reimplemented in StylesheetExecutionContextDefault.
|
Pop an element off the recursion stack.
Reimplemented in StylesheetExecutionContextDefault.
|
Receive notification of a processing instruction.
The Parser will invoke this method once for each processing instruction found: note that processing instructions may occur before or after the main document element.
A SAX parser should never report an XML declaration (XML 1.0, section 2.8) or a text declaration (XML 1.0, section 4.3.1) using this method.
target | processing instruction target |
data | processing instruction data, or null if none was supplied |
SAXException |
Reimplemented in StylesheetExecutionContextDefault.
|
Push an arg vector on the execution context and return a reference to it.
Must be followed by a pop.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Push a context marker onto the stack to let us know when to stop searching for a var.
Reimplemented in StylesheetExecutionContextDefault.
|
Push a frame marker for an element.
elem | the element |
Reimplemented in StylesheetExecutionContextDefault.
|
Push an element onto the recursion stack.
theElement | pointer to element to push |
Reimplemented in StylesheetExecutionContextDefault.
|
Given a template, search for the arguments and push them on the stack.
Also, push default arguments on the stack.
xslCallTemplateElement | "call-template" element |
sourceTree | source tree |
sourceNode | source node |
mode | mode under which the template is operating |
targetTemplate | target template |
Reimplemented in StylesheetExecutionContextDefault.
|
Mark the time, so that displayDuration can later display the elapsed clock ticks.
theKey | element to push |
Reimplemented in StylesheetExecutionContextDefault.
|
Set a list of top level variables in the specified execution context stylesheet.
topLevelParams | list of top level parameters |
Reimplemented in StylesheetExecutionContextDefault.
|
Push a named variable onto the processor variable stack.
name | name of variable |
var | pointer to XObject value |
element | element marker for variable |
Reimplemented in StylesheetExecutionContextDefault.
|
Create an ResultTreeFragment as a variable and push it on to the stack with the current context.
name | name of variable |
element | element marker for variable |
templateChild | result tree fragment to use. |
sourceTree | node for source tree |
sourceNode | source node |
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented in StylesheetExecutionContextDefault.
|
Replace the contents of a pending attribute.
pendingAttributes | attribute list |
theName | name of attribute |
theNewType | type of attribute |
theNewValue | new value of attribute |
Reimplemented in StylesheetExecutionContextDefault.
|
Reset the instance.
This must be called before another execution is attempted.
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Reset the state of execution to node 'xmlNode' in source tree 'sourceTree.'.
sourceTree | source tree for execution |
xmlNode | node to execute |
Reimplemented in StylesheetExecutionContextDefault.
|
Resolve the params that were pushed by the caller.
Reimplemented in StylesheetExecutionContextDefault.
|
Return a previously borrowed MutableNodeRefList.
theList | A pointer the to previously borrowed node list. |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Return the XPath created by createMatchPattern().
xpath | The XPath to return. |
Reimplemented in StylesheetExecutionContextDefault.
|
Set node list for current context.
theList | new node list |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Change the node currently being executed.
theCurrentNode | new current node |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Sets the current match pattern.
thePattern | new match pattern |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Set the top of the stack frame from where a search for a variable or param should take place.
currentStackFrameIndex | new value of index |
Reimplemented in StylesheetExecutionContextDefault.
|
Set the current formatter listener.
flistener | pointer to new formatter listener |
Reimplemented in StylesheetExecutionContextDefault.
|
Set the pending start document event state.
the | new value |
Reimplemented in StylesheetExecutionContextDefault.
|
Set the pending start document event flush state.
the | new value |
Reimplemented in StylesheetExecutionContextDefault.
|
Sets a list of attributes yet to be processed.
pendingAttributes | attribute list |
Reimplemented in StylesheetExecutionContextDefault.
|
Changes the currently pending element name.
elementName | new name of element |
Reimplemented in StylesheetExecutionContextDefault.
|
Change the resolver for namespaces.
thePrefixResolver | new object for namespace resolution |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented in StylesheetExecutionContextDefault.
|
Associate a document with a given URI.
theURI | document URI |
theDocument | source document |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Set root stylesheet for stylesheet.
theStylesheet | root stylesheet |
Reimplemented in StylesheetExecutionContextDefault.
|
Changes whether FoundIndex should be thrown if index is found.
This is an optimization for match patterns, and is used internally by the XPath engine.
fThrow | true to throw FoundIndex |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
Tells, through the combination of the default-space attribute on xsl:stylesheet, xsl:strip-space, xsl:preserve-space, and the xml:space attribute, whether or not extra whitespace should be stripped from the node.
Literal elements from template elements should not be tested with this function.
textNode | text node from the source tree |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
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 |
Reimplemented in StylesheetExecutionContextDefault.
|
Receive notification of the beginning of an element.
The Parser will invoke this method at the beginning of every element in the XML document; there will be a corresponding endElement() event for every startElement() event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement() event.
If the element name has a namespace prefix, the prefix will still be attached.
name | element type name |
SAXException |
Reimplemented in StylesheetExecutionContextDefault.
|
Compose a diagnostic trace of the current selection.
theTemplate | current context node |
nl | list of selected nodes |
Reimplemented in StylesheetExecutionContextDefault.
|
Tell the user of an warning, and probably throw an exception.
msg | text of message to output |
sourceNode | node in source where error occurred |
styleNode | node in stylesheet where error occurred |
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
The documentation for this class was generated from the following file:
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSL Transformer Version 1.0 |
|