Skip to content

Instantly share code, notes, and snippets.

@bzerangue
Last active March 9, 2018 02:01
Show Gist options
  • Save bzerangue/34bd7203d8ebec73ef4d0954807a5957 to your computer and use it in GitHub Desktop.
Save bzerangue/34bd7203d8ebec73ef4d0954807a5957 to your computer and use it in GitHub Desktop.
Saxon C PHP Examples for Saxon/C 1.1.0 for ServerPilot

REPLACE your YOURSERVERPILOTUSER with your username for the app. AND also, REPLACE APPNAME with your app name.

sudo cp -R /usr/local/Saxonica/Saxon-HEC1.1.0/samples /srv/users/YOURSERVERPILOTUSER/apps/APPNAME/public/php
sudo chown -R YOURSERVERPILOTUSER:YOURSERVERPILOTUSER /srv/users/YOURSERVERPILOTUSER/apps/APPNAME/public/php
Find the following file in the PHP folder, xsltExamples.php

If lines 51 and 52 are still hardcoded to an absolute path (that does not exist on your system), Replace xsltExamples.php with the following https://gist.github.com/bzerangue/db9580217dc580466a555ceb8fa18ff3

in the PHP folder, open up the following files in your browser...
  • php/xsltExamples.php
  • php/xpathExamples.php
  • php/xqueryExamples.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment