Schema Component Constraint: Element Declarations Consistent 
-------------------------------------------------------------

         Key: XERCESJ-1069
         URL: http://issues.apache.org/jira/browse/XERCESJ-1069
     Project: Xerces2-J
        Type: Bug
  Components: XML Schema Structures  
    Versions: 2.6.2    
 Environment: Linux RedHat 7.1
    Reporter: J�r�me LEMOYNE
    Priority: Minor


The following schema gives no error, even if it does not respect the XML Schema 
Part1 recommendation : 

Schema Component Constraint: Element Declarations Consistent 

which says that if 2 elements in a model group have the same names and 
namespaces, their type definition must be the same top-level definition. 

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="myEncoding" xmlns="myEncoding" xmlns:xs="http://www.
w3.org/2001/XMLSchema">

<xs:group name="myChoice">
<xs:choice>
<xs:element name="am" type="xs:float"/>
<xs:element name="am" type="xs:integer"/>
<xs:element name="bm" type="xs:boolean"/>
</xs:choice>
</xs:group>

</xs:schema>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to