You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2004/03/02 09:11:34 UTC

DO NOT REPLY [Bug 27356] New: - xsd:list of QName is not handled properly

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

xsd:list of QName is not handled properly

           Summary: xsd:list of QName is not handled properly
           Product: Axis
           Version: current (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: gawor@mcs.anl.gov


The following definition:

       <xsd:element name="foo">
          <xsd:simpleType>
            <xsd:list itemType="xsd:QName" />
          </xsd:simpleType>
       </xsd:element>

With values such as xmlns:n1=foo xmlns:n2=foo2 n1:bar n2:bar2 is serialized as:

<foo>{foo}bar {foo2}bar2</foo>

Which is not correct. Also even if serialized properly the deserialization is 
invalid. The SimpleListDeserializer tries to pass the token value of QName
(String) constructor but this is wrong since the QName(String) constructor only 
accepts a localName and also proper namespace prefix resolution is not 
performed.

The attached patch fixes the serialization and deserialization problems.