- From: <bugzilla@wiggum.w3.org>
- Date: Wed, 09 Jul 2008 00:27:59 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5845
Summary: xquery full text use case 13.2.2 solution is not correct
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
The current solution shown below binds $para to <book> element instead of <p>
element. This is not correct as the output $para[1] and $para[2] expects the
$para binds to <p> element.
for $book in doc("http://bstore1.example.com/full-text.xml")
/books/book
let $para := $book[.//chapter/p ftcontains "usability"
ftand "test" with stemming]
where count($para) > 0
return ($book/metadata/title, $para/step[1], $para/step[2])
The correct solution should be
for $book in doc("http://bstore1.example.com/full-text.xml")
/books/book
let $para := $book//chapter/p[ . ftcontains "usability"
ftand "test" with stemming]
where count($para) > 0
return ($book/metadata/title, $para/step[1], $para/step[2])
--
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, 9 July 2008 00:28:32 UTC