12 #include "SaxonProcessor.h"
66 void setcwd(
const char* cwd);
159 return (
new char*[len]);
169 for(
int i =0; i< len; i++) {
185 void transformFileToFile(
const char* sourcefile,
const char* stylesheetfile,
const char* outputfile);
332 void createException(
const char * message=
nullptr);
343 void setProperty(
const char* name,
const char* value);
353 std::map<std::string,XdmValue*> parameters;
354 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: XdmValue.h:50
Definition: Xslt30Processor.h:26
XdmValue * getParameter(const char *name)
Definition: Xslt30Processor.cpp:150
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition: Xslt30Processor.cpp:188
bool removeParameter(const char *name)
Definition: Xslt30Processor.cpp:158
XdmValue ** createXdmValueArray(int len)
Definition: Xslt30Processor.h:151
XsltExecutable * compileFromString(const char *stylesheet)
compile a stylesheet received as a string.
Definition: Xslt30Processor.cpp:322
bool exceptionOccurred()
Definition: Xslt30Processor.cpp:119
Xslt30Processor()
Default constructor.
Definition: Xslt30Processor.cpp:21
void transformFileToFile(const char *sourcefile, const char *stylesheetfile, const char *outputfile)
Perform a one shot transformation.
Definition: Xslt30Processor.cpp:624
SaxonProcessor * getSaxonProcessor()
Get the SaxonProcessor object.
Definition: Xslt30Processor.h:57
SaxonApiException * getException()
Get the SaxonApiException object created when we have an error.
Definition: Xslt30Processor.cpp:209
XsltExecutable * compileFromFile(const char *stylesheet)
compile a stylesheet file.
Definition: Xslt30Processor.cpp:456
void setcwd(const char *cwd)
set the current working directory (cwd).
Definition: Xslt30Processor.cpp:203
const char * transformFileToString(const char *sourcefile, const char *stylesheetfile)
Perform a one shot transformation.
Definition: Xslt30Processor.cpp:673
void compileFromXdmNodeAndSave(XdmNode *node, const char *filename)
compile a stylesheet received as an XdmNode.
Definition: Xslt30Processor.cpp:228
void compileFromStringAndSave(const char *stylesheet, const char *filename)
compile a stylesheet received as a string and save to an exported file (SEF).
Definition: Xslt30Processor.cpp:259
void setParameter(const char *name, XdmValue *value)
Set the value of a stylesheet parameter.
Definition: Xslt30Processor.cpp:135
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition: Xslt30Processor.cpp:167
void deleteXdmValueArray(XdmValue **arr, int len)
Utility method for Python API - internal use only.
Definition: Xslt30Processor.h:168
const char * getErrorMessage()
Get the error message if there are any error.
Definition: Xslt30Processor.cpp:743
char ** createCharArray(int len)
Definition: Xslt30Processor.h:158
XdmValue * transformFileToValue(const char *sourcefile, const char *stylesheetfile)
Definition: Xslt30Processor.cpp:513
void setBaseOutputURI(const char *baseURI)
Set the base output URI.
Definition: Xslt30Processor.cpp:128
void setJustInTimeCompilation(bool jit)
Say whether just-in-time compilation of template rules should be used.
Definition: Xslt30Processor.cpp:162
void compileFromFileAndSave(const char *xslFilename, const char *filename)
compile a stylesheet received as a file and save to an exported file (SEF).
Definition: Xslt30Processor.cpp:293
XsltExecutable * compileFromXdmNode(XdmNode *node)
compile a stylesheet received as an XdmNode.
Definition: Xslt30Processor.cpp:364
const char * getErrorCode()
Get the ith error code if there are any error.
Definition: Xslt30Processor.cpp:123
XsltExecutable * compileFromAssociatedFile(const char *sourceFile)
Get the stylesheet associated.
Definition: Xslt30Processor.cpp:408
void exceptionClear()
Clear any exception thrown.
Definition: Xslt30Processor.cpp:194
Definition: XsltExecutable.h:30
void clearProperties()
Clear property values set.
Definition: XsltExecutable.cpp:430
void setProperty(const char *name, const char *value)
Definition: XsltExecutable.cpp:385