This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5572 - need proper full text error messages for FTMildNot Dynamic error
Summary: need proper full text error messages for FTMildNot Dynamic error
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Working drafts
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-14 16:26 UTC by zhen hua liu
Modified: 2008-04-03 23:13 UTC (History)
0 users

See Also:


Attachments

Description zhen hua liu 2008-03-14 16:26:40 UTC
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("Invalid expression on the left-hand side of a not-in")
    else if (fn:count($allMatches2//fts:stringExclude) gt 0) then
       fn:error("Invalid expression on the right-hand side of a not-in")
    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.
Comment 1 Mary Holstege 2008-03-17 19:38:56 UTC
Agreed. Introduced FTDY0017 and referenced it in sections 4 and in section 3.
Please close the bug if you are satisfied with this resolution.
Comment 2 zhen hua liu 2008-03-17 21:35:15 UTC
could you poste FTDY0017 text here ?