I found out today that XPath 3.1 supports JSON, which is rather interesting as it may make Symphony be able to consume and produce JSON documents fair more elegantly than what it currently does.

As always, libxml/libxslt seem to be off the pace, and don't support this yet. Saxon however, does offer support for XPath 3.1 and what I didn't know is that appears like it's available for PHP.

I really have no idea how much effort would be involved in supporting Saxon, but I thought I'd share anyway incase others wanted to dive in!

Mmm, just an update that I tried to get Saxon going locally and failed. My knowledge of building C and extensions for PHP is weak, so it's probably where I came unstuck!

I managed to get the module built, and my phpinfo showing that Saxon is available, but as soon as I run the command I'd get an error in my apache error log which is strange as the file definitely exists at that path.

Unable to load /usr/local/lib/libsaxonhec.dylib
Error: : No such file or directory

Might be something to do with my strange PHP setup (Homebrew/with custom vhosts on MacOSX).

Might be something to do with my strange PHP setup (Homebrew/with custom vhosts on MacOSX).

I have a Dockerfile for compiling a minimal PHP version from source in a Docker container. Maybe that could server as a starting point for further experiments.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details