bsuh / node_xslt

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

Cannot install on node 0.10 #16

Open jwulf opened 11 years ago

jwulf commented 11 years ago

node-waf has been dropped in favor of node-gyp

RobeeeJay commented 11 years ago

I think it needs more than converting the waf build to gyp, I managed to create a simple bindings.gyp file but it still causes an error when launching a node app that uses it, even after building okay. :(

RobeeeJay commented 11 years ago

I created a new repo called libxsltjs (name inspired by libxmljs which I also use a lot) and begun implementing some of the xslt functions. It works the same way as node_xslt, but currently only supports the 3 functions I use:

readXmlString readXsltString transform

https://github.com/RobeeeJay/libxsltjs

If you use the four I've left out, let me know which ones and I'll look at adding them. Though really, I probably only need to actually add readHtmlString, since the rest could be worked around.

jwulf commented 11 years ago

I'm using node_xslt.readXsltFile to load in the Docbook stylesheets. They are modular and use a lot of imports.

Reading the base xslt stylesheet into a string and then using libxsltjs.readXsltString, I get:

I/O warning : failed to load external entity "defaults.xsl" compilation error: element include xsl:include : unable to load defaults.xsl I/O warning : failed to load external entity "xhtml-common.xsl" compilation error: element include xsl:include : unable to load xhtml-common.xsl

Any ideas?