Forum OpenACS Q&A: nsxml 1.4 and xslt

Collapse
Posted by Dave Bauer on
I compiled nsxml 1.4 with xslt support and it built fine. But when I
try to use the xslt procs, aolserver says they do not exist. The
regular xml procs work just fine.

I have libxml2 and libxml2-dev installed. as well as libxslt1 and
libxslt1-dev.

libxslt is version 1.0.6
libxml is version 2.4.16

Has anyone else used the xslt procs sucessfully?

Collapse
Posted by Yon Derek on
Yes, I used them.

It's always good to provide exact error message.

If it says "unknown command" it means that that you didn't compile xslt support. 2 possibilities:

  • you didn't compile it correctly (i.e. DO_XSLT define is not set in the Makefile)
  • you did compile it but the version of nsxml.so that AolServer is using is not the one that you compiled
You can verify that you compiled xslt support by using nm nsxml.so (http://unixhelp.ed.ac.uk/CGI/man-cgi?nm and looking for e.g. symbol xml_apply_xslt. If it's there - you did compile it. If not - you didn't. Alternatively you can use gdb, set a breakpoint on xml_doc_command and step through the code.

Also double-check that AOLServer loads correct nsxml.so.