<?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>1767</bug_id>
          
          <creation_ts>2005-07-19 23:57:19 +0000</creation_ts>
          <short_desc>[FS] technical: 7.2.13 The fn:subsequence function: incorrect typing?</short_desc>
          <delta_ts>2005-10-13 13:17:50 +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>Last Call drafts</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></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</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>4954</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-19 23:57:19 +0000</bug_when>
    <thetext>7.2.13 The fn:subsequence function

STA / rule 5
    If quantifier(Type) in { 1, + }, I don&apos;t think you&apos;re guaranteed that
    the result type has the same quantifier. Are you missing a &quot;· ?&quot; in
    the conclusion?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5036</commentid>
    <comment_count>1</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-07-20 21:45:51 +0000</bug_when>
    <thetext>The working group agrees with your comment. The rule is bogus, and should have a
? at the end. also the &apos;&apos;&apos; in the conclusion of the inferrence rule has to be
removed.

this results in the following inference rule.

statEnv |- Expr : Type
statEnv |- Expr1 : xs:double      statEnv |- Expr2 : xs:double
--------------------------------------------------------------------------------
statEnv |- fn:subsequence(Expr, Expr1, Expr2) : prime(Type) · quantifier(Type)

- Jerome
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5043</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-07-20 22:22:58 +0000</bug_when>
    <thetext>Uh, except that you left out the &apos;?&apos; again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6683</commentid>
    <comment_count>3</comment_count>
    <who name="Jerome Simeon">simeon</who>
    <bug_when>2005-10-13 13:17:50 +0000</bug_when>
    <thetext>Yes, you are right.

The &apos;?&apos; is used as expected in the latest published draft. See:

http://www.w3.org/TR/2005/WD-xquery-semantics-20050915/#sec_fn_subsequence

- Jerome</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>