10#ifndef SAXON_XSLT_EXEC_H
11#define SAXON_XSLT_EXEC_H
13#include "SaxonProcessor.h"
43 void setcwd(
const char *cwd);
178 void setProperty(
const char *name,
const char *value);
430 int argument_length,
const char *outfile);
445 int argument_length);
460 int argument_length);
548 std::string resources);
563 int64_t procRef, executableRef, selectionRef, saxonMessageListenerRef,
565 bool selectionStringFlag;
569 std::string resources_dir;
570 bool tunnel, jitCompilation, rawResultsFlag, exceptionFound;
571 std::map<std::string, XdmValue *>
574 std::map<std::string, std::string>
577 std::map<std::string, XdmValue *> resultDocumentMap;
Definition SaxonApiException.h:23
Definition SaxonProcessor.h:117
Definition XdmFunctionItem.h:25
Definition Xslt30Processor.h:28
Definition XsltExecutable.h:29
XdmValue * applyTemplatesReturningValue()
Definition XsltExecutable.cpp:514
const char * callFunctionReturningString(const char *functionName, XdmValue **arguments, int argument_length)
Call a public user-defined function in the compiled stylesheet.
Definition XsltExecutable.cpp:626
void setInitialMatchSelectionAsFile(const char *filename)
Definition XsltExecutable.cpp:126
const char * transformFileToString(const char *sourcefile)
Perform a one shot transformation.
Definition XsltExecutable.cpp:1084
void exportStylesheet(const char *filename)
Produce a representation of the compiled stylesheet.
Definition XsltExecutable.cpp:390
XdmValue * getParameter(const char *name, bool withParam=true)
Definition XsltExecutable.cpp:283
const char * transformToString(XdmNode *source=nullptr)
Execute transformation to string. Properties supplied in advance.
Definition XsltExecutable.cpp:1141
void setCaptureResultDocuments(bool flag, bool rawResults=false)
Definition XsltExecutable.cpp:212
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition XsltExecutable.cpp:341
void transformToFile(XdmNode *source=nullptr)
Execute transformation to file. Properties supplied in advance.
Definition XsltExecutable.cpp:1157
void applyTemplatesReturningFile(const char *outfile)
Definition XsltExecutable.cpp:400
const char * callTemplateReturningString(const char *templateName=nullptr)
Definition XsltExecutable.cpp:800
XdmValue ** createXdmValueArray(int len)
Definition XsltExecutable.h:253
const char * getProperty(const char *name)
Definition XsltExecutable.cpp:332
SaxonApiException * getException()
Check for exception thrown and return the SaxonApiException object.
Definition XsltExecutable.cpp:1165
XdmValue * callFunctionReturningValue(const char *functionName, XdmValue **arguments, int argument_length)
Call a public user-defined function in the already compiled stylesheet.
Definition XsltExecutable.cpp:688
void clearProperties()
Clear property values set.
Definition XsltExecutable.cpp:359
void setInitialMatchSelection(XdmValue *selection)
Definition XsltExecutable.cpp:117
void exceptionClear()
Clear any exception thrown.
Definition XsltExecutable.cpp:379
bool removeParameter(const char *name)
Definition XsltExecutable.cpp:296
void setSaveXslMessage(bool show, const char *filename=nullptr)
Definition XsltExecutable.cpp:1011
void setGlobalContextFromFile(const char *filename)
Definition XsltExecutable.cpp:111
void setProperty(const char *name, const char *value)
Definition XsltExecutable.cpp:315
XsltExecutable * clone()
Create a clone object of this XsltExecutable object.
Definition XsltExecutable.cpp:310
XdmValue * transformToValue(XdmNode *source=nullptr)
Execute transformation to Xdm Value. Properties supplied in advance.
Definition XsltExecutable.cpp:1149
void setResultAsRawValue(bool option)
Definition XsltExecutable.cpp:300
const char * applyTemplatesReturningString()
Definition XsltExecutable.cpp:458
void setParameter(const char *name, XdmValue *value)
Definition XsltExecutable.cpp:168
std::map< std::string, XdmValue * > & getResultDocuments()
Definition XsltExecutable.cpp:244
void setcwd(const char *cwd)
set the current working directory (cwd). This method also applies to the
Definition XsltExecutable.cpp:384
XdmValue * getXslMessages()
Definition XsltExecutable.cpp:1046
void callTemplateReturningFile(const char *templateName, const char *outfile)
Definition XsltExecutable.cpp:751
XdmValue * transformFileToValue(const char *sourcefile)
Definition XsltExecutable.cpp:898
void transformFileToFile(const char *sourcefile, const char *outputfile)
Perform a one shot transformation.
Definition XsltExecutable.cpp:956
const char * getErrorMessage()
Get the first error message if there are any errors.
Definition XsltExecutable.cpp:1167
void setBaseOutputURI(const char *baseURI)
Set the base output URI.
Definition XsltExecutable.cpp:156
XdmValue * callTemplateReturningValue(const char *templateName=nullptr)
Definition XsltExecutable.cpp:847
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition XsltExecutable.cpp:374
void setOutputFile(const char *outfile)
Definition XsltExecutable.cpp:152
void setInitialMode(const char *modeName)
Set the initial mode for the transformation.
Definition XsltExecutable.cpp:162
char ** createCharArray(int len)
Definition XsltExecutable.h:258
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition XsltExecutable.cpp:369
void callFunctionReturningFile(const char *functionName, XdmValue **arguments, int argument_length, const char *outfile)
Call a public user-defined function in the already compiled stylesheet.
Definition XsltExecutable.cpp:565
void setGlobalContextItem(XdmItem *value)
Definition XsltExecutable.cpp:105
bool exceptionOccurred()
Definition XsltExecutable.cpp:103
void deleteXdmValueArray(XdmValue **arr, int len)
Utility method for Python API - internal use only.
Definition XsltExecutable.cpp:97
void clearXslMessages()
Definition XsltExecutable.cpp:1076
void setInitialTemplateParameters(std::map< std::string, XdmValue * > parameters, bool tunnel)
Definition XsltExecutable.cpp:197
bool removeProperty(const char *name)
Definition XsltExecutable.cpp:328