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 "Octavian Nadolu (JIRA)" <xe...@xml.apache.org> on 2012/09/10 11:15:08 UTC

[jira] [Created] (XERCESJ-1587) Internal error message when validating an XML Schema

Octavian Nadolu created XERCESJ-1587:
----------------------------------------

             Summary: 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
            Priority: Trivial


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Assigned] (XERCESJ-1587) Internal error message when validating an XML Schema

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reassigned XERCESJ-1587:
---------------------------------------------

    Assignee: Michael Glavassevich
    
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Resolved] (XERCESJ-1587) Internal error message when validating an XML Schema

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich resolved XERCESJ-1587.
-------------------------------------------

    Resolution: Fixed

This was a problem with the message text in XMLSchemaMessage.properties. Fixed in SVN rev 1382804.
                
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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