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 5516 - [FT] Extension Option example has syntax errors
Summary: [FT] Extension Option example has syntax errors
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Last Call drafts
Hardware: All All
: P2 minor
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: 2008-03-03 18:24 UTC by Michael Dyck
Modified: 2008-03-22 01:06 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2008-03-03 18:24:34 UTC
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"

[1]
"distance 1 words" should be "distance exactly 1 words"

[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 ']' is missing.

So the example should be:

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

or

//para[. ftcontains
        ("Kinder" ftand "Platz")
        with stemming
        option exq:compounds "distance=1"
        distance exactly 1 words]
Comment 1 Michael Dyck 2008-03-22 01:05:38 UTC
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.