This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The query should return sequence of attribute node and element node, however, the result is element node, element node.
Zhen, We have corrected the return statements in the verbal descriptions of the query, in the XPath and XQuery solutions, and in the expected results for 5.2.3, 5.2.4, 5.2.5, and 6.2.2 in a new internal editor's draft of the use cases document. Once reviewed they will be copied into the test cases. The changes will also appear in th next public version of the use cases document. We made 2 of return statements use fn:concat to illustrate how to return values instead of elements as we discussed in the Full Text Task Force Meeting of 8/4/2008. The other 2 we reverted to returning $book, so that the found words and the highlighting would be present and instructive of the operator being described. If you approve of the changes, please close this bug. Pat Case, Library of Congress, Member FTTF