Per Bothner’s written an illuminating primer on how XQuery works through building an application to transform XML to HTML. What you’ll learn from reading it is that if you’re used to the PHP/JSP/ASP model, then XQuery is going to be easier to wrap your head around than XSLT.
He’s also written a partial implementation of XQuery in Java, Qexo, which you can install as a jar and us to play with XQuery. Cooler still is that you can take an XQuery document, which, unlike XSLT, is not XML, and compile it into a servlet.
Possibly Related posts (machine generated):