W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2008

[Bug 5516] Extension Option example has syntax errors

From: <bugzilla@wiggum.w3.org>
Date: Mon, 03 Mar 2008 18:24:34 +0000
To: public-qt-comments@w3.org
Message-Id: <E1JWFL0-000533-Gg@wiggum.w3.org>


           Summary: Extension Option example has syntax errors
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: jmdyck@ibiblio.org
         QAContact: public-qt-comments@w3.org

In section 'Extension Option' (3.3.8 in public draft, 3.4.8 in internal draft),
the second example has three syntax errors.

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

"distance 1 words" should be "distance exactly 1 words"

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

The closing ']' is missing.

So the example should be:

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


//para[. ftcontains
        ("Kinder" ftand "Platz")
        with stemming
        option exq:compounds "distance=1"
        distance exactly 1 words]
Received on Monday, 3 March 2008 18:24:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:22 UTC