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

[Bug 5829] [FTUC] xquery full text use case document has WRONG xpath solutions

From: <bugzilla@wiggum.w3.org>
Date: Tue, 19 Aug 2008 19:17:46 +0000
To: public-qt-comments@w3.org
Message-Id: <E1KVWiA-0006o2-SM@wiggum.w3.org>


--- Comment #9 from Pat Case <pcase@crs.loc.gov>  2008-08-19 19:17:46 ---

Thanks for all the XPath Solutions.

I have one problem I can't fix on my own.

17.2.3 Q3 Query Filtering on Scores

Find all books that focus on "usability".

This query performs a word query and filters on scores.

The XQuery is:

<eg role="xquery" xml:space="preserve">for $book score $s in 
   doc(" http://bstore1.example.com/full-text.xml")
   /books/book[. ftcontains "usability"]
where $s &gt; 0.1
return $book/metadata/title</eg>

The existing XPath is:

<eg role="xpath" xml:space="preserve">doc("
/books/book[(for $i score $s in .[. ftcontains "usability"]
return $s) &gt; 0.1]/metadata/title</eg>

The revised XPath from you is:

(:: 17.2.3 ::)
doc(" http://bstore1.example.com/full-text.html")
/books/book[for $i score $s in .[. ftcontains "usability"] where $s > 0.1
return $s ]/metadata/title

--I didn't think XPath had where statements. Might it be that what is in the
Use Cases now is correct?


Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 19 August 2008 19:18:21 UTC

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