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 2003/10/22 16:53:51 UTC

DO NOT REPLY [Bug 24007] New: - gives error

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

<xsl:attribute name="a:b" xmlns:a=""> gives error

           Summary: <xsl:attribute name="a:b" xmlns:a=""> gives error
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: richcao@ca.ibm.com


This bug is for both XalanJ Interpretive and XSLTC.

<xsl:attribute name="a:b" xmlns:a="">value</xsl:attribute>

raises the error "Prefixed namespace bindings may not be empty." According to
the XSL Specs 7.1.3 [1], 3rd paragraph:

"If the namespace attribute is present, then it also is interpreted as an
attribute value template. ... If the string is empty, then the expanded-name of
the attribute has a null namespace URI." 

After discussion with Henry Zongaro, we think that since there is no namespace,
there shouldn't be a prefix, so the prefix "a" should be discarded. That is, we
just get an attribute "b".

[1] http://www.w3.org/TR/xslt#creating-attributes