Re: [xml] Re: maybe_offtopic: help with using exslt functions



On Wed, Sep 28, 2005 at 08:32:41PM +0200, Stefan Kost wrote:
Can anyone point me to an example as a proof of concept?

xsltproc --dumpextensions
$ xsltproc --dumpextensions | grep strings
{http://exslt.org/strings}concat
{http://exslt.org/strings}tokenize
{http://exslt.org/strings}encode-uri
{http://exslt.org/strings}padding
{http://exslt.org/strings}split
{http://exslt.org/strings}decode-uri
{http://exslt.org/strings}align

so it seems to be available. Thus I dropped the include with the custom
implementation.

What makes you think so? From the log you posted:
| Registering extension prefix str : http://exslt.org/Strings

You could always spell the namespace correctly.

That came from the inlcude. I named it
xmlns:str="http://exstl.org/strings";

unfortunately still no success here :(

  there is a number of examples on how to use them in the regression tests
suite:

  paphio:~/XSLT -> ls tests/exslt/strings/
  CVS/         split.1.out  tokenize.1.out  tokenize.2.xml  tokenize.3.xsl
  Makefile     split.1.xml  tokenize.1.xml  tokenize.2.xsl
  Makefile.am  split.1.xsl  tokenize.1.xsl  tokenize.3.out
  Makefile.in  tca.log      tokenize.2.out  tokenize.3.xml
  paphio:~/XSLT ->

as they are part of the test suite they are garanteed to work.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]