Re: [xslt] libxslt-1.0.1 is released



I am still puzzled about exsl:node-set.

Take this input:

<foo>
 <xptr doc="TUG">a</xptr>
 <xptr doc="TUG">a</xptr>
</foo>

and this stylesheet

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:exsl="http://exslt.org/common"
    extension-element-prefixes="exsl"
                version="1.0">
  <xsl:template match="/">
    <xsl:variable name="x">
      <hello>bye</hello>
      <a><xsl:copy-of select=".//xptr"/></a>
   </xsl:variable>
   <xsl:message>
   [<xsl:value-of select="count(exsl:node-set($x)/a/*)"/>]</xsl:message>  
  </xsl:template>
</xsl:stylesheet>

I expect the answer [3], but xsltproc gives me [0]. Surely that isn't
right? Saxon, on the same input, gives [3].

If I add <xsl:copy-of select="exsl:node-set($x)"/>, I get back

 <fake><a xmlns:exsl="http://exslt.org/common"><hello>bye</hello><xptr
 doc="TUG">a</xptr><xptr doc="TUG">a</xptr></a></fake>

what is this <fake> element???? 

Perhaps someone has a working example of exsl:node-set in libxslt I
could look at?


sebastian

Using libxml 20401, libxslt 10001 and libexslt 200
xsltproc was compiled against libxml 20401, libxslt 10001 and libexslt 200
libxslt 10001 was compiled against libxml 20401
libexslt 200 was compiled against libxml 20401





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