bsuh / node_xslt

a simple XSLT addon for node
zlib License
71 stars 17 forks source link

XSLT Extension doesn't work #10

Closed kartharer closed 12 years ago

kartharer commented 12 years ago

Thanks a lot for this module!

If I try to run a transformation with extension function (like exslt) I get an error. The same transformation under the same environment with xsltproc works fine. Tested under opensuse 13 with libxml 20703, libxslt 10124 and libexslt 813 and OSX with libxml 20703, libxslt 10124 and libexslt 813.

Sample:

https://gist.github.com/2932529/afea22cb529b2ead8843fd711b9194442f241a63 should produce:

<?xml version="1.0"?>

2

Is there any way to deal with it?

bsuh commented 12 years ago

I will look into it. How much of EXSLT do you need? It seems like libxslt supports most of EXSLT, but not all. I just probably have to enable EXSLT support.

kartharer commented 12 years ago

Thanks for your immediate response.

I have to deal a lot with exslt:node-set to use variables as node-trees. With XSLT 1 there is no other way to pass variables as node-trees thru templates.

bsuh commented 12 years ago

Looks like libxslt provides some EXSLT functions through its own namespace.

This XSLT works for me. https://gist.github.com/2932529