13#include "saxonc_export.h"
14#include "saxonc/SaxonProcessor.h"
71 void setcwd(
const char *cwd);
80 const char * getcwd();
91 void setBaseOutputURI(
const char *baseURI);
110 void setJustInTimeCompilation(
bool jit);
119 bool getJustInTimeCompilation();
126 void setTargetEdition(
const char *edition);
136 void setXsltLanguageVersion(
const char *
version);
154 void setFastCompilation(
bool fast);
163 void setRelocatable(
bool relocatable);
192 bool removeParameter(
const char *name);
201 std::map<std::string, XdmValue *> &getParameters();
210 void clearParameters(
bool deleteValues =
false);
237 void transformFileToFile(
const char *sourcefile,
const char *stylesheetfile,
238 const char *outputfile);
251 const char *transformFileToString(
const char *sourcefile,
252 const char *stylesheetfile);
263 XdmValue *transformFileToValue(
const char *sourcefile,
264 const char *stylesheetfile);
275 void importPackage(
const char *packageFile);
306 const char *encoding =
nullptr);
320 XsltExecutable *compileFromAssociatedFile(
const char *sourceFile);
330 void compileFromStringAndSave(
const char *stylesheet,
const char *filename,
331 const char *encoding =
nullptr);
340 void compileFromFileAndSave(
const char *xslFilename,
const char *filename);
349 void compileFromXdmNodeAndSave(
XdmNode *node,
const char *filename);
371 bool exceptionOccurred();
386 void exceptionClear();
394 const char *getErrorMessage();
403 const char *getErrorCode();
406 void createException(
const char *message =
nullptr);
417 void setProperty(
const char *name,
const char *value);
423 std::map<std::string, std::string> &getProperties();
428 void clearProperties();
432 int64_t importPackageValue;
435 std::map<std::string, XdmValue *>
438 std::map<std::string, std::string>
SAXONC_EXPORT void setParameter(sxnc_parameter **parameters, int *parLen, int *parCap, const char *name, sxnc_value *value)
Set a parameter.
Definition SaxonCGlue.c:160
SAXONC_EXPORT int64_t getParameter(sxnc_parameter *parameters, int parLen, const char *name)
Get a parameter from the list.
Definition SaxonCGlue.c:136
SAXONC_EXPORT void setProperty(sxnc_property **properties, int *propLen, int *propCap, const char *name, const char *value)
Set a property.
Definition SaxonCGlue.c:186
EXTERN_SAXONC SAXONC_EXPORT const char * version(sxnc_environment *environi, sxnc_processor *proc)
Get the Saxon version.
Definition SaxonCProcessor.c:6
SaxonApiException.
Definition SaxonApiException.h:24
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:117
The class XdmItem represents an item in a sequence, as defined by the XDM data model.
Definition XdmItem.h:31
This class represents a node in the XDM data model.
Definition XdmNode.h:57
An XdmValue represents a value in the XDM data model.
Definition XdmValue.h:43
An Xslt30Processor represents a factory to compile, load and execute stylesheets.
Definition Xslt30Processor.h:29
char ** createCharArray(int len)
Utility method for working with SaxonC on Python - internal use only.
Definition Xslt30Processor.h:216
SaxonProcessor * getSaxonProcessor()
Get the SaxonProcessor object.
Definition Xslt30Processor.h:61
void deleteXdmValueArray(XdmValue **arr, int len)
Utility method for Python API - internal use only.
Definition Xslt30Processor.h:224
An XsltExecutable represents the compiled form of a stylesheet.
Definition XsltExecutable.h:30