PHP API for Saxon/C
PHP API for Saxon/C 0.3.1. For the PHP API for the latest release please see PHP
API.
- SaxonProcessor() - Constructor
- SaxonProcessor(string $cwd) - Constructor to set the cwd
- XdmValue createXdmValue($value) - Create an XdmValue object. Value can be a boolean, int or string type
- void setSourceValue(XdmValue $value) - The source used for a query or stylesheet. Requires an XdmValue object
- void setSourceFile(string $filename) - The source used for query or stylesheet. Requires a file name as string
- XdmValue parseString(string $str) - Create an Xdm node value from string
- XdmValue parseFile(string $filename) - Create an Xdm node value from file
- void setParameter(string $name, XdmValue $value) - Set the parameters required for XSLT stylesheet
- void setProperty(string $name, string $value) - Set properties for Query or stylesheet.
- void clearParameters()
- void clearProperties()
- void setStylesheetContent(string $str) - Stylesheet supplied as string
- void setStylesheetFile(string $filename) - Stylesheet suplied as a file
- void setQueryContent(string $str) - query supplied as a string
- void setQueryFile(string $filename) - query supplied as a file
- void transformToFile(string $outfilename) - compile and execute the stylesheet. Save the result to file
- string transformToString() - compile and execute the stylesheet. Result returned as string. If there are failures
then a null is returned
- XdmValue transformToValue() - compile and execute the stylesheet. Result returned as an XdmValue object. If there
are failures then a null is returned
- void queryToFile(string $outfilename) - compile and evaluate the query. Save the result to file
- XdmValue queryToValue() - compile and evaluate the query. Result returned as an XdmValue object. If there
are failures then a null is returned
- string queryToString() - compile and evaluate the query. Result returned as string. If there are failures
then a null is returned
- void exceptionClear() - close the Resources used by Saxon/C, such as the JVM. This can only be done once
in a process.
void close() - has been dropped from Saxon/C version 0.3.1
- string getErrorCode(int $i) - Get the ith error code if there are any errors
- string getErrorMessage(int $i) - Get the ith error message if there are any error
- int getExceptionCount() - Get number of error during execution or evaluate of stylesheet and query, respectively
- string version() - Report the java Saxon-HE version
28 June 2014