[Bug 5573] fn:applyFTTimes() raise improper errors

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5573

           Summary: fn:applyFTTimes() raise improper errors
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: zhen.liu@oracle.com
         QAContact: public-qt-comments@w3.org


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'))

Received on Friday, 14 March 2008 16:32:04 UTC