bulia byak wrote:
On 4/22/05, Bryce Harrington <bryce@...260...> wrote:
ive just written a simple xslt stylesheet to do the job, you can find it here: http://www.treebuilder.de/svg/ill2svg.xslt
Can someone please remind me on the status of our XSLT support? I thought we were going to embed it, or was it only XPath? Anyway, it would be nice to have this and other XSLT filters as extensions _without_ requiring a user to install a separate XSLT processor (at least on windows, since linuxes usually have xsltproc). (Yeah, I know, I just wrote the same about Python, but actually the reasoning is the same here, and there are many XML-processing tasks that XSLT makes infinitely easier than any other language.)
It is separate from XPath... We implemented an XSLTStream many weeks ago, and it works well. Actually, libxslt does all of the work, so there is not much code necessary to use it. Anyone can use it in their code. We were delaying providing a separate dialog for it (which selects 3 files) until gtkmm-ification was further progressed. There is a test for it in the directory.
Look in the /io directory at streamtest.cpp, xsltstream.cpp, crystalegg.xml, and doc2html.xsl.
You can also look at Jon's code for saving the repr tree as one of the streams. That stream can be piped to xsltstream.
Bob