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 2003/01/31 15:32:47 UTC

DO NOT REPLY [Bug 16640] New: - Type Redefined Twice In Two Different Files

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

Type Redefined Twice In Two Different Files

           Summary: Type Redefined Twice In Two Different Files
           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: xerces-j-dev@xml.apache.org
        ReportedBy: nmehrega@ca.ibm.com
                CC: nddelima@ca.ibm.com


A type can be redefined and then another file can be included that redefines 
the same type again.  That is, we redefine a type from 'schemaFile1.xsd' and 
include another file called 'schemaFile2.xsd', but this file also redefines the 
same type in 'schemaFile1.xsd'.  We end up with the redefinition of the same 
type twice.  Consider the following schema code:

<xsd:redefine id="true" schemaLocation="schemaFile1.xsd">
   <xsd:simpleType name="SimpleType01">
      <xsd:restriction base="SimpleType01">
	  <xsd:whiteSpace value="collapse"/>
      </xsd:restriction>
   </xsd:simpleType>
</xsd:redefine>
      
<xsd:include id="bad01" chemaLocation="schemaFile2.xsd"/>

** Note: 'schemaFile2.xsd' also redefines the 'SimpleType01' type 
in 'schemaFile1.xsd'

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