This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
Zhen, I handled this as editorial. I removed the duplicate /books/book from the for statement The correction will appear internally after the next use cases build. I will send the FTTF an alert when it is ready. Please review and if you agree with the change, close the bug. Pat