what about a working example as part of the hwoto

Stefan Kost <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
hi,

the site looks like there as if there are lots of useful functions.
Still the how-to lack a full example. E.g. I tried to use the str:split
function from the str package and all I get is error messages:

$ xsltproc devhelp.xsl devhelp.xml
xmlXPathCompOpEval: function split not found
XPath error : Unregistered function
xmlXPathCompiledEval: 1 object left on the stack
<?xml version="1.0"?>
<test xmlns="http://www.devhelp.net/book"/>

I am using 
$ xsltproc --version
Using libxml 20620, libxslt 10114 and libexslt 812
xsltproc was compiled against libxml 20620, libxslt 10114 and libexslt
812
libxslt 10114 was compiled against libxml 20620
libexslt 812 was compiled against libxml 20620

I just unzipped the str.zip into the direcory where the attached
minimalistc example are located.

I appreciate any help

Stefan

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list
devhelp.xml (text/xml, 67 B)
<?xml version='1.0'?>
<book condition="since:2.2|deprecated:2.8"/>
devhelp.xsl (text/x-xslt, 586 B)
<?xml version='1.0'?>
<!--
  xsltproc devhelp.xsl devhelp.xml
-->
<xsl:stylesheet version='1.0'
                xmlns="http://www.devhelp.net/book"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:str="http://exstl.org/strings"
                extension-element-prefixes="str"
                exclude-result-prefixes="#default">

<xsl:import href="str.xsl"/>

<xsl:template match="book">
  <test>
    <xsl:for-each select="str:split('abd|def','|')">
      <xsl:value-of select="."/>
    </xsl:for-each>
  </test>
</xsl:template>

</xsl:stylesheet>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.