<?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>4299</bug_id>
          
          <creation_ts>2007-02-05 22:07:36 +0000</creation_ts>
          <short_desc>lax wildcard and xsi:type</short_desc>
          <delta_ts>2009-04-21 19:21:45 +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/1.1 both</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></status_whiteboard>
          <keywords>resolved</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="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>13908</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-02-05 22:07:36 +0000</bug_when>
    <thetext>Assume that in an instance document, element &quot;e&quot; matches a lax wildcard and there is no global element declaration for &quot;e&quot; and there is an xsi:type specified on it. How *valid* does the xsi:type need to be?

Not a qname:
&lt;e xsi:type=&quot;a b c d&quot;/&gt;

Not resolve to a type:
&lt;e xsi:type=&quot;randomNN:randomName&quot;/&gt;

This doesn&apos;t seem to be covered by Schema-Validity Assessment (Element) in 3.3.4. Does this mean it&apos;s valid (and should be treated as if xsi:type is not there)? Is this the intention?

See this exchange (member-only)
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2005Mar/0098.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14268</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-02-28 01:51:02 +0000</bug_when>
    <thetext>See also bug 2225.  If 2225 is resolved by making it clear that xsi
attributes must be validated wherever they occur on elements that
aren&apos;t being skipped, then at least part of this issue will
also be resolved.  Bug 2225 does not resolve (as far as I can tell)
the question &quot;what happens if there is no element declaration, and
the QName value of xsi:type does not resolve to a type?&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14549</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-03-27 15:21:57 +0000</bug_when>
    <thetext>The Working Group adopted a wording proposal to resolve this issue, during
our meeting of 23 March.  The upshot is that a new rule is added to 
Validation Rule: Attribute Locally Valid, reading:

  5. If the declaration is for xsi:type (Attribute Declaration for the 
     &apos;type&apos; attribute (§3.2.7)), then the item&apos;s ·actual value· 
     ·resolves·  to a type definition.

Accordingly, I&apos;m marking this &apos;closed&apos;.  

Sandy, I believe that you originated this issue; if so, please shift it
from RESOLVED to CLOSED to indicate your acceptance of the proposal you
drafted.  If you were channeling someone else, please let them know.
Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>