<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4134</bug_id>
          
          <creation_ts>2007-01-02 18:08:18 +0000</creation_ts>
          <short_desc>Microsoft &quot;schema&quot; test set, schU1 (circular redefines)</short_desc>
          <delta_ts>2007-01-11 00:14:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema Test Suite</product>
          <component>Microsoft tests</component>
          <version>2006-11-06</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4135</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Henry S. Thompson">ht</assigned_to>
          
          
          <qa_contact name="XML Schema Test Suite mailing list">public-xml-schema-testsuite</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13324</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-02 18:08:18 +0000</bug_when>
    <thetext>In the Microsoft &quot;schema&quot; test set, test

   &lt;test group=&quot;schU1&quot; name=&quot;schU1&quot;/&gt;

there are two schema documents, each of which redefines the other. The metadata indicates that this is considered valid.

I can&apos;t find an explicit ban on circular redefines. However, I believe there is an implicit ban. XML Schema Part 1 Schema Representation Constraint: Redefinition Constraints and Semantics states:

If the ·actual value· of the schemaLocation [attribute] successfully resolves [then] it resolves to [something which] corresponds to a &lt;schema&gt; element information item in a well-formed information set, which in turn corresponds to a valid schema.

In the presence of circular redefines, I don&apos;t believe that this rule is decideable. You can&apos;t determine whether the information set corresponds to a valid schema without processing the xs:redefines, and this leads to infinite regress.

(Perhaps this is wriggling. The same argument could be used to disallow circular xs:include. However, it&apos;s relatively easy to find an algorithm for determining that either all the xs:include directives in a cycle are valid, or none of them are. Because of the special semantics of xs:redefine, it&apos;s far less clear that such an algorithm exists in this case.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13430</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-01-11 00:14:29 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 4135 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>