<?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>4581</bug_id>
          
          <creation_ts>2007-05-24 14:17:12 +0000</creation_ts>
          <short_desc>[FS] Quantifiers in static type of name tests</short_desc>
          <delta_ts>2007-10-03 23:07:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Formal Semantics 1.0</component>
          <version>Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>4242</dup_id>
          
          <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="Nick Jones">nick</reporter>
          <assigned_to name="Michael Dyck">jmdyck</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15189</commentid>
    <comment_count>0</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-05-24 14:17:12 +0000</bug_when>
    <thetext>In section 8.2.3.1.1 it states &quot;For example, if $v is bound to an element with a computed name, the type of $v is element. The static type computed for the expression $v/self::foo is element foo of type xs:anyType, which makes use of foo in the name test to compute a more specific type.&quot;

The static typing rules in this section reflect this behaviour. But I do not think the quantifier is correct.

If $v is an element (so has static type element * of type xs:anyType) then it may or may not satisfy self::foo, as when evaluated the name might not be &quot;foo&quot;, in which case an empty sequence is returned.

Therefore I think the static type should be &quot;(element foo of type xs:anyType)?&quot;. So therefore the type inferences for &quot;element of element *&quot; and &quot;attribute of attribute *&quot; should be:

statEnv |-  test QName2 with element of element * OptTypeSpecifier : element QName2 OptTypeSpecifier ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15247</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-05-30 06:52:21 +0000</bug_when>
    <thetext>I agree, but this is a duplicate of Bug 4242 and Bug 4261 (a).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15248</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2007-05-30 09:06:10 +0000</bug_when>
    <thetext>Sorry. My fault for not searching closed bugs.

*** This bug has been marked as a duplicate of bug 4242 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17021</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2007-10-03 23:07:19 +0000</bug_when>
    <thetext>This issue has been incorporated into FS erratum E018, whose fix has been committed to the source files for the next edition of the FS document.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>