13#include "saxonc_export.h"
14#include "saxonc/SaxonProcessor.h"
15#include "saxonc/XsdSchema.h"
28enum class SAXONC_EXPORT UnprefixedElementMatchingPolicy {
37 DEFAULT_NAMESPACE = 0,
61 DEFAULT_NAMESPACE_OR_NONE = 2
101 void setBaseURI(
const char *uriStr);
108 const char *getBaseURI();
139 void setContextItem(
XdmItem *item);
145 void setcwd(
const char *cwd);
152 const char * getcwd();
156 void setContextFile(
const char *filename);
167 const char *encoding =
nullptr);
187 bool removeParameter(
const char *name);
197 void setProperty(
const char *name,
const char *value);
217 void declareNamespace(
const char *prefix,
const char *uri);
231 void declareVariable(
const char *name);
244 void setLanguageVersion(
const char *
version);
256 void setBackwardsCompatible(
bool option);
268 void setCaching(
bool caching);
278 setUnprefixedElementMatchingPolicy(UnprefixedElementMatchingPolicy policy);
287 return static_cast<UnprefixedElementMatchingPolicy
>(n);
294 UnprefixedElementMatchingPolicy getUnprefixedElementMatchingPolicy();
311 void importSchemaNamespace(
const char *uri);
340 void setSchemaAware(
bool schemaAware);
342 bool isSchemaAware();
355 std::map<std::string, XdmValue *> &getParameters();
360 std::map<std::string, std::string> &getProperties();
369 void clearParameters(
bool deleteValues =
false);
374 void clearProperties();
389 std::map<std::string, XdmValue *>
392 std::map<std::string, std::string>
395 UnprefixedElementMatchingPolicy unprefixedElementPolicy;
SAXONC_EXPORT void setParameter(sxnc_parameter **parameters, int *parLen, int *parCap, const char *name, sxnc_value *value)
Set a parameter.
Definition SaxonCGlue.c:202
SAXONC_EXPORT int64_t getParameter(sxnc_parameter *parameters, int parLen, const char *name)
Get a parameter from the list.
Definition SaxonCGlue.c:178
SAXONC_EXPORT void setProperty(sxnc_property **properties, int *propLen, int *propCap, const char *name, const char *value)
Set a property.
Definition SaxonCGlue.c:228
SAXONC_EXPORT char * getProperty(sxnc_property *properties, int propLen, const char *name)
Get a property from the list.
Definition SaxonCGlue.c:190
EXTERN_SAXONC SAXONC_EXPORT const char * version(sxnc_environment *environi, sxnc_processor *proc)
Get the Saxon version.
Definition SaxonCProcessor.c:6
SAXONC_EXPORT sxnc_value * evaluate(sxnc_environment *environi, sxnc_xpath *proc, char *cwd, char *xpathStr, char *encoding, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Compile and evaluate an XPath expression, supplied as a character string, with properties and paramet...
Definition SaxonCXPath.c:82
SAXONC_EXPORT sxnc_value * evaluateSingle(sxnc_environment *environi, sxnc_xpath *proc, char *cwd, char *xpathStr, char *encoding, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Compile and evaluate an XPath expression for which the result is expected to be a single XdmItem or N...
Definition SaxonCXPath.c:130
SAXONC_EXPORT bool effectiveBooleanValue(sxnc_environment *environi, sxnc_xpath *proc, char *cwd, char *xpathStr, char *encoding, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Evaluate an XPath expression, returning the effective boolean value of the result.
Definition SaxonCXPath.c:186
SaxonApiException.
Definition SaxonApiException.h:25
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:137
An XPathProcessor represents a factory to compile, load and execute XPath expressions.
Definition XPathProcessor.h:67
UnprefixedElementMatchingPolicy convertEnumPolicy(int n)
Convert an int into an UnprefixedElementMatchingPolicy.
Definition XPathProcessor.h:286
The class XdmItem represents an item in a sequence, as defined by the XDM data model.
Definition XdmItem.h:31
An XdmValue represents a value in the XDM data model.
Definition XdmValue.h:33
Definition XsdSchema.h:26