13#include "SaxonProcessor.h"
24enum class UnprefixedElementMatchingPolicy {
33 DEFAULT_NAMESPACE = 0,
57 DEFAULT_NAMESPACE_OR_NONE = 2
136 void setcwd(
const char *cwd);
151 const char *encoding =
nullptr);
179 void setProperty(
const char *name,
const char *value);
256 UnprefixedElementMatchingPolicy convertEnumPolicy(
int n) {
257 return static_cast<UnprefixedElementMatchingPolicy
>(n);
351 void createException(
const char *message =
nullptr);
362 std::map<std::string, XdmValue *>
365 std::map<std::string, std::string>
370 UnprefixedElementMatchingPolicy unprefixedElementPolicy;
Definition SaxonApiException.h:23
Definition SaxonProcessor.h:117
Definition XPathProcessor.h:63
void setContextItem(XdmItem *item)
Definition XPathProcessor.cpp:189
std::map< std::string, XdmValue * > & getParameters()
Definition XPathProcessor.cpp:397
bool exceptionOccurred()
Definition XPathProcessor.cpp:432
SaxonApiException * getException()
Get the SaxonApiException object created when we have an error.
Definition XPathProcessor.cpp:430
const char * getBaseURI()
Definition XPathProcessor.cpp:301
bool removeParameter(const char *name)
Definition XPathProcessor.cpp:353
bool effectiveBooleanValue(const char *xpathStr, const char *encoding=nullptr)
Definition XPathProcessor.cpp:310
void setContextFile(const char *filename)
Definition XPathProcessor.cpp:205
void setBackwardsCompatible(bool option)
Say whether XPath 1.0 backwards compatibility mode is to be used.
Definition XPathProcessor.cpp:259
const char * getErrorMessage()
Get the first error message if there are any errors.
Definition XPathProcessor.cpp:423
UnprefixedElementMatchingPolicy getUnprefixedElementMatchingPolicy()
! Get the policy for matching unprefixed element names in XPath expressions
Definition XPathProcessor.cpp:226
void setBaseURI(const char *uriStr)
Definition XPathProcessor.cpp:291
void clearProperties()
Definition XPathProcessor.cpp:393
void setcwd(const char *cwd)
Definition XPathProcessor.cpp:395
void exceptionClear()
Clear any exception thrown.
Definition XPathProcessor.cpp:407
void setLanguageVersion(const char *version)
Definition XPathProcessor.cpp:267
XdmValue * evaluate(const char *xpathStr, const char *encoding=nullptr)
Compile and evaluate an XPath expression.
Definition XPathProcessor.cpp:106
void setProperty(const char *name, const char *value)
Set a property specific to the processor in use.
Definition XPathProcessor.cpp:357
void declareVariable(const char *name)
Definition XPathProcessor.cpp:249
const char * getErrorCode()
Get the first error code if there are any errors.
Definition XPathProcessor.cpp:416
XdmItem * evaluateSingle(const char *xpathStr, const char *encoding=nullptr)
Definition XPathProcessor.cpp:134
void setCaching(bool caching)
Say whether the compiler should maintain a cache of compiled expressions.
Definition XPathProcessor.cpp:275
std::map< std::string, std::string > & getProperties()
Definition XPathProcessor.cpp:402
void clearParameters(bool deleteValues=false)
Definition XPathProcessor.cpp:375
void setUnprefixedElementMatchingPolicy(UnprefixedElementMatchingPolicy policy)
Set the policy for matching unprefixed element names in XPath expressions.
Definition XPathProcessor.cpp:214
void setParameter(const char *name, XdmValue *value)
Definition XPathProcessor.cpp:349
void declareNamespace(const char *prefix, const char *uri)
Definition XPathProcessor.cpp:236
XPathProcessor()
Default constructor.
Definition XPathProcessor.cpp:17
void importSchemaNamespace(const char *uri)
Import a schema namespace.
Definition XPathProcessor.cpp:283