This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Section 5, A Trivial Embedding of XQuery, contains the following: "The following two more complete examples (which are equivalent to one another and to "for $i in (1 to 5) let $j := 4 where $i < $j return <x/><i>{$i}</i></x>") ..." I believe that this example should read: for $i in (1 to 5) let $j := 4 where $i < $j return <x><i>{$i}</i></x> This changes "<" to "<" and "<x/>" to "<x>".
Thanks for reporting these errors in the example. You are right on both counts and the changes that you suggest have been implemented. Because we have made the changes that you suggested, we presume that you are satisfied with this resolution and we are thus closing this bug.