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 4714 - [FT] editorial: 3.5.2 Window Selection
Summary: [FT] editorial: 3.5.2 Window Selection
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: Jochen Doerre
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-23 10:06 UTC by Michael Dyck
Modified: 2008-02-16 07:22 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2007-06-23 10:06:18 UTC
3.5.2 Window Selection

[1]
para 1
"A window selection consist of"
    s/consist/consists/

[2]
example 4
'The following expression returns the empty sequence, because in the
selected book element, there is no occurrence of "efficient" within a
window of 3 tokens which would not also contain an occurrence of "and":
/book[@number="1" and . ftcontains "efficient"
ftand ftnot "and" window 3 words]'
    [2a]
    But don't the occurrences of "and" give rise to StringExcludes? If the
    window selection only cares about whether StringIncludes fall within a
    window, the position of the "and" tokens shouldn't matter.

    [2b]
    If the "3" were changed to "2" or "1", would it return true?
Comment 1 Michael Dyck 2007-08-13 00:41:42 UTC
Further to [2a]:
Currently, the description of Window Selection, and the semantic function fts:ApplyFTWordWindow in 4.2.7.8 FTWindow, say that StringExcludes in a match for the operand full-text selection don't affect whether that match is also a match for the Window Selection (only the StringIncludes matter), but I'm pretty sure that's incorrect.

Instead, I think the Window Selection must also require that any StringExcludes in an operand match fall outside the window.  (It's not clear how it should treat a StringExclude that is only *partly* outside the window.)
Comment 2 Jochen Doerre 2007-10-29 19:02:08 UTC
[1] is fixed in CVS.
Comment 3 Jim Melton 2008-01-24 15:08:06 UTC
The Task Force considered item [2] at its F2F meeting on 2008-01-24 and adopted the proposal in member-only FTTF email http://lists.w3.org/Archives/Member/member-query-fttf/2007Dec/0004.html.  The solution was accepted as written and the changes applied to the document.

Michael, if you agree with the changes made, please close this bug.
Comment 4 Michael Dyck 2008-02-16 07:22:23 UTC
Looks good.