#include <xalanc/XSLT/XSLTProcessorEnvSupportDefault.hpp>
|
| XSLTProcessorEnvSupportDefault (MemoryManager &theManager, XSLTProcessor *theProcessor=0) |
|
virtual | ~XSLTProcessorEnvSupportDefault () |
|
void | setProcessor (XSLTProcessor *theProcessor) |
| Reset the XLST processor instance.
|
|
virtual void | installExternalFunctionLocal (const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function) |
| Install an external function in the local space.
|
|
virtual void | uninstallExternalFunctionLocal (const XalanDOMString &theNamespace, const XalanDOMString &functionName) |
| Uninstall an external function from the local space.
|
|
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
| Function that is called when a problem event occurs.
|
|
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
| Function that is called when a problem event occurs.
|
|
virtual XalanDocument * | parseXML (MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) |
| Provides support for XML parsing service.
|
|
virtual XalanDocument * | getSourceDocument (const XalanDOMString &theURI) const |
| Get the source document for the given URI.
|
|
virtual void | setSourceDocument (const XalanDOMString &theURI, XalanDocument *theDocument) |
| Associate a document with a given URI.
|
|
virtual const XalanDOMString & | findURIFromDoc (const XalanDocument *owner) const |
| Given a DOM Document, tell what URI was used to parse it.
|
|
virtual bool | elementAvailable (const XalanDOMString &theNamespace, const XalanDOMString &elementName) const |
| Determine if an external element is available.
|
|
virtual bool | functionAvailable (const XalanDOMString &theNamespace, const XalanDOMString &functionName) const |
| Determine if a function is available.
|
|
virtual XObjectPtr | extFunction (XPathExecutionContext &executionContext, const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator) const |
| Handle an extension function.
|
|
virtual void | reset () |
| Reset the instance.
|
|
| XSLTProcessorEnvSupportDefault (const XSLTProcessorEnvSupportDefault &) |
|
XSLTProcessorEnvSupportDefault & | operator= (const XSLTProcessorEnvSupportDefault &) |
|
bool | operator== (const XSLTProcessorEnvSupportDefault &) const |
|
| XSLTProcessorEnvSupport () |
|
virtual | ~XSLTProcessorEnvSupport () |
|
| XPathEnvSupport () |
|
virtual | ~XPathEnvSupport () |
|
| ProblemListenerBase () |
|
virtual | ~ProblemListenerBase () |
|
|
static void | installExternalFunctionGlobal (const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function) |
| Install an external function in the global space.
|
|
static void | uninstallExternalFunctionGlobal (const XalanDOMString &theNamespace, const XalanDOMString &functionName) |
| Uninstall an external function from the global space.
|
|
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
| Function to format a problem call to a PrintWriter instance.
|
|
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
| Function to format a problem call to a PrintWriter instance.
|
|
|
typedef xercesc::Locator | LocatorType |
|
typedef Function::XObjectArgVectorType | XObjectArgVectorType |
|
enum | eSource {
eXMLPARSER = 0
, eXMLParser = 0
, eXSLPROCESSOR = 1
, eXSLTProcessor = 1
,
eXPATH = 2
, eXPath = 2
, eSourceCount
} |
|
enum | eClassification {
eMESSAGE = 0
, eMessage = 0
, eWARNING = 1
, eWarning = 1
,
eERROR = 2
, eError = 2
, eClassificationCount
} |
|
typedef eSource | eProblemSource |
|
static const XalanMessages::Codes | s_messageCodes [eSourceCount][eClassificationCount] |
|
◆ XSLTProcessorEnvSupportDefault() [1/2]
xalanc::XSLTProcessorEnvSupportDefault::XSLTProcessorEnvSupportDefault |
( |
MemoryManager & |
theManager, |
|
|
XSLTProcessor * |
theProcessor = 0 |
|
) |
| |
◆ ~XSLTProcessorEnvSupportDefault()
virtual xalanc::XSLTProcessorEnvSupportDefault::~XSLTProcessorEnvSupportDefault |
( |
| ) |
|
|
virtual |
◆ XSLTProcessorEnvSupportDefault() [2/2]
◆ elementAvailable()
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 xalanc::XSLTProcessorEnvSupport.
◆ extFunction()
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 xalanc::XSLTProcessorEnvSupport.
◆ findURIFromDoc()
Given a DOM Document, tell what URI was used to parse it.
Needed for relative resolution.
- Parameters
-
- Returns
- document URI
Implements xalanc::XSLTProcessorEnvSupport.
◆ functionAvailable()
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 xalanc::XSLTProcessorEnvSupport.
◆ getSourceDocument()
◆ installExternalFunctionGlobal()
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. |
◆ installExternalFunctionLocal()
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. |
◆ operator=()
◆ operator==()
◆ parseXML()
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 xalanc::XSLTProcessorEnvSupport.
◆ problem() [1/2]
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 xalanc::XSLTProcessorEnvSupport.
◆ problem() [2/2]
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 xalanc::XSLTProcessorEnvSupport.
◆ reset()
virtual void xalanc::XSLTProcessorEnvSupportDefault::reset |
( |
| ) |
|
|
virtual |
◆ setProcessor()
void xalanc::XSLTProcessorEnvSupportDefault::setProcessor |
( |
XSLTProcessor * |
theProcessor | ) |
|
|
inline |
◆ setSourceDocument()
◆ uninstallExternalFunctionGlobal()
Uninstall an external function from the global space.
- Parameters
-
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
◆ uninstallExternalFunctionLocal()
Uninstall an external function from the local space.
- Parameters
-
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
◆ m_defaultSupport
◆ m_processor
XSLTProcessor* xalanc::XSLTProcessorEnvSupportDefault::m_processor |
The documentation for this class was generated from the following file: