[ 
https://issues.apache.org/jira/browse/XERCESJ-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mukul Gandhi updated XERCESJ-1587:
----------------------------------
    Fix Version/s: 2.12.0

> Internal error message when validating an XML Schema 
> -----------------------------------------------------
>
>                 Key: XERCESJ-1587
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1587
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Structures
>    Affects Versions: 2.11.0
>            Reporter: Octavian Nadolu
>            Assignee: Michael Glavassevich
>            Priority: Trivial
>             Fix For: 2.12.0
>
>
> When I validate the following schema file I get an internal error message.
> You can reproduce the issue on the xml-schema-1.1-dev branch, using the 
> jaxp.SourceValidator as follows:
> jaxp.SourceValidator -xsd11 -a schema.xsd 
> ---------- schema.xsd file -------------------------
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>   <xs:complexType name="baseCt">
>     <xs:all minOccurs="1">
>       <xs:element name="elem1"/>
>       <xs:element name="elem2"/>
>     </xs:all>
>   </xs:complexType>
>   
>   <xs:complexType name="derivedCT">
>     <xs:complexContent>
>       <xs:extension base="baseCt">
>         <xs:all minOccurs="0">
>           <xs:element name="elem3"/>
>           <xs:element name="elem4"/>
>         </xs:all>
>       </xs:extension>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> ------------------------------------------------------
> The error message is:
> An internal error occurred while formatting the following message:
> cos-particle-extends.3.1: When both a derived type and its base have 
> particles with <all> as their {term}s, the minOccurs of the derived particle 
> needs to be equal to that of its base.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to