You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2004/03/30 21:55:15 UTC

DO NOT REPLY [Bug 28064] New: - Attribute nodes not always being shown to LSSerializerFilter

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28064

Attribute nodes not always being shown to LSSerializerFilter

           Summary: Attribute nodes not always being shown to
                    LSSerializerFilter
           Product: Xerces2-J
           Version: 2.6.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: nnissar@ca.ibm.com


Attribute nodes are currently being serialized automatically (without being 
passed to a LSSerializerFilter) when namespace fixup is not performed.  
Regardless of the value of fNamespaces, attribute nodes should be potentially 
shown to a LSSerializerFilter (whether it is actually filtered is dependent on 
whether the attribute is specified, the setting of 'discard-default-content' as 
well as the whatToShow flag [1]).  The printAttribute method currently being 
used in serializeElement when namespace fixup is being performed can also be 
called when namespace fixup is not being performed..  

In addition, the LS spec states that "default attributes (except in the case 
when "discard-default-content" is set to false), are never passed to the 
filter."  [1]  That is, an attribute node in general should be passed to the 
filter if it it is either specified OR if it is a default attribute 
and 'discard-default-content' is false.  Currently in the printAttribute 
method, attribute nodes are passed to the filter if specified or if 'discard-
default-content' is set to true.

[1] http://www.w3.org/TR/2004/PR-DOM-Level-3-LS-20040205/load-save.html#LS-
LSSerializerFilter

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org