<?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>5516</bug_id>
          
          <creation_ts>2008-03-03 18:24:34 +0000</creation_ts>
          <short_desc>[FT] Extension Option example has syntax errors</short_desc>
          <delta_ts>2008-03-22 01:06:03 +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>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          
          
          <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>19261</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-03-03 18:24:34 +0000</bug_when>
    <thetext>In section &apos;Extension Option&apos; (3.3.8 in public draft, 3.4.8 in internal draft), the second example has three syntax errors.

//para[. ftcontains &quot;Kinder&quot; ftand &quot;Platz&quot; 
        distance 1 words with stemming option exq:compounds &quot;distance=1&quot;

[1]
&quot;distance 1 words&quot; should be &quot;distance exactly 1 words&quot;

[2]
The FTSTemOption and FTExtensionOption are positioned as if they were FTPosFilters (because they follow an FTDistance), which is not correct. Instead, they must appear as FTMatchOptions applied to an FTPrimary (which in this case has to be a parenthesized FTSelection).

[3]
The closing &apos;]&apos; is missing.

So the example should be:

//para[. ftcontains
        (&quot;Kinder&quot; ftand &quot;Platz&quot; distance exactly 1 words)
        with stemming
        option exq:compounds &quot;distance=1&quot;]

or

//para[. ftcontains
        (&quot;Kinder&quot; ftand &quot;Platz&quot;)
        with stemming
        option exq:compounds &quot;distance=1&quot;
        distance exactly 1 words]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19589</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-03-22 01:05:38 +0000</bug_when>
    <thetext>At FTTF meeting 168, the task force approved the fixes, with a preference for the first of the two suggested replacements. I have made the changes to the document, so I am marking this bug resolved-fixed, and closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>