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 7907 - [FT] full text options grammar ambiguous
Summary: [FT] full text options grammar ambiguous
Status: CLOSED DUPLICATE of bug 7271
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
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: 2009-10-13 08:34 UTC by Martin Probst
Modified: 2011-01-06 09:52 UTC (History)
1 user (show)

See Also:


Attachments

Description Martin Probst 2009-10-13 08:34:40 UTC
I think the ftMatchOptions part of XQuery Full Text grammar (XQFT) is non-LL:

typeswitch (x)
case xs:integer return bla ftcontains 'hello'
case insensitive case insensitive (...) return something
default ...

This is not entirely ambiguous, but potentially requires infinite lookahead to decide whether to parse.

Another infinite lookahead required issue is the replace expression in combination with XQFT:

replace value of bla ftcontains 'x' with stemming with stemming with stemming ...
Comment 1 Michael Dyck 2009-10-13 15:05:34 UTC

*** This bug has been marked as a duplicate of bug 7271 ***
Comment 2 Martin Probst 2011-01-06 09:52:24 UTC
Confirmed duplicate.