- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 02 Jul 2008 20:06:47 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5829 Michael Dyck <jmdyck@ibiblio.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdyck@ibiblio.org --- Comment #2 from Michael Dyck <jmdyck@ibiblio.org> 2008-07-02 20:06:47 --- (In reply to comment #0) > > The correct solution is > > doc("http://bstore1.example.com/full-text.xml") > /books/book[count(.//chapter [. ftcontains "one of > the best known lists of heuristics is Ten Usability > Heuristics"] )>0] I believe the following simpler expression would be equivalent: doc("http://bstore1.example.com/full-text.xml") /books/book[.//chapter ftcontains "..."] However, neither these nor the ones (XQuery + XPath) in the usecase doc seem to be solving the right problem. They're all looking for books that have some chapter containg the phrase, but the problem asks for all book chapters containing the phrase. So I think the proper solution is more like: doc("http://bstore1.example.com/full-text.xml") /books/book//chapter[. ftcontains "..."] or just: doc("http://bstore1.example.com/full-text.xml") //chapter[. ftcontains "..."] (Or, we could change the problem statement.) -- 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 Wednesday, 2 July 2008 20:07:24 UTC