osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: exslt extension func:script - msg#00062

List: gnome.lib.xslt

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index


Hello,

I would like to use this extension of exslt with libxslt, how can I do
it?

I am currently using a apache module mod_xslt with libxslt and libxml2
in a FreeBSD 4.5. Daniel Veillard, at the w3 xsl mailing list, already
suggested a way of doing this, building the module declaring some
headers of exslt and registering it (see below). But the exslt functions
doesn't seem to work as expected -- I must have done something wrong.

Also, I would like to link a script written in php (and other languages
different from java and js), again, how can I do it?

And for everybody envolved in the development, I congratulate you,
that's a very nice xslt processor.

Thanks,

Guilherme Capilé
________________________________
the suggestion mentioned:

> Well along with libxslt you have libexslt which is bundled with
libxslt
>sources and distributions.
>You can register EXSLT within your module with:
>
>#include <libexslt/exslt.h>
>#include <libexslt/exsltconfig.h>
>
> /* somewhere in the module init code */
> exsltRegisterAll();
>
>And don't forget to add the dependancy inb the libexslt shared lib.


Thread at a glance:

Previous Message by Date:

Re: Bug with the document("") function

On Wed, 2002-06-19 at 15:36, Daniel Veillard wrote: > > From libxml2 you can use > > void xmlNodeSetBase(xmlNodePtr cur, xmlChar* uri); > > on the document node or one of the elements if you really want to > update the base per RFC-2396 (and possibly the XML base REC). Seems perfect then! Thanks Eric > > Daniel > > -- > Daniel Veillard | Red Hat Network https://rhn.redhat.com/ > veillard@xxxxxxxxxx | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ > http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ > _______________________________________________ > xslt mailing list, project page http://xmlsoft.org/XSLT/ > xslt@xxxxxxxxx > http://mail.gnome.org/mailman/listinfo/xslt > > -- See you in San Diego. http://conferences.oreillynet.com/os2002/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com (W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema ------------------------------------------------------------------------

Next Message by Date:

xsltproc with docbook 1.51.1 dumps core

Hello, cassis:~$ xsltproc --nonet -o plouf /usr/local/share/sgml/docbook/docbook-xsl-1.51.1/html/chunk.xsl /home/asl/cvs/work/doc/../../grmpf/doc/gphoto2.xml Writing ch01.html for chapter(quickstart) Writing ch02s02.html for section Writing ch02s03.html for section Writing ch02s04.html for section Writing ch02.html for chapter(setup) Error Undefined namespace prefix xmlXPathCompiledEval: evaluation failed Erreur de segmentation (core dumped) It works with 1.50.0: cassis:~$ xsltproc --nonet -o plouf /usr/local/share/sgml/docbook/docbook-xsl-1.50.0/html/chunk.xsl /home/asl/cvs/work/doc/../../grmpf/doc/gphoto2.xml Writing ch01.html for chapter(quickstart) Writing ch02s02.html for section Writing ch02s03.html for section Writing ch02s04.html for section Writing ch02.html for chapter(setup) Writing ch03s02.html for section Writing ch03s03.html for section Writing ch03s04.html for section Writing ch03.html for chapter Writing ch04s02.html for section Writing ch04.html for chapter Writing rn01re01.html for refentry(gphoto2-cli) Writing rn01re02.html for refentry(libgphoto2) Writing rn01re03.html for refentry(libgphoto2_port) Writing rn01.html for reference Writing apa.html for appendix Writing index.html for book What may I do ? (I don't care using 1.50.0, it's just for not having xsltproc core dumping). Arnaud. -- - Comme il devait être pris en charge au plus vite par un asile d'aliénés, il a été conduit à la gendarmerie.

Previous Message by Thread:

Bug with the document("") function

Hi, I have found a bug in 4xslt and it looks like 50% of this bug is also affecting libxslt :-) Here is the part which is common to both processors: <quote> 2) The whitespaces have been striped which is not conform to the XSLT recommendation that says: Note that a zero-length URI reference is a reference to the document relative to which the URI reference is being resolved; thus document("") refers to the root node of the stylesheet; the tree representation of the stylesheet is exactly the same as if the XML document containing the stylesheet was the initial source document. (here the tree is not "exactly the same as if the XML document containing the stylesheet was the initial source document"). I think that this has been discussed on the xsl-list and that the conclusion was that processors might need to parse the stylesheet again when document("") is used. If I remember correctly, Mike Kay said that there is no performance gain in using document("") over an external document since the stylesheet was being reparsed anyway. </quote> A simple test case to show this is: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vdv="http://eric.van-der-vlist.com/tmpns" version="1.0"> <xsl:template match="/"> <xsl:copy-of select="document('')/xsl:transform"/> </xsl:template> </xsl:transform> which gives: <?xml version="1.0"?> <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vdv="http://eric.van-der-vlist.com/tmpns" version="1.0"><xsl:template match="/"><xsl:copy-of select="document('')/xsl:transform"/></xsl:template></xsl:transform> instead of: <?xml version="1.0" encoding="utf-8"?><xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vdv="http://eric.van-der-vlist.com/tmpns" version="1.0"> <xsl:template match="/"> <xsl:copy-of select="document('')/xsl:transform"/> </xsl:template> </xsl:transform> (with Saxon for instance) I guess this won't be an issue in 99.99% of the cases but since it's a non conformance I have thought that it needed to be reported. Hope this helps. Eric -- See you in San Diego. http://conferences.oreillynet.com/os2002/ ------------------------------------------------------------------------ Eric van der Vlist http://xmlfr.org http://dyomedea.com http://xsltunit.org http://4xt.org http://examplotron.org ------------------------------------------------------------------------

Next Message by Thread:

xsltproc with docbook 1.51.1 dumps core

Hello, cassis:~$ xsltproc --nonet -o plouf /usr/local/share/sgml/docbook/docbook-xsl-1.51.1/html/chunk.xsl /home/asl/cvs/work/doc/../../grmpf/doc/gphoto2.xml Writing ch01.html for chapter(quickstart) Writing ch02s02.html for section Writing ch02s03.html for section Writing ch02s04.html for section Writing ch02.html for chapter(setup) Error Undefined namespace prefix xmlXPathCompiledEval: evaluation failed Erreur de segmentation (core dumped) It works with 1.50.0: cassis:~$ xsltproc --nonet -o plouf /usr/local/share/sgml/docbook/docbook-xsl-1.50.0/html/chunk.xsl /home/asl/cvs/work/doc/../../grmpf/doc/gphoto2.xml Writing ch01.html for chapter(quickstart) Writing ch02s02.html for section Writing ch02s03.html for section Writing ch02s04.html for section Writing ch02.html for chapter(setup) Writing ch03s02.html for section Writing ch03s03.html for section Writing ch03s04.html for section Writing ch03.html for chapter Writing ch04s02.html for section Writing ch04.html for chapter Writing rn01re01.html for refentry(gphoto2-cli) Writing rn01re02.html for refentry(libgphoto2) Writing rn01re03.html for refentry(libgphoto2_port) Writing rn01.html for reference Writing apa.html for appendix Writing index.html for book What may I do ? (I don't care using 1.50.0, it's just for not having xsltproc core dumping). Arnaud. -- - Comme il devait être pris en charge au plus vite par un asile d'aliénés, il a été conduit à la gendarmerie.
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!