3
votes

The Saxon/C documentation begins by saying;

Saxon/C is currently on beta release: offering the Saxon-HE product for the C/C++ programming platform. APIs are offered currently to run XSLT 2.0 and XQuery 1.0 from C/C++ or PHP applications.

which implies that Saxon/C can be used to execute an XQuery from PHP, but can it? There is Saxon/C documentation about XSLT, but not XQuery.

Can Saxon/C be used to run an XQuery from PHP and if so, is there any documentation?

Edit: I'm running the Windows version of Saxon/C.

1
saxonica.com/saxon-c/doc/html/classSaxonProcessor.html suggests the C++ API has both a method to create a newTransformer as well as a newXQueryProcessor. Whether both features are as well exposed to PHP I don't know. - Martin Honnen

1 Answers

1
votes

The PHP API documentation on Saxon/C has what you need:

http://www.saxonica.com/saxon-c/php_api.xml

Also check out the examples in the samples directory in the download zip file. See the file xqueryExamples.php