Re: [xsl] Replacing = with == and ===

Subject: Re: [xsl] Replacing = with == and ===
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Aug 2014 19:11:25 -0000
> Question:
>
> Why does it seem xslt is favorite over xQuery?
>

You might get different answers on a different list.... But I do think it's
true that XSLT continues to have much wider usage than XQuery.

I think the reason for that is primarily that people want to do transformation
(which retains most of the information in a document, but in different form)
rather than query (which extracts small amounts of information from a
document).

Although XQuery is capable of doing transformation, XSLT is better at it for
two reasons:

(a) the built-in rule-based processing model using template rules

(b) the customization capability provided by xsl:import

neither of which have any parallel in XQuery.

XQuery is much better at doing complex joins, but that's not the kind of
processing people are mostly doing.

Michael Kay
Saxonica

Current Thread