DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5340>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5340

xsltc does not generate correct ouput for namespace72

           Summary: xsltc does not generate correct ouput for namespace72
           Product: XalanJ2
           Version: 2.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


MORTEN: This test still fails, and I don't think we have a bug that
covers it. This is slightly different from namespace105 and I think we
should file a new bug.

TOM: Here's the bug.

Running xalan on namespace72
<?xml version="1.0" encoding="UTF-8"?>
<out><foo xmlns="zebie"><yyy xmlns=""/></foo></out>

Running XSLTC with Xerces Parser on namespace72
<?xml version="1.0" encoding="UTF-8" ?>
<out><foo xmlns="zebie"><yyy/></foo></out>

namespace72.xsl
---------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

  <!-- FileName: namespace72 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 7.1.2 Creating Elements -->
  <!-- Creator: David Marston -->
  <!-- Purpose: Put both an unprefixed xmlns declaration and namespace attrib in
xsl:element. -->

<xsl:template match = "/">
  <out>
    <xsl:element name="foo" namespace="zebie" xmlns="">
      <yyy/>
    </xsl:element>
  </out>
</xsl:template>

</xsl:stylesheet>

namespace72.xml
---------------
<?xml version="1.0"?>
<doc>x</doc>

Reply via email to