<?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>5199</bug_id>
          
          <creation_ts>2007-10-15 17:16:47 +0000</creation_ts>
          <short_desc>Restrict scope of xs:alternative xpath expressions</short_desc>
          <delta_ts>2007-10-16 16:25:41 +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>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</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="Pete Cordell">petexmldev</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>17214</commentid>
    <comment_count>0</comment_count>
    <who name="Pete Cordell">petexmldev</who>
    <bug_when>2007-10-15 17:16:47 +0000</bug_when>
    <thetext>As currently drafted, databinding tools (and possibly streaming validating XML processors) will find selecting a type based on the contents of that type (as required by xs:alternative) difficult to implement.  

It is proposed that the xpath expressions in xs:alternative tests only rely on the attributes of an element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17216</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-10-15 17:45:28 +0000</bug_when>
    <thetext>Personal response: I believe that what you are asking for is already the case. See  3.12.4 rules 1 and 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17218</commentid>
    <comment_count>2</comment_count>
    <who name="Pete Cordell">petexmldev</who>
    <bug_when>2007-10-15 19:13:38 +0000</bug_when>
    <thetext>Thanks for pointing that out.  That seems OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17238</commentid>
    <comment_count>3</comment_count>
    <who name="Noah Mendelsohn">noah_mendelsohn</who>
    <bug_when>2007-10-16 16:25:41 +0000</bug_when>
    <thetext>Pete Cordell writes:

&gt; It is proposed that the xpath expressions
&gt; in xs:alternative tests only rely on
&gt; the attributes of an element.

Michael Kay writes:

&gt; Personal response: I believe that what
&gt; you are asking for is already the case.
&gt; See  3.12.4 rules 1 and 2.

Pete Cordell writes:

&gt; Thanks for pointing that out.  That seems
&gt; OK.

Pete:  this is actually a very useful comment.  Making the decision on how to restrict the XPath expressions, and indeed whether to limit them at all, was very controversial in the workgroup.   Getting feedback from users that having them unrestricted would have been a problem, and that you are pleased with the design as proposed, is in fact particularly useful.  Thank you!

Noah

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>