#11 Element notified in wrong namespace

closed-fixed
5
2004-07-11
2002-07-11
Michael Kay
No

With the following document, the ContentHandler
startElement call for element mask-test incorrectly
reports the namespace URI as being default-uri, a
namespace that is not even in scope for this element.

<?xml version="1.0"?>

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>

<!-- PURPOSE: Test namespace nodes -->

<!-- Note, this test is now superseded by nspc12-17
which break it up into parts,
for ease of analysing the results -->

<xsl:output indent="yes"/>
<xsl:template match="/">
<out>
<copy-of-test>
<xsl:copy-of select="."/>
</copy-of-test>
<copy-test>
<xsl:for-each select="/*/*">
<xsl:copy>CC</xsl:copy>
</xsl:for-each>
</copy-test>
<copy-test>
<xsl:for-each select="/*/*/*">
<xsl:copy>PP</xsl:copy>
</xsl:for-each>
</copy-test>
<lre-test>
<doc xmlns:z="z.uri" xmlns="default.uri">
<chap xmlns:z="new-z.uri" xmlns="chap-
default.uri">
<para xmlns=""/>
</chap>
</doc>
</lre-test>
<mask-test>
<xsl:for-each select="//c:chap/namespace::*"
xmlns:c="chap-default.uri">
<xsl:value-of select="name()"/> = <xsl:value-of
select="."/>;
</xsl:for-each>
</mask-test>
<mask-test>
<xsl:for-each select="//para/namespace::node()" >
<xsl:value-of select="name()"/> = <xsl:value-of
select="."/>;
</xsl:for-each>
</mask-test>
</out>
</xsl:template>

</xsl:stylesheet>

Michael Kay

Discussion

  • Yuval Oren

    Yuval Oren - 2004-07-11
    • assigned_to: nobody --> yuvalo
    • status: open --> closed-fixed
     
  • Yuval Oren

    Yuval Oren - 2004-07-11

    Logged In: YES
    user_id=479054

    This bug has been fixed in the latest release. If you find it's
    still a problem, please re-open or submit a new bug.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks