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

(name() = 0) fails when applied to applied to xmlns="URL" attribute

           Summary: (name() = 0) fails when applied to applied to
                    xmlns="URL" attribute
           Product: XalanC
           Version: 1.4.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The XPATH function name() returns "xmlns" (rather than an empty string) when 
applied to a default name space attribute.

Not sure if it's the most elegant way to fix the problem, but I have
modified the

    static const XalanDOMString& getNameOfNode(const XalanAttr&  attr)

function in DOMServices.hpp to check if the QName is "xmlns".  If so,
return
s_emptyString.

Diff for the mod is :

zeus> diff DOMServices.hpp DOMServices.hpp.org
500,504d499
<               else if (theName.compare(s_XMLNamespace) == 0)
<               {
<
<                       return s_emptyString;
<               }

Will attach a patch diff to bug report.

Reply via email to