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 "Radu Coravu (JIRA)" <xe...@xml.apache.org> on 2012/07/13 15:11:33 UTC

[jira] [Created] (XERCESJ-1572) Ambiguous error message

Radu Coravu created XERCESJ-1572:
------------------------------------

             Summary: Ambiguous error message
                 Key: XERCESJ-1572
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1572
             Project: Xerces2-J
          Issue Type: Bug
          Components: XML Schema 1.1 Structures
    Affects Versions: 2.11.0
            Reporter: Radu Coravu
            Priority: Minor


When validating an 1.1 XML Schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:element name="root">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="e1" type="xs:integer"/>
            </xs:sequence>
            <xs:attribute name="kind" type="xs:string"/>
        </xs:complexType>
        <xs:alternative test="@kind='string'" type="xs:string"/>
    </xs:element>
</xs:schema>

The error message is:

e-props-correct.7: Type alternative 'string' is not xs:error or is not validly derived from the type definition, 'null', of element 'root'.

Maybe the "null" could be replace with something like "anonymous" in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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] [Commented] (XERCESJ-1572) Ambiguous error message

Posted by "Radu Coravu (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414865#comment-13414865 ] 

Radu Coravu commented on XERCESJ-1572:
--------------------------------------

Thanks for the details. Yes, I am using the published 1.1 beta.
                
> Ambiguous error message
> -----------------------
>
>                 Key: XERCESJ-1572
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1572
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Structures
>    Affects Versions: 2.11.0
>            Reporter: Radu Coravu
>            Assignee: Mukul Gandhi
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When validating an 1.1 XML Schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
>     <xs:element name="root">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element name="e1" type="xs:integer"/>
>             </xs:sequence>
>             <xs:attribute name="kind" type="xs:string"/>
>         </xs:complexType>
>         <xs:alternative test="@kind='string'" type="xs:string"/>
>     </xs:element>
> </xs:schema>
> The error message is:
> e-props-correct.7: Type alternative 'string' is not xs:error or is not validly derived from the type definition, 'null', of element 'root'.
> Maybe the "null" could be replace with something like "anonymous" in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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-1572) Ambiguous error message

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

Mukul Gandhi resolved XERCESJ-1572.
-----------------------------------

    Resolution: Not A Problem

perhaps the submitter of the issue is using the published schema 1.1 beta. the latest code case in SVN produces following error for the use case posted,

e-props-correct.7: Type alternative 'string' is not xs:error or is not validly derived from the type definition, '#AnonType_root', of element 'root'.

which is what the submitter of issue wants.
                
> Ambiguous error message
> -----------------------
>
>                 Key: XERCESJ-1572
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1572
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Structures
>    Affects Versions: 2.11.0
>            Reporter: Radu Coravu
>            Assignee: Mukul Gandhi
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When validating an 1.1 XML Schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
>     <xs:element name="root">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element name="e1" type="xs:integer"/>
>             </xs:sequence>
>             <xs:attribute name="kind" type="xs:string"/>
>         </xs:complexType>
>         <xs:alternative test="@kind='string'" type="xs:string"/>
>     </xs:element>
> </xs:schema>
> The error message is:
> e-props-correct.7: Type alternative 'string' is not xs:error or is not validly derived from the type definition, 'null', of element 'root'.
> Maybe the "null" could be replace with something like "anonymous" in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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-1572) Ambiguous error message

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

Mukul Gandhi reassigned XERCESJ-1572:
-------------------------------------

    Assignee: Mukul Gandhi
    
> Ambiguous error message
> -----------------------
>
>                 Key: XERCESJ-1572
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1572
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.1 Structures
>    Affects Versions: 2.11.0
>            Reporter: Radu Coravu
>            Assignee: Mukul Gandhi
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When validating an 1.1 XML Schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
>     <xs:element name="root">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element name="e1" type="xs:integer"/>
>             </xs:sequence>
>             <xs:attribute name="kind" type="xs:string"/>
>         </xs:complexType>
>         <xs:alternative test="@kind='string'" type="xs:string"/>
>     </xs:element>
> </xs:schema>
> The error message is:
> e-props-correct.7: Type alternative 'string' is not xs:error or is not validly derived from the type definition, 'null', of element 'root'.
> Maybe the "null" could be replace with something like "anonymous" in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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