You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Lawrence Jones (JIRA)" <xm...@xml.apache.org> on 2005/12/20 01:45:32 UTC

[jira] Created: (XMLBEANS-239) Complex type with complexContent which extends a base type with simpleContent causes scomp failure

Complex type with complexContent which extends a base type with simpleContent causes scomp failure
--------------------------------------------------------------------------------------------------

         Key: XMLBEANS-239
         URL: http://issues.apache.org/jira/browse/XMLBEANS-239
     Project: XMLBeans
        Type: Bug
  Components: Compiler  
    Versions: Version 2.1    
 Environment: All
    Reporter: Lawrence Jones
 Assigned to: Lawrence Jones 
    Priority: Minor
     Fix For: TBD


If you have a schema with the setup as follows:

    <xsd:complexType>
        <xsd:complexContent>
            <xsd:extension base="baseType"> ...

Then the baseType referenced must (by rule 1 http://www.w3.org/TR/xmlschema-1/#src-ct) be a complex type. However the spec does _not_ specify that the baseType must itself have complexContent. It appears that the spec allows simpleContent. However XmlBeans as it stands will fail specifying that a complex type _with complex content_ must be provided. Example error message is below:

bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type 'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a complex type with complex content.

If we remove the check at StscComplexTypeResolver line 529 that checks for simpleContent (without removing the check for simpleType) the checkintest appears to work and we get files generated which compile correctly. I will attach a patch which does that and updates the error message.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-239) Complex type with complexContent which extends a base type with simpleContent causes scomp failure

Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-239?page=all ]

Lawrence Jones updated XMLBEANS-239:
------------------------------------

    Attachment: xmlbeans239.patch2

Updated patch. Previous patch fixed user's problem but allowed complexContent to extend simpleContent (which is not allowed according to the schema spec). Have updated to raise a different error message in this case.

> Complex type with complexContent which extends a base type with simpleContent causes scomp failure
> --------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-239
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-239
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2.1
>  Environment: All
>     Reporter: Lawrence Jones
>     Assignee: Lawrence Jones
>     Priority: Minor
>      Fix For: TBD
>  Attachments: test_bmecat.xsd, xmlbeans239.patch, xmlbeans239.patch2
>
> If you have a schema with the setup as follows:
>     <xsd:complexType>
>         <xsd:complexContent>
>             <xsd:extension base="baseType"> ...
> Then the baseType referenced must (by rule 1 http://www.w3.org/TR/xmlschema-1/#src-ct) be a complex type. However the spec does _not_ specify that the baseType must itself have complexContent. It appears that the spec allows simpleContent. However XmlBeans as it stands will fail specifying that a complex type _with complex content_ must be provided. Example error message is below:
> bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type 'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a complex type with complex content.
> If we remove the check at StscComplexTypeResolver line 529 that checks for simpleContent (without removing the check for simpleType) the checkintest appears to work and we get files generated which compile correctly. I will attach a patch which does that and updates the error message.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-239) Complex type with complexContent which extends a base type with simpleContent causes scomp failure

Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-239?page=all ]

Lawrence Jones updated XMLBEANS-239:
------------------------------------

    Attachment: test_bmecat.xsd

Small test schema which shows the problem (based on larger bmecat_2005.xsd submitted by Holger Riess).

> Complex type with complexContent which extends a base type with simpleContent causes scomp failure
> --------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-239
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-239
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2.1
>  Environment: All
>     Reporter: Lawrence Jones
>     Assignee: Lawrence Jones
>     Priority: Minor
>      Fix For: TBD
>  Attachments: test_bmecat.xsd
>
> If you have a schema with the setup as follows:
>     <xsd:complexType>
>         <xsd:complexContent>
>             <xsd:extension base="baseType"> ...
> Then the baseType referenced must (by rule 1 http://www.w3.org/TR/xmlschema-1/#src-ct) be a complex type. However the spec does _not_ specify that the baseType must itself have complexContent. It appears that the spec allows simpleContent. However XmlBeans as it stands will fail specifying that a complex type _with complex content_ must be provided. Example error message is below:
> bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type 'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a complex type with complex content.
> If we remove the check at StscComplexTypeResolver line 529 that checks for simpleContent (without removing the check for simpleType) the checkintest appears to work and we get files generated which compile correctly. I will attach a patch which does that and updates the error message.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Resolved: (XMLBEANS-239) Complex type with complexContent which extends a base type with simpleContent causes scomp failure

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-239?page=all ]
     
Radu Preotiuc-Pietro resolved XMLBEANS-239:
-------------------------------------------

    Resolution: Fixed

SVN revision 358168

> Complex type with complexContent which extends a base type with simpleContent causes scomp failure
> --------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-239
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-239
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2.1
>  Environment: All
>     Reporter: Lawrence Jones
>     Assignee: Lawrence Jones
>     Priority: Minor
>      Fix For: TBD
>  Attachments: test_bmecat.xsd, xmlbeans239.patch2
>
> If you have a schema with the setup as follows:
>     <xsd:complexType>
>         <xsd:complexContent>
>             <xsd:extension base="baseType"> ...
> Then the baseType referenced must (by rule 1 http://www.w3.org/TR/xmlschema-1/#src-ct) be a complex type. However the spec does _not_ specify that the baseType must itself have complexContent. It appears that the spec allows simpleContent. However XmlBeans as it stands will fail specifying that a complex type _with complex content_ must be provided. Example error message is below:
> bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type 'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a complex type with complex content.
> If we remove the check at StscComplexTypeResolver line 529 that checks for simpleContent (without removing the check for simpleType) the checkintest appears to work and we get files generated which compile correctly. I will attach a patch which does that and updates the error message.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-239) Complex type with complexContent which extends a base type with simpleContent causes scomp failure

Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-239?page=all ]

Lawrence Jones updated XMLBEANS-239:
------------------------------------

    Attachment:     (was: xmlbeans239.patch)

> Complex type with complexContent which extends a base type with simpleContent causes scomp failure
> --------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-239
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-239
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2.1
>  Environment: All
>     Reporter: Lawrence Jones
>     Assignee: Lawrence Jones
>     Priority: Minor
>      Fix For: TBD
>  Attachments: test_bmecat.xsd, xmlbeans239.patch2
>
> If you have a schema with the setup as follows:
>     <xsd:complexType>
>         <xsd:complexContent>
>             <xsd:extension base="baseType"> ...
> Then the baseType referenced must (by rule 1 http://www.w3.org/TR/xmlschema-1/#src-ct) be a complex type. However the spec does _not_ specify that the baseType must itself have complexContent. It appears that the spec allows simpleContent. However XmlBeans as it stands will fail specifying that a complex type _with complex content_ must be provided. Example error message is below:
> bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type 'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a complex type with complex content.
> If we remove the check at StscComplexTypeResolver line 529 that checks for simpleContent (without removing the check for simpleType) the checkintest appears to work and we get files generated which compile correctly. I will attach a patch which does that and updates the error message.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Updated: (XMLBEANS-239) Complex type with complexContent which extends a base type with simpleContent causes scomp failure

Posted by "Lawrence Jones (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-239?page=all ]

Lawrence Jones updated XMLBEANS-239:
------------------------------------

    Attachment: xmlbeans239.patch

Suggested patch

> Complex type with complexContent which extends a base type with simpleContent causes scomp failure
> --------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-239
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-239
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2.1
>  Environment: All
>     Reporter: Lawrence Jones
>     Assignee: Lawrence Jones
>     Priority: Minor
>      Fix For: TBD
>  Attachments: test_bmecat.xsd, xmlbeans239.patch
>
> If you have a schema with the setup as follows:
>     <xsd:complexType>
>         <xsd:complexContent>
>             <xsd:extension base="baseType"> ...
> Then the baseType referenced must (by rule 1 http://www.w3.org/TR/xmlschema-1/#src-ct) be a complex type. However the spec does _not_ specify that the baseType must itself have complexContent. It appears that the spec allows simpleContent. However XmlBeans as it stands will fail specifying that a complex type _with complex content_ must be provided. Example error message is below:
> bmecat_2005.xsd:3681:5: error: src-ct.1: The specified base type 'typeMLSTRING00050@http://www.bmecat.org/bmecat/2005fd' must be a complex type with complex content.
> If we remove the check at StscComplexTypeResolver line 529 that checks for simpleContent (without removing the check for simpleType) the checkintest appears to work and we get files generated which compile correctly. I will attach a patch which does that and updates the error message.

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org