[xslt] Patch: Incorrect validation on template pre-processing



Apparently the latest revision (1.111) of xslt.c incorrectly reports duplicate
template names by failing to compare their namespace uri.

http://cvs.gnome.org/viewcvs/libxslt/libxslt/xslt.c?r1=1.110&r2=1.111

The attached patch resolves it and included is a test case.

C:\>xsltproc --version
Using libxml 20616CVS2257, libxslt 10112CVS964 and libexslt 810CVS964
xsltproc was compiled against libxml 20616, libxslt 10112 and libexslt 810
libxslt 10112 was compiled against libxml 20616
libexslt 810 was compiled against libxml 20616

<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>

Attachment: xslt.diff
Description: xslt.diff



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