13 #include "SaxonProcessor.h"
83 void setcwd(
const char* cwd);
118 void setProperty(
const char * name,
const char * value);
254 void createException(
const char * message=
nullptr);
262 std::map<std::string,XdmValue*> parameters;
263 std::map<std::string,std::string> properties;
Definition: SaxonApiException.h:19
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition: SaxonProcessor.h:119
Definition: XPathProcessor.h:27
void setContextItem(XdmItem *item)
Definition: XPathProcessor.cpp:317
std::map< std::string, XdmValue * > & getParameters()
Definition: XPathProcessor.cpp:567
bool exceptionOccurred()
Definition: XPathProcessor.cpp:603
SaxonApiException * getException()
Get the SaxonApiException object created when we have an error.
Definition: XPathProcessor.cpp:598
bool removeParameter(const char *name)
Definition: XPathProcessor.cpp:520
void setContextFile(const char *filename)
Set the context item from file.
Definition: XPathProcessor.cpp:333
void setBackwardsCompatible(bool option)
Say whether XPath 1.0 backwards compatibility mode is to be used.
Definition: XPathProcessor.cpp:391
const char * getErrorMessage()
Get the ith error message if there are any error.
Definition: XPathProcessor.cpp:593
void setBaseURI(const char *uriStr)
Set the static base URI for XPath expressions compiled using this XPathCompiler.
Definition: XPathProcessor.cpp:418
XdmItem * evaluateSingle(const char *xpathStr)
Compile and evaluate an XPath expression. The result is expected to be a single XdmItem or nullptr.
Definition: XPathProcessor.cpp:210
void clearProperties()
Definition: XPathProcessor.cpp:558
void setcwd(const char *cwd)
Definition: XPathProcessor.cpp:563
void exceptionClear()
Clear any exception thrown.
Definition: XPathProcessor.cpp:577
void setProperty(const char *name, const char *value)
Set a property specific to the processor in use.
Definition: XPathProcessor.cpp:524
void declareVariable(const char *name)
Declare a variable as part of the static context for XPath expressions compiled using this XPathCompi...
Definition: XPathProcessor.cpp:367
const char * getErrorCode()
Get the ith error code if there are any error.
Definition: XPathProcessor.cpp:588
void setCaching(bool caching)
Say whether the compiler should maintain a cache of compiled expressions.
Definition: XPathProcessor.cpp:399
std::map< std::string, std::string > & getProperties()
Definition: XPathProcessor.cpp:572
void clearParameters(bool deleteValues=false)
Definition: XPathProcessor.cpp:541
bool effectiveBooleanValue(const char *xpathStr)
Evaluate the XPath expression, returning the effective boolean value of the result.
Definition: XPathProcessor.cpp:440
void setParameter(const char *name, XdmValue *value)
Definition: XPathProcessor.cpp:516
void declareNamespace(const char *prefix, const char *uri)
Declare a namespace binding as part of the static context for XPath expressions compiled using this X...
Definition: XPathProcessor.cpp:343
XPathProcessor()
Default constructor.
Definition: XPathProcessor.cpp:18
void importSchemaNamespace(const char *uri)
Import a schema namespace.
Definition: XPathProcessor.cpp:408
XdmValue * evaluate(const char *xpathStr)
Compile and evaluate an XPath expression.
Definition: XPathProcessor.cpp:106
Definition: XdmValue.h:50