+Wed Dec 1 14:30:22 HKT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/xslt.c: applied patch from Mark Vakoc fixing bug with
+ namespace URI on template names.
+ * tests/namespaces/tst9*, tests/namespaces/Makefile.am: added
+ test case for this
+
Tue Nov 30 10:53:18 HKT 2004 William Brack <wbrack@mmm.com.hk>
* libxslt/pattern.c: more on RVT's in XPath predicates, this
ret->nameURI = NULL;
cur = ret->next;
while (cur != NULL) {
- if (xmlStrEqual(cur->name, prop)) {
+ if ((URI != NULL && xmlStrEqual(cur->name, prop) &&
+ xmlStrEqual(cur->nameURI, URI) ) ||
+ (URI == NULL && cur->nameURI == NULL &&
+ xmlStrEqual(cur->name, prop))) {
xsltTransformError(NULL, style, template,
"xsl:template: error duplicate name '%s'\n", prop);
style->errors++;
tst5.xml tst5.xsl tst5.out \
tst6.xml tst6.xsl tst6.out \
tst7.xml tst7.xsl tst7.out \
- tst8.xml tst8.xsl tst8.out
+ tst8.xml tst8.xsl tst8.out \
+ tst9.xml tst9.xsl tst9.out
all:
--- /dev/null
+<?xml version="1.0"?>
+
+
+
+
+
+
+
--- /dev/null
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ns="namespace"
+>
+
+<xsl:template name="test"/>
+
+<xsl:template name="ns:test"/>
+
+</xsl:stylesheet>
+
+
--- /dev/null
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ns="namespace"
+>
+
+<xsl:template name="test"/>
+
+<xsl:template name="ns:test"/>
+
+</xsl:stylesheet>
+
+