- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 10 Jul 2008 23:25:45 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5855 Summary: xquery full text use case 15.2.4 solution is not correct Product: XPath / XQuery / XSLT Version: Working drafts Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Full Text 1.0 Use Cases AssignedTo: pcase@crs.loc.gov ReportedBy: zhen.liu@oracle.com QAContact: public-qt-comments@w3.org The solution for $book in doc("http://bstore1.example.com/full-text.xml") /books/book let $au := $book/metadata/author[. ftcontains ftnot ("montana" ftand "marigold")] let $co := $book//content[. ftcontains (("correct" ftor ("comment" with stemming) ftor "guidance" ftor "assistance" ftor "help") ftand "usability test.*" with wildcards) window 70 words without content .//footnote] where count($au) > 0 and count($co) > 0 return <book number="{$book/@number}"> {$book/metadata/title, $book//content} </book> can NOT get the expected result, which is <book number="2> element because for <book number="2"> element, it does NOT have metadata/author element, so $au is zero item sequence and thus 'where count($au) > 0' is false. If take out the condition 'count($au) >0', it is still not correct because the window 70 words is too small, it shall be 75 words. -- 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 Thursday, 10 July 2008 23:26:20 UTC