<?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>3665</bug_id>
          
          <creation_ts>2006-09-07 08:15:47 +0000</creation_ts>
          <short_desc>Type checking fn:data(())</short_desc>
          <delta_ts>2006-10-19 19:47:48 +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>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</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="Tim Mills">tim</reporter>
          <assigned_to name="Jerome Simeon">simeon</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>11483</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-07 08:15:47 +0000</bug_when>
    <thetext>Consider the type-checking of fn:data(()) (i.e. fn:data on empty sequence)

statEnv |-  data on prime(Type) : Type1
--------------------------------------------
statEnv |-  (FN-URI,&quot;data&quot;)(Type) : Type1 · quantifier(Type)

Type = empty
Type 1 = data on prime(empty) = data on (none) = none

Surely fn:data(()) should typecheck as empty?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11491</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-07 15:15:23 +0000</bug_when>
    <thetext>I suspect that:

prime(empty) = empty

and not

prime(empty) = none

as specified in

http://www.w3.org/TR/xquery-semantics/#jd_prime</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11858</commentid>
    <comment_count>2</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-19 14:58:41 +0000</bug_when>
    <thetext>I believe despite being odd, this definition is actually correct.
The prime function computes the item types for a given type. there is none for the empty type.

when computing the factorization for empty the rules will be applied as follows:

prime(empty) = none
quantifier(empty) = ?

prime(empty) . quantifier(empty) = none? = none | empty = empty

which should be the expected result.

- Jerome
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11863</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2006-09-19 15:42:07 +0000</bug_when>
    <thetext>Thanks.  That clears that up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12033</commentid>
    <comment_count>4</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2006-09-26 13:59:48 +0000</bug_when>
    <thetext>Tim,
Thank you for your comment.
The XSLT and XML Query working groups have decided to close this
comment with no further action.
Best,
- Jerome
On behalf of the XSLT and XML Query WGs</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>