Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Member Functions | Static Public Member Functions | Public Attributes

XSLTProcessorEnvSupportDefault Class Reference

#include <XSLTProcessorEnvSupportDefault.hpp>

Inherits XSLTProcessorEnvSupport.

Collaboration diagram for XSLTProcessorEnvSupportDefault:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Static Public Member Functions

Public Attributes


Detailed Description

Definition at line 45 of file XSLTProcessorEnvSupportDefault.hpp.


Constructor & Destructor Documentation

XSLTProcessorEnvSupportDefault::XSLTProcessorEnvSupportDefault ( MemoryManager &  theManager,
XSLTProcessor theProcessor = 0 
)
virtual XSLTProcessorEnvSupportDefault::~XSLTProcessorEnvSupportDefault (  )  [virtual]
XSLTProcessorEnvSupportDefault::XSLTProcessorEnvSupportDefault ( const XSLTProcessorEnvSupportDefault  ) 

Member Function Documentation

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

Implements XSLTProcessorEnvSupport.

virtual XObjectPtr XSLTProcessorEnvSupportDefault::extFunction ( XPathExecutionContext executionContext,
const XalanDOMString theNamespace,
const XalanDOMString functionName,
XalanNode context,
const XObjectArgVectorType argVec,
const Locator *  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 Locator instance for error reporting.
Returns:
pointer to XObject result

Implements XSLTProcessorEnvSupport.

virtual const XalanDOMString& XSLTProcessorEnvSupportDefault::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

Implements 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

Implements XSLTProcessorEnvSupport.

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

Get the source document for the given URI.

Parameters:
theURI document URI
Returns:
source document

Implements XSLTProcessorEnvSupport.

static void XSLTProcessorEnvSupportDefault::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.
virtual void XSLTProcessorEnvSupportDefault::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.
XSLTProcessorEnvSupportDefault& XSLTProcessorEnvSupportDefault::operator= ( const XSLTProcessorEnvSupportDefault  ) 
bool XSLTProcessorEnvSupportDefault::operator== ( const XSLTProcessorEnvSupportDefault  )  const
virtual XalanDocument* XSLTProcessorEnvSupportDefault::parseXML ( MemoryManager &  theManager,
const XalanDOMString urlString,
const XalanDOMString base,
ErrorHandler *  theErrorHandler = 0 
) [virtual]

Provides support for XML parsing service.

Parameters:
theManager The MemoryManager instance to use.
urlString location of the XML
base base location for URI
theErrorHandler An optional ErrorHandler instance for error reporting.
Returns:
parsed document

Implements XSLTProcessorEnvSupport.

virtual void XSLTProcessorEnvSupportDefault::problem ( eSource  source,
eClassification  classification,
const XalanDOMString msg,
const Locator *  locator,
const XalanNode sourceNode 
) [virtual]

Function that is called when a problem event occurs.

Parameters:
source Either eXMLParser, eXSLProcessor, or eXPATH.
classification Either eMessage, eWarning, or eError.
locator The current Locator instance for the stylesheet. Maybe be a null pointer.
sourceNode The current source node, if any.
msg The error message.

Implements XSLTProcessorEnvSupport.

virtual void XSLTProcessorEnvSupportDefault::problem ( eSource  source,
eClassification  classification,
const XalanDOMString msg,
const XalanNode sourceNode 
) [virtual]

Function that is called when a problem event occurs.

This version assumes location information is already formatted into the message.

Parameters:
source either eXMLPARSER, eXSLPROCESSOR, or eXPATH
classification either eMESSAGE, eERROR or eWARNING
msg string message explaining the problem.

Implements XSLTProcessorEnvSupport.

virtual void XSLTProcessorEnvSupportDefault::reset (  )  [virtual]

Reset the instance.

Implements XSLTProcessorEnvSupport.

void XSLTProcessorEnvSupportDefault::setProcessor ( XSLTProcessor theProcessor  )  [inline]

Reset the XLST processor instance.

Parameters:
theProcessor pointer to new processor instance

Definition at line 62 of file XSLTProcessorEnvSupportDefault.hpp.

virtual void XSLTProcessorEnvSupportDefault::setSourceDocument ( const XalanDOMString theURI,
XalanDocument theDocument 
) [virtual]

Associate a document with a given URI.

Parameters:
theURI document URI
theDocument source document

Implements XSLTProcessorEnvSupport.

static 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.
virtual 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.

Member Data Documentation

Definition at line 189 of file XSLTProcessorEnvSupportDefault.hpp.

Definition at line 191 of file XSLTProcessorEnvSupportDefault.hpp.


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.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo