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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5829





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

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("
http://bstore1.example.com/full-text.xml")
/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?

Pat


-- 
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