Xalan-C++ API Documentation
Xalan-C++ API Documentation
The Xalan-C++ XSL Transformer Version 1.0
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
XSLTProcessorEnvSupportDefault Class Reference
#include <XSLTProcessorEnvSupportDefault.hpp>
Inheritance diagram for XSLTProcessorEnvSupportDefault:
Collaboration diagram for XSLTProcessorEnvSupportDefault:
List of all members.
Public Types
Public Methods
- XSLTProcessorEnvSupportDefault (XSLTProcessor* theProcessor = 0)
- virtual ~XSLTProcessorEnvSupportDefault ()
- void setProcessor (XSLTProcessor* theProcessor)
- Reset the XLST processor instance. More...
- virtual void installExternalFunctionLocal ( const XalanDOMString& theNamespace, const XalanDOMString& functionName, const Function& function)
- Install an external function in the local space. More...
- virtual void uninstallExternalFunctionLocal ( const XalanDOMString& theNamespace, const XalanDOMString& functionName)
- Uninstall an external function from the local space. More...
- virtual XalanDocument* parseXML ( const XalanDOMString& urlString, const XalanDOMString& base)
- Provides support for XML parsing service. More...
- virtual XalanDocument* getSourceDocument (const XalanDOMString& theURI) const
- Get the source document for the given URI. More...
- virtual void setSourceDocument ( const XalanDOMString& theURI, XalanDocument* theDocument)
- Associate a document with a given URI. More...
- virtual XalanDOMString findURIFromDoc (const XalanDocument* owner) const
- Given a DOM Document, tell what URI was used to parse it. More...
- virtual XalanDocument* getDOMFactory () const
- Get a DOM document, primarily for creating result tree fragments. More...
- virtual bool elementAvailable ( const XalanDOMString& theNamespace, const XalanDOMString& elementName) const
- Determine if an external element is available. More...
- virtual bool functionAvailable ( const XalanDOMString& theNamespace, const XalanDOMString& functionName) const
- Determine if a function is available. More...
- virtual XObject* extFunction ( XPathExecutionContext& executionContext, const XalanDOMString& theNamespace, const XalanDOMString& functionName, XalanNode* context, const XObjectArgVectorType& argVec) const
- Handle an extension function. More...
- virtual XLocator* getXLocatorFromNode (const XalanNode* node) const
- Get an XLocator provider keyed by node. More...
- virtual void associateXLocatorToNode ( const XalanNode* node, XLocator* xlocator)
- Associate an XLocator provider to a node. More...
- virtual bool shouldStripSourceNode ( XPathExecutionContext& executionContext, const XalanNode& node) const
- 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. More...
- virtual bool problem ( eSource where, eClassification classification, const XalanNode* styleNode, const XalanNode* sourceNode, const XalanDOMString& msg, int lineNo, int charOffset) const
- Function that is called when a problem event occurs. More...
- virtual bool problem ( eSource where, eClassification classification, const PrefixResolver* resolver, const XalanNode* sourceNode, const XalanDOMString& msg, int lineNo, int charOffset) const
- Function that is called when a problem event occurs. More...
- virtual void reset ()
- Reset the instance.
Static Public Methods
Detailed Description
Member Typedef Documentation
typedef std::map<const XalanNode*, XLocator*> XSLTProcessorEnvSupportDefault::XLocatorTableType |
|
Constructor & Destructor Documentation
XSLTProcessorEnvSupportDefault::XSLTProcessorEnvSupportDefault (
|
XSLTProcessor * theProcessor = 0) |
|
virtual XSLTProcessorEnvSupportDefault::~XSLTProcessorEnvSupportDefault () [virtual] |
|
Member Function Documentation
virtual void XSLTProcessorEnvSupportDefault::associateXLocatorToNode (
|
const XalanNode * node, |
|
XLocator * xlocator) [virtual] |
|
Associate an XLocator provider to a node.
This makes the association
based on the root of the tree that is the node's parent.
-
Parameters:
-
node
|
node for association
|
xlocator
|
locator to associate with node
|
Reimplemented from XSLTProcessorEnvSupport.
virtual bool XSLTProcessorEnvSupportDefault::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 element is available or not
Reimplemented from XSLTProcessorEnvSupport.
Handle an extension function.
-
Parameters:
-
executionContext
|
current execution context
|
theNamespace
|
namespace of function
|
functionName
|
extension function name
|
argVec
|
vector of arguments to function
|
-
Returns:
-
pointer to XObject result
Reimplemented from XSLTProcessorEnvSupport.
Given a DOM Document, tell what URI was used to parse it.
Needed for
relative resolution.
-
Parameters:
-
-
Returns:
-
document URI
Reimplemented from XSLTProcessorEnvSupport.
virtual bool XSLTProcessorEnvSupportDefault::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 XSLTProcessorEnvSupport.
virtual XalanDocument* XSLTProcessorEnvSupportDefault::getDOMFactory () const [virtual] |
|
Get a DOM document, primarily for creating result tree fragments.
-
Returns:
-
DOM document
Reimplemented from XSLTProcessorEnvSupport.
Get the source document for the given URI.
-
Parameters:
-
-
Returns:
-
source document
Reimplemented from XSLTProcessorEnvSupport.
virtual XLocator* XSLTProcessorEnvSupportDefault::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 XSLTProcessorEnvSupport.
Install an external function in the global space.
-
Parameters:
-
theNamespace
|
The namespace for the functionl
|
functionName
|
The name of the function.
|
function
|
The function to install.
|
Install an external function in the local space.
-
Parameters:
-
theNamespace
|
The namespace for the functionl
|
functionName
|
The name of the function.
|
function
|
The function to install.
|
Provides support for XML parsing service.
-
Parameters:
-
urlString
|
location of the XML
|
base
|
base location for URI
|
-
Returns:
-
parsed document
Reimplemented from XSLTProcessorEnvSupport.
Function that is called when a problem event occurs.
-
Parameters:
-
where
|
either eXMLParser, eXSLTProcessor,
eXPATHParser, eXPATHProcessor, or eDataSource.
|
classification
|
either eWarning, or eError
|
resolver
|
resolver for namespace resolution
|
sourceNode
|
source tree node where the problem occurred
(may be null)
|
msg
|
string message explaining the problem.
|
lineNo
|
line number where the problem occurred,
if it is known, else zero
|
charOffset
|
character offset where the problem,
occurred if it is known, else zero
|
-
Returns:
-
true if the return is an ERROR, in which case exception will be
thrown. Otherwise the processor will continue to process.
Reimplemented from XSLTProcessorEnvSupport.
Function that is called when a problem event occurs.
-
Parameters:
-
where
|
either eXMLParser, eXSLTProcessor,
eXPATHParser, eXPATHProcessor, or eDataSource.
|
classification
|
either eWarning, or eError
|
resolver
|
resolver for namespace resolution
|
sourceNode
|
source tree node where the problem occurred
(may be null)
|
msg
|
string message explaining the problem.
|
lineNo
|
line number where the problem occurred,
if it is known, else zero
|
charOffset
|
character offset where the problem,
occurred if it is known, else zero
|
-
Returns:
-
true if the return is an ERROR, in which case exception will be
thrown. Otherwise the processor will continue to process.
Reimplemented from XSLTProcessorEnvSupport.
virtual void XSLTProcessorEnvSupportDefault::reset () [virtual] |
|
void XSLTProcessorEnvSupportDefault::setProcessor (
|
XSLTProcessor * theProcessor) |
|
Reset the XLST processor instance.
-
Parameters:
-
theProcessor
|
pointer to new processor instance
|
Associate a document with a given URI.
-
Parameters:
-
theURI
|
document URI
|
theDocument
|
source document
|
Reimplemented from XSLTProcessorEnvSupport.
virtual bool XSLTProcessorEnvSupportDefault::shouldStripSourceNode (
|
XPathExecutionContext & executionContext, |
|
const XalanNode & node) const [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:
-
executionContext
|
current execution context
|
node
|
text node from the source tree
|
-
Returns:
-
true if the text node should be stripped of extra whitespace
Reimplemented from XSLTProcessorEnvSupport.
void XSLTProcessorEnvSupportDefault::uninstallExternalFunctionGlobal (
|
const XalanDOMString & theNamespace, |
|
const XalanDOMString & functionName) [static] |
|
Uninstall an external function from the global space.
-
Parameters:
-
theNamespace
|
The namespace for the functionl
|
functionName
|
The name of the function.
|
void XSLTProcessorEnvSupportDefault::uninstallExternalFunctionLocal (
|
const XalanDOMString & theNamespace, |
|
const XalanDOMString & functionName) [virtual] |
|
Uninstall an external function from the local space.
-
Parameters:
-
theNamespace
|
The namespace for the functionl
|
functionName
|
The name of the function.
|
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.
|
|