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 5573 - [FT] fn:applyFTTimes() raise improper errors
Summary: [FT] fn:applyFTTimes() raise improper errors
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:31 UTC by zhen hua liu
Modified: 2008-04-03 17:45 UTC (History)
0 users

See Also:


Attachments

Description zhen hua liu 2008-03-14 16:31:30 UTC
In ApplyFTTimes() errors, we raise dynamic error if there are stringExclude matches. However, the error number we use is XPST0003, which is defined as "It is a static error if an expression is not a valid instance of the grammer defined in A.1 EBNF'. 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('http://www.w3.org/2005/xqt-errors',
                        'err:XPST0003'))
Comment 1 Mary Holstege 2008-03-17 19:32:12 UTC
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 "err:") and close the bug with no further action.
Comment 2 zhen hua liu 2008-03-23 17:47:09 UTC
yes, it is a syntax error.Resolve it as propsed to remove 'err:'