You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/20 21:17:09 UTC

DO NOT REPLY [Bug 4983] New: - xsltc applies default namespace to both output elements in conf test namespace105

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=4983>.
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=4983

xsltc applies default namespace to both output elements in conf test namespace105

           Summary: xsltc applies default namespace to both output elements
                    in conf test namespace105
           Product: XalanJ2
           Version: 2.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


According to Morten: 

XSLTC is incorrect while Xalan and Saxon are both correct. 
The element causing us hassle is: 

   <xsl:element namespace="" name="foo" xmlns="other.com">
      <yyy/>
   </xsl:element>

The namespace="" attribute sets the namespace for the output <foo> element to
the null namespace (empty URI), while the default
namespace - which should be applied to the <yyy> element - is set to
"other.com". XSLTC incorrectly applies the "other.com" to both the
output elements. 

Here's a little test session that shows what Xalan does and what XSLTC does:

Running xalan on namespace105
<?xml version="1.0" encoding="UTF-8"?>
<out xmlns="testguys.com"><foo xmlns=""><yyy xmlns="other.com"/></foo></out>


Running XSLTC with Xerces Parser on namespace105
<?xml version="1.0" encoding="UTF-8" ?>
<out xmlns="testguys.com"><foo xmlns="other.com"><yyy/></foo></out>