<?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>2204</bug_id>
          
          <creation_ts>2005-09-14 19:08:42 +0000</creation_ts>
          <short_desc>R-212: Question about VR Element Locally Valid (Element) in Structures 3.3.4</short_desc>
          <delta_ts>2006-10-11 03:06: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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>medium, easy</status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</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>6221</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:08:42 +0000</bug_when>
    <thetext>Clause 5.1.1 of Validation Rule: Element Locally Valid (Element), in Structures 
section 3.3.4, reads 

5.1.1 If the actual type definition is a local type definition then the 
canonical lexical representation of the {value constraint} value must be a 
valid default for the actual type definition as defined in Element Default 
Valid (Immediate) (3.3.6). 

Two questions: 

1 is there not a term we can use for xsi:type-specified types which is less 
subject to misunderstanding than &apos;local type definition&apos;? The types denoted 
here by this phrase are not local to a given element declaration, and it just 
seems like offering a pawn to fate to use the word &apos;local&apos; here. Call 
them &apos;dynamic&apos;, call them &apos;instance-specified&apos;, call them &apos;types with polka 
dots&apos;, but is it really essential to call them &apos;local&apos;? 

2 Clause 5.1.1 seems to suggest that it&apos;s only an error for an element instance 
to require / use a default value if the element instance has an xsi:type 
attribute. I think this is probably because the other case is catered for 
somewhere else, but I think it&apos;s a needless complication. I think clause 5.1.1 
can and should be simplified to say: 

5.1.1 The canonical lexical representation of the {value constraint} value must 
be a valid default for the actual type definition as defined in Element Default 
Valid (Immediate) (3.3.6). 

I think this is easier to understand both syntactically and from a design point 
of view. Is there any reason not to change it? 

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

Henry&apos;s response:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JanMar/0003.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11977</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-23 18:47:20 +0000</bug_when>
    <thetext>The pointers given for further reference appear to be in error; perhaps
the correct URLs are
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003AprJun/0002
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003AprJun/0003</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12387</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-11 03:05:22 +0000</bug_when>
    <thetext>The proposal to resolve bug 3714, which was adopted 6 October 2006,
involves a change from the term &apos;local type definition&apos; to
&apos;instance-specified type definition&apos;.  The first question raised
in the issue is thus answered.

The second question raised was addressed in Henry Thompson&apos;s
response (cited in the description and in comment #1) at  
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003AprJun/0003

Accordingly, I am marking this issue resolved and fixed (focusing on
the first question, which was resolved, rather than the second, which
was rejected as not really a problem), and invite the originator to 
respond by changing its status to &apos;closed&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>