[xslt] namespace bug ?



Hi

I had a little problem with namespaces when I updated from
libxslt 1.0.31,libxml2-2.5.8 to
libxslt 1.0.33, libxml2-2.5.11

I made a little Testcase the showes the difference:


XSLT:
======


<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 xmlns:exsl="http://exslt.org/common";
xmlns="http://asdf";
xmlns:test="http://asdf";
 extension-element-prefixes="exsl" exclude-result-prefixes="exsl test"
>
<xsl:output method="xml" encoding="utf-8" indent="yes"/>

<xsl:template match="/">
<testcase>
<!-- behaviour changed -->
<notworking>
        <xsl:copy-of select="exsl:node-set(document('test.xml'))/a"/>
</notworking>
<workaround>
        <xsl:copy-of select="exsl:node-set(document('test.xml'))/test:a"/>
</workaround>
</testcase>
</xsl:template>


</xsl:stylesheet>


XML:
=====
<a xmlns="http://asdf";>
<c/>
</a>


Please have a look at this.

Bernhard Zwischenbrugger
http://datenkueche.com

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/




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