- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 03 Mar 2008 18:24:34 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5516
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"
[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]
Received on Monday, 3 March 2008 18:24:39 UTC