<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7907</bug_id>
          
          <creation_ts>2009-10-13 08:34:40 +0000</creation_ts>
          <short_desc>[FT] full text options grammar ambiguous</short_desc>
          <delta_ts>2011-01-06 09:52:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Full Text 1.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7271</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Probst">Probst_Martin</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>jmdyck</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28291</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Probst">Probst_Martin</who>
    <bug_when>2009-10-13 08:34:40 +0000</bug_when>
    <thetext>I think the ftMatchOptions part of XQuery Full Text grammar (XQFT) is non-LL:

typeswitch (x)
case xs:integer return bla ftcontains &apos;hello&apos;
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 &apos;x&apos; with stemming with stemming with stemming ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28310</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2009-10-13 15:05:34 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 7271 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43849</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Probst">Probst_Martin</who>
    <bug_when>2011-01-06 09:52:24 +0000</bug_when>
    <thetext>Confirmed duplicate.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>