<?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>5572</bug_id>
          
          <creation_ts>2008-03-14 16:26:40 +0000</creation_ts>
          <short_desc>need proper full text error messages for FTMildNot Dynamic error</short_desc>
          <delta_ts>2008-04-03 23:13:18 +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>19478</commentid>
    <comment_count>0</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-03-14 16:26:40 +0000</bug_when>
    <thetext>in FTMildNot function, we call fn:error() to raise dynamic error
declare function fts:ApplyFTMildNot (...)
{
    if (fn:count($allMatches1//fts:stringExclude) gt 0) then
       fn:error(&quot;Invalid expression on the left-hand side of a not-in&quot;)
    else if (fn:count($allMatches2//fts:stringExclude) gt 0) then
       fn:error(&quot;Invalid expression on the right-hand side of a not-in&quot;)
    else if (fn:count($allMatches2//fts:stringInclude) eq 0) then

We should reserve error numbers for these errors and
define these errors in Appendix D sections. Then here we use fn:error() with full text QName and reserved error numbers in Appendix D.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19506</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2008-03-17 19:38:56 +0000</bug_when>
    <thetext>Agreed. Introduced FTDY0017 and referenced it in sections 4 and in section 3.
Please close the bug if you are satisfied with this resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19520</commentid>
    <comment_count>2</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-03-17 21:35:15 +0000</bug_when>
    <thetext>could you poste FTDY0017 text here ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>