+Thu Nov 20 10:59:48 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/keys.c: fixed an error from #120684 patch raised in
+ #127450
+ * tests/docs/Makefile.am tests/docs/bug-134.xml
+ tests/general/Makefile.am tests/docs/bug-134*: added tests
+ to the regression suite for bug #127450.
+
Thu Nov 20 00:22:14 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/keys.c: fixed a bug in the keys selector parsing
#120684 when | is in a predicate or a string.
- * tests/docs/Makefile.am tests/docs/bug-132.xml
- tests/general/Makefile.am tests/docs/bug-132*: added tests
+ * tests/docs/Makefile.am tests/docs/bug-133.xml
+ tests/general/Makefile.am tests/docs/bug-133*: added tests
to the regression suite for bug #120684.
* Makefile.am: don't package cvs temp files
* doc/apibuild.py: update from libxml2 one
xsltTransformError(NULL, style, inst,
"key pattern is malformed: %s",
key->match);
- }
- end++;
+ } else
+ end++;
}
if (current == end) {
xsltTransformError(NULL, style, inst,
bug-131.out bug-131.xsl bug-131-imp.imp \
bug-132.out bug-132.xsl \
bug-133.out bug-133.xsl \
+ bug-134.out bug-134.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
--- /dev/null
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:key name="test" match="node()[self::sect][h1|h2]" use="'test'" />
+
+<xsl:template match="/">
+ <result>
+ <xsl:value-of select="count(key('test','test'))" />
+ </result>
+</xsl:template>
+
+</xsl:stylesheet>