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 5885 - [FT] section 3.5.4 Not-selection 3rd example query is NOT correct
Summary: [FT] section 3.5.4 Not-selection 3rd example query is NOT correct
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: All All
: P2 normal
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-07-21 18:13 UTC by zhen hua liu
Modified: 2008-08-26 18:43 UTC (History)
0 users

See Also:


Attachments

Description zhen hua liu 2008-07-21 18:13:33 UTC
http://www.w3.org/TR/xpath-full-text-10/#sec-ftnot:

The following expression returns book elements containing "web site usability" but not "usability testing":

//book[. ftcontains "web site usability" ftand 
ftnot "usability testing"]


This is NOT correct because the example document does NOT have "web site usability". Although this text appears in the value of attribute shortTitle,
however, attribute value contents is NOT part of the //book atomization.
Also, the document contains "usability testing" text, so ftnot is false.

The example document is at
http://www.w3.org/TR/xpath-full-text-10/#ftselections
with following contents:
<books>
  <book number="1">
    <title shortTitle="Improving Web Site Usability">Improving  
        the Usability of a Web Site Through Expert Reviews and
        Usability Testing</title>
    <author>Millicent Marigold</author>
    <author>Montana Marigold</author>
    <editor>VĂ©ra Tudor-Medina</editor>
    <content>
      <p>The usability of a Web site is how well the  
          site supports the users in achieving specified  
          goals. A Web site should facilitate learning,  
          and enable efficient and effective task  
          completion, while propagating few errors.
      </p>
      <note>This book has been approved by the Web Site  
          Users Association.
      </note>
    </content>
  </book>
</books>
Comment 1 Jim Melton 2008-08-26 18:43:25 UTC
The Full-Text Task Force has discussed the problem and created a fix for
the example in question. Those changes have been made to the internal
draft of the FT spec.  We are therefore marking this bug FIXED. 

Because you were present when the decision was made, we presume that you
are satisfied and are also marking the bug CLOSED.