src="el" href="xal_cpp_vms_00304.html#a24">StylesheetExecutionContext.
virtual XalanDocument* StylesheetExecutionContextDefault::createDocument () const [virtual] |
|
Construct a FormatterToDOM instance.
it will add the DOM nodes
to the document fragment.
-
Parameters:
-
| doc
|
document for nodes
|
| docFrag
|
document fragment for nodes, default none
|
| currentElement
|
current element for nodes, default none
|
Reimplemented from StylesheetExecutionContext.
Construct a FormatterToDOM instance.
it will add the DOM nodes
to the document fragment.
-
Parameters:
-
| doc
|
document for nodes
|
| docFrag
|
document fragment for nodes, default none
|
| currentElement
|
current element for nodes, default none
|
Reimplemented from StylesheetExecutionContext.
Create a new FormatterToHTML instance.
The execution context
owns the instance and will delete it when reset.
-
Parameters:
-
| 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
|
-
Returns:
-
a pointer to the new instance.
Reimplemented from StylesheetExecutionContext.
|
virtual FormatterToText* StylesheetExecutionContextDefault::createFormatterToText (
|
Writer & writer) [virtual] |
|
Create a new FormatterToXML instance.
The execution context
owns the instance and will delete it when reset.
-
Parameters:
-
| 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
|
-
Returns:
-
a pointer to the new instance.
Reimplemented from StylesheetExecutionContext.
Create and initialize an xpath and return it.
This is to be used to
create an XPath that is only used during execution.
-
Parameters:
-
| str
|
string expression for XPath evaluation
|
| resolver
|
resolver for namespace resolution
|
-
Returns:
-
pointer to resulting XPath
Reimplemented from StylesheetExecutionContext.
virtual MutableNodeRefList* StylesheetExecutionContextDefault::createMutableNodeRefList () const [virtual] |
|
|
virtual XObject* StylesheetExecutionContextDefault::createNodeSet (
|
XalanNode & theNode) [virtual] |
|
Convenience function for creating a node set with the supplied node as the only member.
-
Parameters:
-
-
Returns:
-
a pointer to the XObject instance.
Reimplemented from StylesheetExecutionContext.
|
virtual PrintWriter* StylesheetExecutionContextDefault::createPrintWriter (
|
std::ostream & theStream) [virtual] |
|
Create a PrintWriter.
Create an appropriate output stream
using the provided file name and encoding.
-
Parameters:
-
| theFileName
|
The file name for the output stream
|
| theEncoding
|
The encoding for the output stream
|
-
Returns:
-
The new instance.
Reimplemented from StylesheetExecutionContext.
Create an ResultTreeFragment as a variable and push it on to the stack with the current context.
-
Parameters:
-
| name
|
name of variable
|
| element
|
element marker for variable
|
| templateChild
|
result tree fragment to use.
|
| sourceTree
|
node for source tree
|
| sourceNode
|
source node
|
-
Returns:
-
a pointer to the XObject result
Reimplemented from StylesheetExecutionContext.
Execute the supplied XPath and and create a variable in the current context.
-
Parameters:
-
| element
|
element marker for variable
|
| str
|
string expression for XPath evaluation
|
| contextNode
|
current node in the source tree
|
| resolver
|
resolver for namespace resolution
|
-
Returns:
-
a pointer to the XObject result
Reimplemented from StylesheetExecutionContext.
Create an XObject that represents a Result tree fragment.
-
Parameters:
-
| templateChild
|
result tree fragment to use.
|
| sourceTree
|
node for source tree
|
| sourceNode
|
source node
|
| mode
|
current mode
|
-
Returns:
-
XObject instance
Reimplemented from StylesheetExecutionContext.
Create an XObject that represents a Result tree fragment.
-
Parameters:
-
| templateChild
|
result tree fragment to use.
|
| sourceTree
|
node for source tree
|
| sourceNode
|
source node
|
-
Returns:
-
XObject instance
Reimplemented from StylesheetExecutionContext.
|
virtual bool StylesheetExecutionContextDefault::destroyXObject (
|
const XObject * theXObject) const [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::diag (
|
const XalanDOMString & theString) [virtual] |
|
Print a diagnostics string to the output device.
-
Parameters:
-
| theString
|
string to print
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::displayDuration (
|
const XalanDOMString & theMessage, |
|
const void * theKey) [virtual] |
|
Display the duration since pushTime was called.
-
Parameters:
-
| theMessage
|
message to display
|
| theKey
|
key for which duration is displayed
|
Reimplemented from StylesheetExecutionContext.
virtual bool StylesheetExecutionContextDefault::doDiagnosticsOutput () const [virtual] |
|
|
virtual bool StylesheetExecutionContextDefault::elementAvailable (
|
const XalanDOMString & theNamespace, |
|
const XalanDOMString & elementName) const [virtual] |
|
Determine if an external element is available.
-
Parameters:
-
| theNamespace
|
namespace for the element
|
| elementName
|
name of extension element
|
-
Returns:
-
whether the given element is available or not
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::endConstruction (
|
const KeyDeclaration & keyDeclaration) [virtual] |
|
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:
-
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::endElement (
|
const XalanDOMChar * name) [virtual] |
|
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.
-
Parameters:
-
-
Exceptions:
-
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::error (
|
const XalanDOMString & msg, |
|
const XalanNode * sourceNode = 0, |
|
const XalanNode * styleNode = 0) const [virtual] |
|
Tell the user of an error, and probably throw an exception.
-
Parameters:
-
| msg
|
text of message to output
|
| sourceNode
|
node in source where error occurred
|
| styleNode
|
node in stylesheet where error occurred
|
Reimplemented from StylesheetExecutionContext.
Evaluate the value of an attribute within the context of a specified context node and namespace.
-
Parameters:
-
| contextNode
|
current context node
|
| namespaceContext
|
context for namespace resolution
|
| stringedValue
|
value to evaluate
|
Reimplemented from StylesheetExecutionContext.
Execute an XPath and return the resulting XObject.
The lifetime of this
XObject is not necessarily that of the Stylesheet.
-
Parameters:
-
| str
|
string expression for XPath evaluation
|
| contextNode
|
current node in the source tree
|
| resolver
|
resolver for namespace resolution
|
-
Returns:
-
pointer to resulting XObject
Reimplemented from StylesheetExecutionContext.
Handle an extension function.
-
Parameters:
-
| theNamespace
|
namespace of function
|
| functionName
|
extension function name
|
| argVec
|
vector of arguments to function
|
-
Returns:
-
pointer to XObject result
Reimplemented from 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
Reimplemented from StylesheetExecutionContext.
Given a DOM Document, tell what URI was used to parse it.
Needed for
relative resolution.
-
Parameters:
-
-
Returns:
-
document URI
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::fireGenerateEvent (
|
const GenerateEvent & ge) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::fireSelectEvent (
|
const SelectionEvent & se) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::fireTraceEvent (
|
const TracerEvent & te) [virtual] |
|
virtual void StylesheetExecutionContextDefault::flushPending () [virtual] |
|
|
virtual bool StylesheetExecutionContextDefault::functionAvailable (
|
const XalanDOMString & theNamespace, |
|
const XalanDOMString & functionName) const [virtual] |
|
Determine if a function is available.
For standard
function availability, theNamespace should be an
empty string.
-
Parameters:
-
| theNamespace
|
namespace for the function
|
| functionName
|
name of the function
|
-
Returns:
-
whether the function is available or not
Reimplemented from StylesheetExecutionContext.
virtual const NodeRefListBase& StylesheetExecutionContextDefault::getContextNodeList () const [virtual] |
|
virtual unsigned int StylesheetExecutionContextDefault::getContextNodeListLength () const [virtual] |
|
|
virtual unsigned int StylesheetExecutionContextDefault::getContextNodeListPosition (
|
const XalanNode & contextNode) const [virtual] |
|
virtual XalanNode* StylesheetExecutionContextDefault::getCurrentNode () const [virtual] |
|
virtual XalanDOMString StylesheetExecutionContextDefault::getCurrentPattern () const [virtual] |
|
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
Reimplemented from StylesheetExecutionContext.
virtual XalanDocument* StylesheetExecutionContextDefault::getDOMFactory () const [virtual] |
|
Get a DOM document, primarily for creating result tree fragments.
-
Returns:
-
DOM document
Reimplemented from StylesheetExecutionContext.
Given a valid element id, return the corresponding element.
-
Parameters:
-
| id
|
string representing ID
|
| doc
|
document to search
|
-
Returns:
-
element for ID
Reimplemented from StylesheetExecutionContext.
virtual FormatterListener* StylesheetExecutionContextDefault::getFormatterListener () const [virtual] |
|
virtual bool StylesheetExecutionContextDefault::getHasPendingStartDocument () const [virtual] |
|
|
virtual bool StylesheetExecutionContextDefault::getInConstruction (
|
const KeyDeclaration & keyDeclaration) const [virtual] |
|
virtual int StylesheetExecutionContextDefault::getIndent () const [virtual] |
|
|
virtual XalanDOMString StylesheetExecutionContextDefault::getLocalNameOfNode (
|
const XalanNode & n) const [virtual] |
|
Returns the local name of the given node.
-
Parameters:
-
-
Returns:
-
local name string corresponding to 'n'
Reimplemented from StylesheetExecutionContext.
virtual bool StylesheetExecutionContextDefault::getMustFlushPendingStartDocument () const [virtual] |
|
See if a pending start document event must be flushed.
-
Returns:
-
true if the event must be flushed.
Reimplemented from StylesheetExecutionContext.
Retrieve the name of the node, taking into account the differences between the DOM and XSLT data models.
-
Parameters:
-
| node
|
DOM node whose name is returned
|
-
Returns:
-
name of the node
Reimplemented from StylesheetExecutionContext.
Retrieve the URI corresponding to a namespace prefix.
-
Parameters:
-
| prefix
|
prefix for a namespace
|
-
Returns:
-
URI corresponding to namespace
Reimplemented from StylesheetExecutionContext.
|
virtual XalanDOMString StylesheetExecutionContextDefault::getNamespaceOfNode (
|
const XalanNode & n) const [virtual] |
|
Retrieve namespace corresponding to a DOM node.
-
Parameters:
-
-
Returns:
-
namespace string corresponding to 'n'
Reimplemented from StylesheetExecutionContext.
Get node data recursively.
(Note whitespace issues.)
-
Parameters:
-
-
Returns:
-
string of data for node 'n'
Reimplemented from StylesheetExecutionContext.
Given a valid element key, return the corresponding node list.
-
Parameters:
-
| 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 StylesheetExecutionContext.
|
virtual const XObject* StylesheetExecutionContextDefault::getParamVariable (
|
const QName & theName) const [virtual] |
|
Given a name, return a string representing the value, but don't look in the global space.
-
Parameters:
-
-
Returns:
-
pointer to XObject for variable
Reimplemented from StylesheetExecutionContext.
|
virtual XalanNode* StylesheetExecutionContextDefault::getParentOfNode (
|
const XalanNode & n) const [virtual] |
|
virtual const AttributeList& StylesheetExecutionContextDefault::getPendingAttributes () const [virtual] |
|
virtual XalanDOMString StylesheetExecutionContextDefault::getPendingElementName () const [virtual] |
|
Retrieve name of the pending element currently being processed.
-
Returns:
-
element name
Reimplemented from StylesheetExecutionContext.
virtual const PrefixResolver* StylesheetExecutionContextDefault::getPrefixResolver () const [virtual] |
|
virtual bool StylesheetExecutionContextDefault::getProcessNamespaces () const [virtual] |
|
Tells if namespaces should be supported.
For optimization purposes.
-
Returns:
-
true if namespaces supported
Reimplemented from StylesheetExecutionContext.
virtual bool StylesheetExecutionContextDefault::getQuietConflictWarnings () const [virtual] |
|
Determine whether conflicts should be reported.
-
Returns:
-
true if conflicts should not be warned
Reimplemented from StylesheetExecutionContext.
|
virtual const XalanDOMString& StylesheetExecutionContextDefault::getResultNamespaceForPrefix (
|
const XalanDOMString & thePrefix) const [virtual] |
|
Retrieve the result namespace corresponding to a prefix.
-
Parameters:
-
| thePrefix
|
prefix for namespace
|
Reimplemented from StylesheetExecutionContext.
|
virtual const XalanDOMString& StylesheetExecutionContextDefault::getResultPrefixForNamespace (
|
const XalanDOMString & theNamespace) const [virtual] |
|
Retrieve the result prefix corresponding to a namespace.
-
Parameters:
-
| theNamespace
|
namespace for prefix
|
Reimplemented from 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
Reimplemented from StylesheetExecutionContext.
virtual bool StylesheetExecutionContextDefault::getThrowFoundIndex () const [virtual] |
|
virtual unsigned long StylesheetExecutionContextDefault::getTraceListeners () const [virtual] |
|
virtual bool StylesheetExecutionContextDefault::getTraceSelects () const [virtual] |
|
If this is set to true, simple traces of template calls are made.
-
Returns:
-
true if traces made
Reimplemented from StylesheetExecutionContext.
virtual XalanDOMString StylesheetExecutionContextDefault::getUniqueNameSpaceValue () const [virtual] |
|
Generate a random namespace prefix guaranteed to be unique.
-
Returns:
-
unique namespace prefix
Reimplemented from StylesheetExecutionContext.
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:
-
| theName
|
name of entity
|
| theDocument
|
document containing entity
|
-
Returns:
-
URI for the entity
Reimplemented from StylesheetExecutionContext.
|
virtual const XObject* StylesheetExecutionContextDefault::getVariable (
|
const QName & name) const [virtual] |
|
Given a name, locate a variable in the current context, and return a pointer to the object.
-
Parameters:
-
-
Returns:
-
pointer to an XObject if the variable was found, 0 if it was not
Reimplemented from StylesheetExecutionContext.
|
virtual XLocator* StylesheetExecutionContextDefault::getXLocatorFromNode (
|
const XalanNode * node) const [virtual] |
|
Get an XLocator provider keyed by node.
This gets the association
based on the root of the tree that is the node's parent.
-
Parameters:
-
-
Returns:
-
pointer to locator
Reimplemented from StylesheetExecutionContext.
virtual XObjectFactory& StylesheetExecutionContextDefault::getXObjectFactory () const [virtual] |
|
Retrieve the factory object for creating XObjects.
-
Returns:
-
factory object instance
Reimplemented from StylesheetExecutionContext.
virtual const XalanDOMString& StylesheetExecutionContextDefault::getXSLNameSpaceURL () const [virtual] |
|
virtual const XalanDOMString& StylesheetExecutionContextDefault::getXalanXSLNameSpaceURL () const [virtual] |
|
Special Xalan namespace for built-in extensions.
-
Returns:
-
Xalan namespace for extensions
Reimplemented from StylesheetExecutionContext.
|
virtual bool StylesheetExecutionContextDefault::isIgnorableWhitespace (
|
const XalanText & node) const [virtual] |
|
Tell if the node is ignorable whitespace.
This should be in the DOM.
Return false if the parser doesn't handle this.
-
Parameters:
-
-
Returns:
-
true if white space can be ignored
Reimplemented from 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:
-
| node1
|
The first node
|
| node2
|
The second node
|
-
Returns:
-
true if node1 one is after node2, or false if it is not.
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::message (
|
const XalanDOMString & msg, |
|
const XalanNode * sourceNode = 0, |
|
const XalanNode * styleNode = 0) const [virtual] |
|
Output a message.
-
Parameters:
-
| msg
|
text of message to output
|
| sourceNode
|
node in source where error occurred
|
| styleNode
|
node in stylesheet where error occurred
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::outputResultTreeFragment (
|
const XObject & theTree) [virtual] |
|
Given a result tree fragment, walk the tree and output it to the result stream.
-
Parameters:
-
| theTree
|
result tree fragment
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::outputToResultTree (
|
const XObject & xobj) [virtual] |
|
Output an object to the result tree by doing the right conversions.
This is public for access by extensions.
-
Parameters:
-
Reimplemented from StylesheetExecutionContext.
Provides support for XML parsing service.
-
Parameters:
-
| urlString
|
location of the XML
|
| base
|
base location for URI
|
-
Returns:
-
parsed document
Reimplemented from StylesheetExecutionContext.
virtual void StylesheetExecutionContextDefault::popArgVector () [virtual] |
|
virtual void StylesheetExecutionContextDefault::popContextMarker () [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::popElementFrame (
|
const ElemTemplateElement * elem) [virtual] |
|
virtual const ElemTemplateElement* StylesheetExecutionContextDefault::popElementRecursionStack () [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::processingInstruction (
|
const XalanDOMChar * target, |
|
const XalanDOMChar * data) [virtual] |
|
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.
-
Parameters:
-
| target
|
processing instruction target
|
| data
|
processing instruction data, or null if none was supplied
|
-
Exceptions:
-
Reimplemented from StylesheetExecutionContext.
Push an arg vector on the execution context and return a reference to it.
Must be followed by
a pop.
-
Returns:
-
a reference to an arg vector.
Reimplemented from StylesheetExecutionContext.
virtual void StylesheetExecutionContextDefault::pushContextMarker () [virtual] |
|
Push a context marker onto the stack to let us know when to stop searching for a var.
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::pushElementFrame (
|
const ElemTemplateElement * elem) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::pushOnElementRecursionStack (
|
const ElemTemplateElement * theElement) [virtual] |
|
Push an element onto the recursion stack.
-
Parameters:
-
| theElement
|
pointer to element to push
|
Reimplemented from StylesheetExecutionContext.
Given a template, search for the arguments and push them on the stack.
Also, push default arguments on the stack.
-
Parameters:
-
| xslCallTemplateElement
|
"call-template" element
|
| sourceTree
|
source tree
|
| sourceNode
|
source node
|
| mode
|
mode under which the template is operating
|
| targetTemplate
|
target template
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::pushTime (
|
const void * theKey) [virtual] |
|
Mark the time, so that displayDuration can later display the elapsed clock ticks.
-
Parameters:
-
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::pushTopLevelVariables (
|
const ParamVectorType & topLevelParams) [virtual] |
|
Set a list of top level variables in the specified execution context stylesheet.
-
Parameters:
-
| topLevelParams
|
list of top level parameters
|
Reimplemented from StylesheetExecutionContext.
Create an ResultTreeFragment as a variable and push it on to the stack with the current context.
-
Parameters:
-
| name
|
name of variable
|
| element
|
element marker for variable
|
| templateChild
|
result tree fragment to use.
|
| sourceTree
|
node for source tree
|
| sourceNode
|
source node
|
Reimplemented from StylesheetExecutionContext.
Execute the supplied XPath and push the result as a variable in the current context.
-
Parameters:
-
| 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
|
-
Returns:
-
nothing
Reimplemented from StylesheetExecutionContext.
Push a named variable onto the processor variable stack.
-
Parameters:
-
| name
|
name of variable
|
| var
|
pointer to XObject value
|
| element
|
element marker for variable
|
Reimplemented from StylesheetExecutionContext.
Execute an XPath using the provided expression, and push the result as a variable in the context of the supplied element.
-
Parameters:
-
| 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
|
-
Returns:
-
nothing
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::replacePendingAttribute (
|
const XalanDOMChar * theName, |
|
const XalanDOMChar * theNewType, |
|
const XalanDOMChar * theNewValue) [virtual] |
|
Replace the contents of a pending attribute.
-
Parameters:
-
| pendingAttributes
|
attribute list
|
| theName
|
name of attribute
|
| theNewType
|
type of attribute
|
| theNewValue
|
new value of attribute
|
Reimplemented from StylesheetExecutionContext.
virtual void StylesheetExecutionContextDefault::reset () [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::resetCurrentState (
|
XalanNode * sourceTree, |
|
XalanNode * xmlNode) [virtual] |
|
Reset the state of execution to node 'xmlNode' in source tree 'sourceTree.'.
-
Parameters:
-
| sourceTree
|
source tree for execution
|
| xmlNode
|
node to execute
|
Reimplemented from StylesheetExecutionContext.
virtual void StylesheetExecutionContextDefault::resolveTopLevelParams () [virtual] |
|
|
virtual bool StylesheetExecutionContextDefault::returnMutableNodeRefList (
|
MutableNodeRefList * theList) [virtual] |
|
Return a previously borrowed MutableNodeRefList.
-
Parameters:
-
| theList
|
A pointer the to previously borrowed node list.
|
-
Returns:
-
true if the list was borrowed (at therefore, destroyed), false if not.
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::returnXPath (
|
const XPath * xpath) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::setContextNodeList (
|
const NodeRefListBase & theList) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::setCurrentNode (
|
XalanNode * theCurrentNode) [virtual] |
|
Change the node currently being executed.
-
Parameters:
-
| theCurrentNode
|
new current node
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::setCurrentPattern (
|
const XalanDOMString & thePattern) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::setCurrentStackFrameIndex (
|
int currentStackFrameIndex = -1) [virtual] |
|
Set the top of the stack frame from where a search for a variable or param should take place.
-
Parameters:
-
| currentStackFrameIndex
|
new value of index
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::setFormatterListener (
|
FormatterListener * flistener) [virtual] |
|
Set the current formatter listener.
-
Parameters:
-
| flistener
|
pointer to new formatter listener
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::setHasPendingStartDocument (
|
bool b) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::setMustFlushPendingStartDocument (
|
bool b) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::setPendingAttributes (
|
const AttributeList & pendingAttributes) [virtual] |
|
Sets a list of attributes yet to be processed.
-
Parameters:
-
| pendingAttributes
|
attribute list
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::setPendingElementName (
|
const XalanDOMString & elementName) [virtual] |
|
Changes the currently pending element name.
-
Parameters:
-
| elementName
|
new name of element
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::setPrefixResolver (
|
const PrefixResolver * thePrefixResolver) [virtual] |
|
Change the resolver for namespaces.
-
Parameters:
-
| thePrefixResolver
|
new object for namespace resolution
|
Reimplemented from 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:
-
| theDocument
|
root document
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::setSourceDocument (
|
const XalanDOMString & theURI, |
|
XalanDocument * theDocument) [virtual] |
|
Associate a document with a given URI.
-
Parameters:
-
| theURI
|
document URI
|
| theDocument
|
source document
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::setStylesheetRoot (
|
const StylesheetRoot * theStylesheet) [virtual] |
|
|
virtual void StylesheetExecutionContextDefault::setThrowFoundIndex (
|
bool fThrow) [virtual] |
|
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.
-
Parameters:
-
Reimplemented from StylesheetExecutionContext.
|
virtual bool StylesheetExecutionContextDefault::shouldStripSourceNode (
|
const XalanNode & 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:
-
| textNode
|
text node from the source tree
|
-
Returns:
-
true if the text node should be stripped of extra whitespace
Reimplemented from 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:
-
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::startElement (
|
const XalanDOMChar * name) [virtual] |
|
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.
-
Parameters:
-
-
Exceptions:
-
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::traceSelect (
|
const XalanElement & theTemplate, |
|
const NodeRefListBase & nl) const [virtual] |
|
Compose a diagnostic trace of the current selection.
-
Parameters:
-
| theTemplate
|
current context node
|
| nl
|
list of selected nodes
|
Reimplemented from StylesheetExecutionContext.
|
virtual void StylesheetExecutionContextDefault::warn (
|
const XalanDOMString & msg, |
|
const XalanNode * sourceNode = 0, |
|
const XalanNode * styleNode = 0) const [virtual] |
|
Tell the user of an warning, and probably throw an exception.
-
Parameters:
-
| msg
|
text of message to output
|
| sourceNode
|
node in source where error occurred
|
| styleNode
|
node in stylesheet where error occurred
|
Reimplemented from 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.
|
Xalan-C++ XSL Transformer Version 1.0
Copyright © 2000 The Apache Software Foundation. All Rights Reserved.
|
|
|