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 Jirka Kosek <ji...@kosek.cz> on 2007/04/04 23:55:42 UTC

Bug in xs:redefine

Hi,

I don't see any means for sending bug report on the page
http://issues.apache.org/jira/browse/XERCESJ so I'm using mail for
sending bugreport.

When I use xs:redefine to modify XHTML 1.1 Schema:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://www.w3.org/1999/xhtml"
           xmlns="http://www.w3.org/1999/xhtml">

  <xs:redefine schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">

    <xs:group name="tr.content">
      <xs:sequence>
        <xs:choice maxOccurs="unbounded">
          <!-- Remove th: <xs:element ref="th"/> -->
          <xs:element ref="td"/>
        </xs:choice>
      </xs:sequence>
    </xs:group>

  </xs:redefine>

</xs:schema>

I got the following error from Xerces:

Description: mg-props-correct.2: Circular definitions detected for group
':tr.content_fn3dktizrknc9pi'. Recursively following the {term} values
of the particles leads to a particle whose {term} is the group itself.
URL: http://www.w3.org/TR/xmlschema-1/#mg-props-correct

It seems that similar bug was reported in 2004
(http://www.xml-xerces.com/msg/64714.html), but I was not yet resolved.

TIA,

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html


Re: Bug in xs:redefine

Posted by Jirka Kosek <ji...@kosek.cz>.
Michael Glavassevich wrote:

> I haven't delved into this but given the responses to the thread [1] you 
> started on the W3C xmlschema-dev list I have a feeling that this isn't a 
> bug.

Not bug in Xerces, but bug in XML Schema spec ;-)

Sorry for false alarm, I tried other validators later after sending bug
report to Xerces list.

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html


Re: Bug in xs:redefine

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Jirka,

I haven't delved into this but given the responses to the thread [1] you 
started on the W3C xmlschema-dev list I have a feeling that this isn't a 
bug.

Thanks.

[1] http://lists.w3.org/Archives/Public/xmlschema-dev/2007Apr/0001.html

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Jirka Kosek <ji...@kosek.cz> wrote on 04/04/2007 05:55:42 PM:

> Hi,
> 
> I don't see any means for sending bug report on the page
> http://issues.apache.org/jira/browse/XERCESJ so I'm using mail for
> sending bugreport.
> 
> When I use xs:redefine to modify XHTML 1.1 Schema:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            targetNamespace="http://www.w3.org/1999/xhtml"
>            xmlns="http://www.w3.org/1999/xhtml">
> 
>   <xs:redefine 
schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
> 
>     <xs:group name="tr.content">
>       <xs:sequence>
>         <xs:choice maxOccurs="unbounded">
>           <!-- Remove th: <xs:element ref="th"/> -->
>           <xs:element ref="td"/>
>         </xs:choice>
>       </xs:sequence>
>     </xs:group>
> 
>   </xs:redefine>
> 
> </xs:schema>
> 
> I got the following error from Xerces:
> 
> Description: mg-props-correct.2: Circular definitions detected for group
> ':tr.content_fn3dktizrknc9pi'. Recursively following the {term} values
> of the particles leads to a particle whose {term} is the group itself.
> URL: http://www.w3.org/TR/xmlschema-1/#mg-props-correct
> 
> It seems that similar bug was reported in 2004
> (http://www.xml-xerces.com/msg/64714.html), but I was not yet resolved.
> 
> TIA,
> 
>             Jirka
> 
> -- 
> ------------------------------------------------------------------
>   Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
> ------------------------------------------------------------------
>        Professional XML consulting and training services
>   DocBook customization, custom XSLT/XSL-FO document processing
> ------------------------------------------------------------------
>  OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
> ------------------------------------------------------------------
>  Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html

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