<?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>2112</bug_id>
          
          <creation_ts>2005-09-09 15:13:35 +0000</creation_ts>
          <short_desc>R-123: A question about redefining redefines</short_desc>
          <delta_ts>2009-04-21 19:25:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <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="Sandy Gao">sandygao</reporter>
          <assigned_to name="Henry S. Thompson">ht</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6033</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 15:13:35 +0000</bug_when>
    <thetext>There are situations in which the redefinition of a type, and the subsequent 
redefinition of the redefined type, are desirable. One such case is where a 
schema user would like to extend a type, not just from the original source but 
based on the extension of another schema user&apos;s extension (Company C extends 
type T from Company B, who picked it up from Company A and redefined it).

It appears that this is discouraged in the Rec. From 4.2.2:

&quot;In all cases there must be a top-level definition item of the appropriate name 
and kind in the redefined schema document. 

NOTE: The above is carefully worded so that multiple equivalent redefining of 
the same schema document will not constitute a violation of clause 2 of Schema 
Properties Correct (3.15.6) , but applications are allowed, indeed encouraged, 
to avoid redefining the same schema document in the same way more than once to 
forestall the necessity of establishing identity component by component 
(although this will have to be done for the individual redefinitions 
themselves).&quot; 

Some validators require that the redefined schema contain a type definition for 
a type that is to be redefined - that a redefinition is not sufficient. So it 
is not possible to redefine a redefined type. So the question is, is this 
something that is likely to change, or will validators vary on whether or not 
they support cascading redefines?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6034</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 15:14:10 +0000</bug_when>
    <thetext>Henry&apos;s response: 

Unfortunately the term &apos;top-level&apos; is not formally defined in the REC. There 
are a number of places where things such as &quot;all the top-level (i.e. named) 
components. . .&quot; appear, so it&apos;s clear that what&apos;s meant is (XML 
representations of) named components which appear in one of the sets of 
definitions/declarations of the schema component itself. On that basis, redefs 
of redefs are OK, and were certainly intended to be. An erratum is in order, in 
my opinion.

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002JanMar/0513.html

Resolution:
Discussed and resolved at the June 12, 2003 telecon: 
RESOLVED: to classify R-123 as clarification without erratum. 
ACTION: Sandy Gao to send Mark Feblowitz a copy of SG&apos;s note explaining the 
logic of our decision.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>