<?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>11764</bug_id>
          
          <creation_ts>2011-01-14 18:40:01 +0000</creation_ts>
          <short_desc>Unresolved xsi:type should not affect validity against a type</short_desc>
          <delta_ts>2011-03-23 19:41:02 +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.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="C. M. Sperberg-McQueen">cmsmcq</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          <cc>cmsmcq</cc>
          
          <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>44356</commentid>
    <comment_count>0</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-01-14 18:40:01 +0000</bug_when>
    <thetext>In discussing bug 10664 this morning, the WG agreed that it was probably a mistake to say that if xsi:type fails to resolve, then the element carrying it is not locally valid against ANY type.  Element Locally Valid (Type) of section 3.3.4.4 now says this for elements without a governing element declaration (and there may be an analogous rule elsewhere for element that do have a governing element declaration).

We may wish (for compatibility or other reasons) to ensure that any element carrying an unresolvable xsi:type attribute is invalid, but if so then it needs to be done in some other way.

The editors were instructed to look for and propose a fix (or to come back with the news that no fix is available).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46475</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-03-07 22:17:04 +0000</bug_when>
    <thetext>A wording proposal for this issue is at

  http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.b11764.html

It removes the clause about xsi:type from the definition of local validity against a type.  Note that because the rules for attribute validity require xsi:type to resolve successfully, a failure to resolve will result in (a) the xsi:type attribute itself having [validity] = invalid, and therefore (b) the parent element also having [validity] = invalid, if the parent element is strictly assessed.  (If the parent element is not strictly assessed, having an invalid child has no effect.)

It also weakens and shortens the clause about xsi:type in the definition of local validity against an element declaration:  the clause saying that xsi:type must resolve is gone (it was in any case circular to require an instance-specified type definition not to be absent, since if the QName doesn&apos;t resolve there is no instance-specified type definition at all).  The clause saying that the instance-specified type definition must override the selected type definition is still present, since (a) it is not otherwise enforced, and (b) it does seem like a plausible part of local validity against an element declaration to say that the element can&apos;t have an xsi:type naming an incompatible type.

There is also a note added to the definition of governing attribute declaration, to help readers remember that the governing attribute declaration of xsi:type will always be the built-in declaration unless the processor stipulates a different declaration (in which case the invoker bears full responsibility for any non-intuitive results).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46814</commentid>
    <comment_count>2</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-03-18 16:46:50 +0000</bug_when>
    <thetext>RESOLVED: adopt the proposal as presented.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46938</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2011-03-23 19:41:02 +0000</bug_when>
    <thetext>The decision reported in comment 2 has been implemented.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>