Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.6

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XPathEnvSupportDefault Class Reference

Dummy class in order to make the XPath object happy for diagnostic purposes. More...

#include <XPathEnvSupportDefault.hpp>

Inheritance diagram for XPathEnvSupportDefault

Collaboration diagram for XPathEnvSupportDefault:

List of all members.

Public Types

Public Methods

Static Public Methods

Protected Methods


Detailed Description

Dummy class in order to make the XPath object happy for diagnostic purposes.


Member Typedef Documentation

typedef std::map<XalanDOMString, const Function*> XPathEnvSupportDefault::FunctionTableType

typedef std::map<XalanDOMString, FunctionTableType> XPathEnvSupportDefault::NamespaceFunctionTablesType

typedef std::map<XalanDOMString, XalanDocument*> XPathEnvSupportDefault::SourceDocsTableType


Constructor & Destructor Documentation

XPathEnvSupportDefault::XPathEnvSupportDefault ( )

virtual XPathEnvSupportDefault::~XPathEnvSupportDefault ( ) [virtual]


Member Function Documentation

virtual bool XPathEnvSupportDefault::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 XPathEnvSupport.

virtual XObjectPtr XPathEnvSupportDefault::extFunction ( XPathExecutionContext & executionContext,
const XalanDOMString & theNamespace,
const XalanDOMString & functionName,
XalanNode * context,
const XObjectArgVectorType & argVec,
const LocatorType * locator ) const [virtual]

Handle an extension function.

Parameters:
executionContext   current execution context
theNamespace   namespace of function
functionName   extension function name
argVec   vector of arguments to function
locator   A LocatorType instance for error reporting.
Returns:
pointer to XObject result

Reimplemented from XPathEnvSupport.

const Function * XPathEnvSupportDefault::findFunction ( const XalanDOMString & theNamespace,
const XalanDOMString & functionName ) const [protected]

Find an external function.

Parameters:
theNamespace   The namespace for the function.
functionName   The name of the function.
Returns:
a pointer to the function if found, or 0 if not found.

virtual XalanDOMString XPathEnvSupportDefault::findURIFromDoc ( const XalanDocument * owner ) const [virtual]

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

Needed for relative resolution.

Parameters:
owner   source document
Returns:
document URI

Reimplemented from XPathEnvSupport.

virtual bool XPathEnvSupportDefault::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 XPathEnvSupport.

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

Get the source document for the given URI.

Parameters:
theURI   document URI
Returns:
source document

Reimplemented from XPathEnvSupport.

void XPathEnvSupportDefault::initialize ( ) [static]

Perform initialization of statics -- must be called before any processing occurs.

See class XPathInit.

void XPathEnvSupportDefault::installExternalFunctionGlobal ( const XalanDOMString & theNamespace,
const XalanDOMString & functionName,
const Function & function ) [static]

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.

void XPathEnvSupportDefault::installExternalFunctionLocal ( const XalanDOMString & theNamespace,
const XalanDOMString & functionName,
const Function & function ) [virtual]

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.

virtual XalanDocument* XPathEnvSupportDefault::parseXML ( const XalanDOMString & urlString,
const XalanDOMString & base ) [virtual]

Provides support for XML parsing service.

Parameters:
urlString   location of the XML
base   base location for URI
Returns:
parsed document

Reimplemented from XPathEnvSupport.

virtual bool XPathEnvSupportDefault::problem ( eSource where,
eClassification classification,
const PrefixResolver * resolver,
const XalanNode * sourceNode,
const XalanDOMString & msg,
const XalanDOMChar * uri,
int lineNo,
int charOffset ) const [virtual]

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 0)
msg   string message explaining the problem.
uri   the URI of the stylesheet, if available. May be 0;
lineNo   line number where the problem occurred.
charOffset   character offset where the problem.
Returns:
true if the return is an ERROR, in which case exception will be thrown. Otherwise the processor will continue to process.

Reimplemented from XPathEnvSupport.

virtual void XPathEnvSupportDefault::reset ( ) [virtual]

Reset the instance.

Reimplemented from XPathEnvSupport.

virtual void XPathEnvSupportDefault::setSourceDocument ( const XalanDOMString & theURI,
XalanDocument * theDocument ) [virtual]

Associate a document with a given URI.

Parameters:
theURI   document URI
theDocument   source document

Reimplemented from XPathEnvSupport.

void XPathEnvSupportDefault::terminate ( ) [static]

Perform termination of statics.

See class XPathInit.

void XPathEnvSupportDefault::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 XPathEnvSupportDefault::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++ XSLT Processor Version 1.6
Copyright © 2000, 2001, 2002, 2003 The Apache Software Foundation. All Rights Reserved.