<?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>13457</bug_id>
          
          <creation_ts>2011-07-29 15:42:55 +0000</creation_ts>
          <short_desc>Schema has default value for xsi:type</short_desc>
          <delta_ts>2011-10-17 12:01:39 +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>Saxon tests</component>
          <version>2006-11-06</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="David Ezell">David_E3</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          <cc>mike</cc>
    
    <cc>sandygao</cc>
          
          <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>51777</commentid>
    <comment_count>0</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2011-07-29 15:42:55 +0000</bug_when>
    <thetext>complex004.n2.xml
Spec says instance should be valid, since it matches the declared type, and xsi:type defaults should not be honored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57984</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-10-08 15:54:27 +0000</bug_when>
    <thetext>I would like further discussion of this.

3.2.6.4 says: Note: It is legal for Attribute Uses that refer to xsi: attributes to specify default or fixed value constraints (e.g. in a component corresponding to a schema document construct of the form &lt;xs:attribute ref=&quot;xsi:type&quot; default=&quot;xs:integer&quot;/&gt;), but the practice is not recommended; including such attribute uses will tend to mislead readers of the schema document, because the attribute uses would have no effect; see Element Locally Valid (Complex Type) (</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58217</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2011-10-14 03:36:34 +0000</bug_when>
    <thetext>Both Element Locally Valid (Complex Type) (</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58222</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-10-14 09:51:33 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Both Element Locally Valid (Complex Type) (</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58288</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2011-10-17 12:01:39 +0000</bug_when>
    <thetext>Expected result of complex004.n2.xml has been changed to &quot;valid&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>