src="el" href="xal_cpp_vms_00063.html#a18">StylesheetExecutionContextDefault.
XalanDocument * StylesheetExecutionContext::createDocument () const [pure 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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 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.
-
Parameters:
-
| str
|
string expression for XPath evaluation
|
| resolver
|
resolver for namespace resolution
|
-
Returns:
-
pointer to resulting XPath
Reimplemented in StylesheetExecutionContextDefault.
virtual MutableNodeRefList* StylesheetExecutionContext::createMutableNodeRefList () const [pure virtual] |
|
|
virtual XObject* StylesheetExecutionContext::createNodeSet (
|
XalanNode & theNode) [pure virtual] |
|
|
PrintWriter * StylesheetExecutionContext::createPrintWriter (
|
std::ostream & theStream) [pure 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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
|
bool StylesheetExecutionContext::destroyXObject (
|
const XObject * theXObject) const [pure virtual] |
|
|
void StylesheetExecutionContext::diag (
|
const XalanDOMString & theString) [pure virtual] |
|
|
void StylesheetExecutionContext::displayDuration (
|
const XalanDOMString & theMessage, |
|
const void * theKey) [pure virtual] |
|
Display the duration since pushTime was called.
-
Parameters:
-
| theMessage
|
message to display
|
| theKey
|
key for which duration is displayed
|
Reimplemented in StylesheetExecutionContextDefault.
bool StylesheetExecutionContext::doDiagnosticsOutput () const [pure virtual] |
|
|
virtual bool StylesheetExecutionContext::elementAvailable (
|
const XalanDOMString & theNamespace, |
|
const XalanDOMString & elementName) const [pure 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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
void StylesheetExecutionContext::endConstruction (
|
const KeyDeclaration & keyDeclaration) [pure virtual] |
|
void StylesheetExecutionContext::endDocument () [pure 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 in StylesheetExecutionContextDefault.
|
void StylesheetExecutionContext::endElement (
|
const XalanDOMChar * name) [pure 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 in StylesheetExecutionContextDefault.
|
virtual void StylesheetExecutionContext::error (
|
const XalanDOMString & msg, |
|
const XalanNode * sourceNode = 0, |
|
const XalanNode * styleNode = 0) const [pure 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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
|
bool StylesheetExecutionContext::findOnElementRecursionStack (
|
const ElemTemplateElement * theElement) const [pure virtual] |
|
|
void StylesheetExecutionContext::fireGenerateEvent (
|
const GenerateEvent & ge) [pure virtual] |
|
|
void StylesheetExecutionContext::fireSelectEvent (
|
const SelectionEvent & se) [pure virtual] |
|
|
void StylesheetExecutionContext::fireTraceEvent (
|
const TracerEvent & te) [pure virtual] |
|
void StylesheetExecutionContext::flushPending () [pure virtual] |
|
|
virtual bool StylesheetExecutionContext::functionAvailable (
|
const XalanDOMString & theNamespace, |
|
const XalanDOMString & functionName) const [pure 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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
virtual const NodeRefListBase& StylesheetExecutionContext::getContextNodeList () const [pure virtual] |
|
virtual unsigned int StylesheetExecutionContext::getContextNodeListLength () const [pure virtual] |
|
|
virtual unsigned int StylesheetExecutionContext::getContextNodeListPosition (
|
const XalanNode & contextNode) const [pure virtual] |
|
virtual XalanNode* StylesheetExecutionContext::getCurrentNode () const [pure virtual] |
|
virtual XalanDOMString StylesheetExecutionContext::getCurrentPattern () const [pure virtual] |
|
int StylesheetExecutionContext::getCurrentStackFrameIndex () const [pure 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 in StylesheetExecutionContextDefault.
virtual XalanDocument* StylesheetExecutionContext::getDOMFactory () const [pure virtual] |
|
FormatterListener * StylesheetExecutionContext::getFormatterListener () const [pure virtual] |
|
virtual bool StylesheetExecutionContext::getHasPendingStartDocument () const [pure virtual] |
|
|
bool StylesheetExecutionContext::getInConstruction (
|
const KeyDeclaration & keyDeclaration) const [pure virtual] |
|
int StylesheetExecutionContext::getIndent () const [pure virtual] |
|
bool StylesheetExecutionContext::getMustFlushPendingStartDocument () const [pure virtual] |
|
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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
const XObject * StylesheetExecutionContext::getParamVariable (
|
const QName & theName) const [pure virtual] |
|
|
virtual XalanNode* StylesheetExecutionContext::getParentOfNode (
|
const XalanNode & n) const [pure virtual] |
|
const AttributeList & StylesheetExecutionContext::getPendingAttributes () const [pure virtual] |
|
XalanDOMString StylesheetExecutionContext::getPendingElementName () const [pure virtual] |
|
virtual const PrefixResolver* StylesheetExecutionContext::getPrefixResolver () const [pure virtual] |
|
virtual bool StylesheetExecutionContext::getProcessNamespaces () const [pure virtual] |
|
bool StylesheetExecutionContext::getQuietConflictWarnings () const [pure virtual] |
|
XalanNode * StylesheetExecutionContext::getRootDocument () const [pure virtual] |
|
virtual bool StylesheetExecutionContext::getThrowFoundIndex () const [pure virtual] |
|
unsigned long StylesheetExecutionContext::getTraceListeners () const [pure virtual] |
|
bool StylesheetExecutionContext::getTraceSelects () const [pure virtual] |
|
XalanDOMString StylesheetExecutionContext::getUniqueNameSpaceValue () const [pure 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:
-
| theName
|
name of entity
|
| theDocument
|
document containing entity
|
-
Returns:
-
URI for the entity
Reimplemented from XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
virtual const XObject* StylesheetExecutionContext::getVariable (
|
const QName & name) const [pure virtual] |
|
|
virtual XLocator* StylesheetExecutionContext::getXLocatorFromNode (
|
const XalanNode * node) const [pure virtual] |
|
virtual XObjectFactory& StylesheetExecutionContext::getXObjectFactory () const [pure virtual] |
|
const XalanDOMString & StylesheetExecutionContext::getXSLNameSpaceURL () const [pure virtual] |
|
const XalanDOMString & StylesheetExecutionContext::getXalanXSLNameSpaceURL () const [pure virtual] |
|
|
virtual bool StylesheetExecutionContext::isIgnorableWhitespace (
|
const XalanText & node) const [pure virtual] |
|
|
virtual bool StylesheetExecutionContext::isNodeAfter (
|
const XalanNode & node1, |
|
const XalanNode & node2) const [pure 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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
|
virtual void StylesheetExecutionContext::message (
|
const XalanDOMString & msg, |
|
const XalanNode * sourceNode = 0, |
|
const XalanNode * styleNode = 0) const [pure virtual] |
|
|
void StylesheetExecutionContext::outputResultTreeFragment (
|
const XObject & theTree) [pure virtual] |
|
Given a result tree fragment, walk the tree and output it to the result stream.
-
Parameters:
-
| theTree
|
result tree fragment
|
Reimplemented in StylesheetExecutionContextDefault.
|
void StylesheetExecutionContext::outputToResultTree (
|
const XObject & xobj) [pure virtual] |
|
Output an object to the result tree by doing the right conversions.
This is public for access by extensions.
-
Parameters:
-
Reimplemented in StylesheetExecutionContextDefault.
virtual void StylesheetExecutionContext::popArgVector () [pure virtual] |
|
void StylesheetExecutionContext::popContextMarker () [pure virtual] |
|
|
void StylesheetExecutionContext::popElementFrame (
|
const ElemTemplateElement * elem) [pure virtual] |
|
const ElemTemplateElement * StylesheetExecutionContext::popElementRecursionStack () [pure virtual] |
|
|
void StylesheetExecutionContext::processingInstruction (
|
const XalanDOMChar * target, |
|
const XalanDOMChar * data) [pure 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 in StylesheetExecutionContextDefault.
void StylesheetExecutionContext::pushContextMarker () [pure virtual] |
|
|
void StylesheetExecutionContext::pushElementFrame (
|
const ElemTemplateElement * elem) [pure virtual] |
|
|
void StylesheetExecutionContext::pushOnElementRecursionStack (
|
const ElemTemplateElement * theElement) [pure virtual] |
|
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 in StylesheetExecutionContextDefault.
|
void StylesheetExecutionContext::pushTime (
|
const void * theKey) [pure virtual] |
|
|
void StylesheetExecutionContext::pushTopLevelVariables (
|
const ParamVectorType & topLevelParams) [pure virtual] |
|
Set a list of top level variables in the specified execution context stylesheet.
-
Parameters:
-
| topLevelParams
|
list of top level parameters
|
Reimplemented in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
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 in StylesheetExecutionContextDefault.
virtual void StylesheetExecutionContext::reset () [pure virtual] |
|
|
void StylesheetExecutionContext::resetCurrentState (
|
XalanNode * sourceTree, |
|
XalanNode * xmlNode) [pure virtual] |
|
Reset the state of execution to node 'xmlNode' in source tree 'sourceTree.'.
-
Parameters:
-
| sourceTree
|
source tree for execution
|
| xmlNode
|
node to execute
|
Reimplemented in StylesheetExecutionContextDefault.
void StylesheetExecutionContext::resolveTopLevelParams () [pure virtual] |
|
|
virtual bool StylesheetExecutionContext::returnMutableNodeRefList (
|
MutableNodeRefList * theList) [pure virtual] |
|
|
void StylesheetExecutionContext::returnXPath (
|
const XPath * xpath) [pure virtual] |
|
|
virtual void StylesheetExecutionContext::setContextNodeList (
|
const NodeRefListBase & theList) [pure virtual] |
|
|
virtual void StylesheetExecutionContext::setCurrentNode (
|
XalanNode * theCurrentNode) [pure virtual] |
|
|
virtual void StylesheetExecutionContext::setCurrentPattern (
|
const XalanDOMString & thePattern) [pure virtual] |
|
|
void StylesheetExecutionContext::setCurrentStackFrameIndex (
|
int currentStackFrameIndex = -1) [pure 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 in StylesheetExecutionContextDefault.
|
void StylesheetExecutionContext::setFormatterListener (
|
FormatterListener * flistener) [pure virtual] |
|
|
void StylesheetExecutionContext::setHasPendingStartDocument (
|
bool b) [pure virtual] |
|
|
void StylesheetExecutionContext::setMustFlushPendingStartDocument (
|
bool b) [pure virtual] |
|
|
void StylesheetExecutionContext::setPendingAttributes (
|
const AttributeList & pendingAttributes) [pure virtual] |
|
|
void StylesheetExecutionContext::setPendingElementName (
|
const XalanDOMString & elementName) [pure virtual] |
|
|
virtual void StylesheetExecutionContext::setPrefixResolver (
|
const PrefixResolver * thePrefixResolver) [pure virtual] |
|
|
void StylesheetExecutionContext::setRootDocument (
|
XalanNode * theDocument) [pure virtual] |
|
|
virtual void StylesheetExecutionContext::setSourceDocument (
|
const XalanDOMString & theURI, |
|
XalanDocument * theDocument) [pure virtual] |
|
|
void StylesheetExecutionContext::setStylesheetRoot (
|
const StylesheetRoot * theStylesheet) [pure virtual] |
|
|
virtual void StylesheetExecutionContext::setThrowFoundIndex (
|
bool fThrow) [pure virtual] |
|
|
virtual bool StylesheetExecutionContext::shouldStripSourceNode (
|
const XalanNode & node) [pure 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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
void StylesheetExecutionContext::startDocument () [pure 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 in StylesheetExecutionContextDefault.
|
void StylesheetExecutionContext::startElement (
|
const XalanDOMChar * name) [pure 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 in StylesheetExecutionContextDefault.
Compose a diagnostic trace of the current selection.
-
Parameters:
-
| theTemplate
|
current context node
|
| nl
|
list of selected nodes
|
Reimplemented in StylesheetExecutionContextDefault.
|
virtual void StylesheetExecutionContext::warn (
|
const XalanDOMString & msg, |
|
const XalanNode * sourceNode = 0, |
|
const XalanNode * styleNode = 0) const [pure 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 XPathExecutionContext.
Reimplemented in StylesheetExecutionContextDefault.
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.
|
|
|