<?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>5573</bug_id>
          
          <creation_ts>2008-03-14 16:31:30 +0000</creation_ts>
          <short_desc>[FT] fn:applyFTTimes() raise improper errors</short_desc>
          <delta_ts>2008-04-03 17:45:42 +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>Full Text 1.0</component>
          <version>Working 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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="zhen hua liu">zhen.liu</reporter>
          <assigned_to name="Jim Melton">jim.melton</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>19479</commentid>
    <comment_count>0</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-03-14 16:31:30 +0000</bug_when>
    <thetext>In ApplyFTTimes() errors, we raise dynamic error if there are stringExclude matches. However, the error number we use is XPST0003, which is defined as &quot;It is a static error if an expression is not a valid instance of the grammer defined in A.1 EBNF&apos;. This does not seem to be proper. We shall define and
reserve an error code in Appendix D of the full text for this dynamic errors.
declare function fts:ApplyFTTimes (..)
{
   if (fn:count($allMatches//fts:stringExclude) gt 0) then
      fn:error(fn:QName(&apos;http://www.w3.org/2005/xqt-errors&apos;,
                        &apos;err:XPST0003&apos;))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19504</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2008-03-17 19:32:12 +0000</bug_when>
    <thetext>
There is a typo in how the error is expressed, but this is the correct error.
This is more defensive programming than a technical flaw: the syntax error
would have already been raised had this situation arisen.  I propose to fix
the typo (the extraneous &quot;err:&quot;) and close the bug with no further action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19602</commentid>
    <comment_count>2</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-03-23 17:47:09 +0000</bug_when>
    <thetext>yes, it is a syntax error.Resolve it as propsed to remove &apos;err:&apos;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>