XQib: Sample page
Do "View Page Source" to see the XQuery script generating above output.
It is the XQuery script corresponding to JSONiq script from this posting.
Find XQuery in the browser (xqib) home page here.
Have a look at the Samples page too ...
Touches ASCII characters only (identity for unicode code points up to 33FF16).