- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 08 Jul 2008 15:58:01 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5842 Summary: 16.2.4 Q4 xquery solution is wrong Product: XPath / XQuery / XSLT Version: Working drafts Platform: All OS/Version: All 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 http://www.w3.org/TR/xpath-full-text-10-use-cases/#xquery-xpath-composability-queries-results-q4 for $book in doc("http://bstore1.example.com/full-text.xml") /books/book/books/book[./metadata/title ftcontains "usability"] return <book number="{$book/@number}"> {$book/metadata/title, if ($book/metadata/price > 25) then <price>{concat("$", round($book/metadata/price))}</price> else () } </book> this shall be changed to for $book in doc("http://bstore1.example.com/full-text.xml") /books/book[./metadata/title ftcontains "usability"] return <book number="{$book/@number}"> {$book/metadata/title, if ($book/metadata/price > 25) then <price>{concat("$", round($book/metadata/price))}</price> else () } </book> The extra /books/book is wrong -- 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, 8 July 2008 16:03:31 UTC