logo       

[jira] Commented: (XERCESJ-1215) Restrictions involving two levels of subst: msg#00066

Subject: [jira] Commented: (XERCESJ-1215) Restrictions involving two levels of substitution groups raise false errors
    [ 
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe