13#include "saxonc_export.h"
14#include "saxonc/SaxonProcessor.h"
15#include "saxonc/XsdSchema.h"
33 friend class XsltExecutable;
73 void setcwd(
const char *cwd);
118 bool isSchemaAware();
275 void transformFileToFile(
const char *sourcefile,
const char *stylesheetfile,
276 const char *outputfile);
289 const char *transformFileToString(
const char *sourcefile,
290 const char *stylesheetfile);
301 XdmValue *transformFileToValue(
const char *sourcefile,
302 const char *stylesheetfile);
313 void importPackage(
const char *packageFile);
344 const char *encoding =
nullptr);
358 XsltExecutable *compileFromAssociatedFile(
const char *sourceFile);
368 void compileFromStringAndSave(
const char *stylesheet,
const char *filename,
369 const char *encoding =
nullptr);
378 void compileFromFileAndSave(
const char *xslFilename,
const char *filename);
387 void compileFromXdmNodeAndSave(
XdmNode *node,
const char *filename);
414 void setProperty(
const char *name,
const char *value);
420 std::map<std::string, std::string> &getProperties();
425 void clearProperties();
429 int64_t cppXT, procRef;
430 int64_t importPackageValue, schemaRef;
433 std::map<std::string, XdmValue *>
436 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: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
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:25
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:137
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:33
Definition XsdSchema.h:26
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition Xslt30Processor.cpp:217
const char * getcwd()
Get the current working directory (cwd).
Definition Xslt30Processor.cpp:228
bool removeParameter(const char *name)
Remove a parameter (name, value) pair from a stylesheet.
Definition Xslt30Processor.cpp:158
char ** createCharArray(int len)
Utility method for working with SaxonC on Python - internal use only.
Definition Xslt30Processor.h:254
SaxonProcessor * getSaxonProcessor()
Get the SaxonProcessor object.
Definition Xslt30Processor.cpp:232
Xslt30Processor()
Default constructor.
Definition Xslt30Processor.cpp:21
void setcwd(const char *cwd)
Set the current working directory (cwd).
Definition Xslt30Processor.cpp:222
void setSchemaAware(bool schemaAware)
Say that the stylesheet must be compiled to be schema-aware, even if it contains no xsl:import-schema...
Definition Xslt30Processor.cpp:255
void setTargetEdition(const char *edition)
Set the target edition under which the stylesheet will be executed.
Definition Xslt30Processor.cpp:193
void setXsltLanguageVersion(const char *version)
Set the XSLT (and XPath) language level to be supported by the processor.
Definition Xslt30Processor.cpp:187
void clearParameters(bool deleteValues=false)
Clear stylesheet parameter values set.
Definition Xslt30Processor.cpp:199
void deleteXdmValueArray(XdmValue **arr, int len)
Utility method for Python API - internal use only.
Definition Xslt30Processor.h:262
bool getJustInTimeCompilation()
Get the status of the just-in-time compilation flag.
Definition Xslt30Processor.cpp:166
void useSchema(XsdSchema *schema, const char *role="")
Set the XsdSchema to be used with this Xslt30Processor.
Definition Xslt30Processor.cpp:242
void setFastCompilation(bool fast)
Request fast compilation.
Definition Xslt30Processor.cpp:171
void setBaseOutputURI(const char *baseURI)
Set the base output URI.
Definition Xslt30Processor.cpp:130
void setJustInTimeCompilation(bool jit)
Say whether just-in-time compilation of template rules should be used.
Definition Xslt30Processor.cpp:162
void setRelocatable(bool relocatable)
Indicate that packages compiled by this processor are deployable to a different location.
Definition Xslt30Processor.cpp:179
An XsltExecutable represents the compiled form of a stylesheet.
Definition XsltExecutable.h:30