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 "Eric van der Vlist (JIRA)" <xe...@xml.apache.org> on 2006/11/22 12:25:03 UTC

[jira] Created: (XERCESJ-1215) Restrictions involving two levels of substitution groups raise false errors

Restrictions involving two levels of substitution groups raise false errors
---------------------------------------------------------------------------

                 Key: XERCESJ-1215
                 URL: http://issues.apache.org/jira/browse/XERCESJ-1215
             Project: Xerces2-J
          Issue Type: Bug
          Components: XML Schema Structures
    Affects Versions: 2.8.1
            Reporter: Eric van der Vlist


The following schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="head" type="xs:token"/>

  <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>

  <xs:element name="subMember" type="xs:token" substitutionGroup="subHead"/>

  <xs:complexType name="baseType">
    <xs:sequence>
      <xs:element ref="head"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="restrictionType">
    <xs:complexContent>
      <xs:restriction base="baseType">
        <xs:sequence>
          <xs:element ref="subHead"/>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

</xs:schema>

Raises the following errors:

SystemID: /home/vdv/wadi/repro1.xsd
Endroit: 21:42
Description: rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax

SystemID: /home/vdv/wadi/repro1.xsd
Endroit: 21:42
Description: derivation-ok-restriction.5.4.2: Error for type 'restrictionType'.  The particle of the type is not a valid restriction of the particle of the base.
URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction

Note that this functionnaly equivalent schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="head" type="xs:token"/>

  <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>

  <xs:element name="subMember" type="xs:token" substitutionGroup="head"/>

  <xs:complexType name="baseType">
    <xs:sequence>
      <xs:element ref="head"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="restrictionType">
    <xs:complexContent>
      <xs:restriction base="baseType">
        <xs:sequence>
          <xs:choice>
            <xs:element ref="subHead"/>
            <xs:element ref="subMember"/>
          </xs:choice>
        </xs:sequence>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>

</xs:schema>

Is considered valid.

Thanks,

Eric

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


[jira] Updated: (XERCESJ-1215) Restrictions involving two levels of substitution groups raise false errors

Posted by "Eric van der Vlist (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1215?page=all ]

Eric van der Vlist updated XERCESJ-1215:
----------------------------------------

    Attachment: repro2.xsd

This functionnaly equivalent schema is valid

> Restrictions involving two levels of substitution groups raise false errors
> ---------------------------------------------------------------------------
>
>                 Key: XERCESJ-1215
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1215
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects Versions: 2.8.1
>            Reporter: Eric van der Vlist
>         Attachments: repro1.xsd, repro2.xsd
>
>
> The following schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="subHead"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:element ref="subHead"/>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Raises the following errors:
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
> URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: derivation-ok-restriction.5.4.2: Error for type 'restrictionType'.  The particle of the type is not a valid restriction of the particle of the base.
> URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction
> Note that this functionnaly equivalent schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="head"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:choice>
>             <xs:element ref="subHead"/>
>             <xs:element ref="subMember"/>
>           </xs:choice>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Is considered valid.
> Thanks,
> Eric

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


[jira] Commented: (XERCESJ-1215) Restrictions involving two levels of substitution groups raise false errors

Posted by "Eric van der Vlist (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1215?page=comments#action_12451933 ] 
            
Eric van der Vlist commented on XERCESJ-1215:
---------------------------------------------

Hi Ignacio

This patch does solve my problems...

Sorry I had missed to stop that it was the same issue than bug 1066 and many thanks for your very timely answer.

Eric

> Restrictions involving two levels of substitution groups raise false errors
> ---------------------------------------------------------------------------
>
>                 Key: XERCESJ-1215
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1215
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects Versions: 2.8.1
>            Reporter: Eric van der Vlist
>         Attachments: repro1.xsd, repro2.xsd
>
>
> The following schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="subHead"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:element ref="subHead"/>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Raises the following errors:
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
> URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: derivation-ok-restriction.5.4.2: Error for type 'restrictionType'.  The particle of the type is not a valid restriction of the particle of the base.
> URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction
> Note that this functionnaly equivalent schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="head"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:choice>
>             <xs:element ref="subHead"/>
>             <xs:element ref="subMember"/>
>           </xs:choice>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Is considered valid.
> Thanks,
> Eric

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


[jira] Updated: (XERCESJ-1215) Restrictions involving two levels of substitution groups raise false errors

Posted by "Eric van der Vlist (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1215?page=all ]

Eric van der Vlist updated XERCESJ-1215:
----------------------------------------

    Attachment: repro1.xsd

This schema should be valid

> Restrictions involving two levels of substitution groups raise false errors
> ---------------------------------------------------------------------------
>
>                 Key: XERCESJ-1215
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1215
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects Versions: 2.8.1
>            Reporter: Eric van der Vlist
>         Attachments: repro1.xsd, repro2.xsd
>
>
> The following schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="subHead"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:element ref="subHead"/>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Raises the following errors:
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
> URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: derivation-ok-restriction.5.4.2: Error for type 'restrictionType'.  The particle of the type is not a valid restriction of the particle of the base.
> URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction
> Note that this functionnaly equivalent schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="head"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:choice>
>             <xs:element ref="subHead"/>
>             <xs:element ref="subMember"/>
>           </xs:choice>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Is considered valid.
> Thanks,
> Eric

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


[jira] Resolved: (XERCESJ-1215) Restrictions involving two levels of substitution groups raise false errors

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESJ-1215?page=all ]

Michael Glavassevich resolved XERCESJ-1215.
-------------------------------------------

    Resolution: Duplicate

Duplicate of XERCESJ-1066.

> Restrictions involving two levels of substitution groups raise false errors
> ---------------------------------------------------------------------------
>
>                 Key: XERCESJ-1215
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1215
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects Versions: 2.8.1
>            Reporter: Eric van der Vlist
>         Attachments: repro1.xsd, repro2.xsd
>
>
> The following schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="subHead"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:element ref="subHead"/>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Raises the following errors:
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
> URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: derivation-ok-restriction.5.4.2: Error for type 'restrictionType'.  The particle of the type is not a valid restriction of the particle of the base.
> URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction
> Note that this functionnaly equivalent schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="head"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:choice>
>             <xs:element ref="subHead"/>
>             <xs:element ref="subMember"/>
>           </xs:choice>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Is considered valid.
> Thanks,
> Eric

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


[jira] Commented: (XERCESJ-1215) Restrictions involving two levels of substitution groups raise false errors

Posted by "Ignacio Hernandez-Ros (JIRA)" <xe...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XERCESJ-1215?page=comments#action_12451925 ] 
            
Ignacio Hernandez-Ros commented on XERCESJ-1215:
------------------------------------------------

Hello,

Isn't this a duplicate of bug 1066? Yesterday bug 1066 was solved and new release 2.9.0 will contain a fix. Could you please test if patch3.txt in that bug effectively solves your problems?

Regards,
IHR

> Restrictions involving two levels of substitution groups raise false errors
> ---------------------------------------------------------------------------
>
>                 Key: XERCESJ-1215
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1215
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema Structures
>    Affects Versions: 2.8.1
>            Reporter: Eric van der Vlist
>         Attachments: repro1.xsd, repro2.xsd
>
>
> The following schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="subHead"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:element ref="subHead"/>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Raises the following errors:
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: rcase-RecurseLax.2: There is not a complete functional mapping between the particles.
> URL: http://www.w3.org/TR/xmlschema-1/#rcase-RecurseLax
> SystemID: /home/vdv/wadi/repro1.xsd
> Endroit: 21:42
> Description: derivation-ok-restriction.5.4.2: Error for type 'restrictionType'.  The particle of the type is not a valid restriction of the particle of the base.
> URL: http://www.w3.org/TR/xmlschema-1/#derivation-ok-restriction
> Note that this functionnaly equivalent schema:
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
>   <xs:element name="head" type="xs:token"/>
>   <xs:element name="subHead" type="xs:token" substitutionGroup="head"/>
>   <xs:element name="subMember" type="xs:token" substitutionGroup="head"/>
>   <xs:complexType name="baseType">
>     <xs:sequence>
>       <xs:element ref="head"/>
>     </xs:sequence>
>   </xs:complexType>
>   <xs:complexType name="restrictionType">
>     <xs:complexContent>
>       <xs:restriction base="baseType">
>         <xs:sequence>
>           <xs:choice>
>             <xs:element ref="subHead"/>
>             <xs:element ref="subMember"/>
>           </xs:choice>
>         </xs:sequence>
>       </xs:restriction>
>     </xs:complexContent>
>   </xs:complexType>
> </xs:schema>
> Is considered valid.
> Thanks,
> Eric

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