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

Redefine With Name Collision

           Summary: Redefine With Name Collision
           Product: Xerces2-J
           Version: 2.2.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema datatypes
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


When a type is redefined from another schema file and defined again with the 
same name, the parser doesn't detect the name collision.  Consider the 
following schema code:

<xsd:redefine schemaLocation="schemaFile.xsd">
  <xsd:complexType name="ComplexType01">
     <xsd:complexContent>
        <xsd:extension base="ComplexType01">
           <xsd:sequence>
                <xsd:element minOccurs="0" name="Element03" id="bad01"/>
           </xsd:sequence>
        </xsd:extension>
     </xsd:complexContent>
  </xsd:complexType>
</xsd:redefine>

<xsd:complexType name="ComplexType01">
   <xsd:sequence>
      <xsd:element minOccurs="0" name="Element01"/>
      <xsd:element maxOccurs="unbounded" minOccurs="0" name="Element02"/>
   </xsd:sequence>
</xsd:complexType>

The 'ComplexType01' has been defined in the 'schemaFile.xsd' file and it's 
being redefined in this file.  Then the type with the same name is defined 
again.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to