Re: [xsl] XQuery and XSLT

Subject: Re: [xsl] XQuery and XSLT
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 17 Nov 2006 15:19:57 +0000
On 11/17/06, Jesper Tverskov <jesper@xxxxxxxxxxx> wrote:
Hi list

As a fan of XSLT and almost addicted to it, I am surprised to learn that
XQuery is not just for views joining documents, filtering, grouping and
sorting, but that XQuery is also great for transformations like XML to HTML
and XML to XSL-FO/pdf.

If you are used to <xsl:for-each-group> you will find XQuery a bit of a pain, plus for generating HTML having elements in amongst free text just isn't as nice as nested elements in amongst XSLT elements.

The best thing to do is give it a go - I would recommend eXist with
oXygen for a comfortable learning experience.

Hopefully one day someone will create an XSLT processor that operates
against a native XML database, to have have the best of both worlds.

In the mean time, I use the collection() function and
saxon:discard-document() to generate reports from directories of XML,
as its fast enough and grouping is essential.

cheers
andrew

Current Thread