[xslt] Different behavior of Key() betwen versions 1.1.7 and 1.1.11 of libxslt
- From: Stephane Mottelet <stephane mottelet utc fr>
- To: xslt gnome org
- Subject: [xslt] Different behavior of Key() betwen versions 1.1.7 and 1.1.11 of libxslt
- Date: Wed, 07 Sep 2005 17:31:35 +0200
Hi !
I have correctly working stylesheets under version 1.1.7 of libxslt
that are broken since I upgraded to 1.1.11. The construct is of the
type
<xsl:key name="point" match="point" use="@label"/>
<xsl:template match="drawpoint">
<xsl:for-each select="str:split(@ref,' ')">
<xsl:for-each select="key('point',.)">
(...)
</xsl:for-each>
</xsl:for-each>
</xsl:template>
and the xml to process contains elements such as
<point label="p1"/>
<point label="p2"/>
(...)
<drawpoints ref="p1 p2"/>
In the inner for-each loop I actually (with 1.1.11) get empty nodesets
returned by key('point',.), altough I got succesively the two <point/>
elements with 1.1.7.
Is it a known bug of 1.1.11 (I did not find it in the bug list).
S.
--
e-mail : Stephane Mottelet utc fr
www : http://www.dma.utc.fr/~mottelet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]