This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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'))
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.
yes, it is a syntax error.Resolve it as propsed to remove 'err:'