[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Top 10 XSLT patterns


Subject: Re: [xsl] Top 10 XSLT patterns
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxx>
Date: Thu, 3 Apr 2014 11:40:38 -0400

Abel,

I think the pattern that should be on your list is "tag set mapping"
Element X in the source becomes A in the result, Y in the source
becomes B in the result, etc.

Indeed this might be the 'ur-pattern' inasmuch as it is the pattern
optimized by templates and the processing model. It is also used in
conjunction with every other pattern in your list.

But maybe you are simply assuming this, so it doesn't qualify as a "pattern"?

Cheers, Wendell

On Thu, Apr 3, 2014 at 11:33 AM, Abel Braaksma (Exselt) <abel@xxxxxxxxxx> wrote:
> While going over Dimitre's new XSLT course, I was wondering about the
> following: would it be possible to compile a list of, say, top 10 of the
> most used XSLT design patterns?
>
> Something like (unordered as of yet):
> - modified identity transform
> - fill-in-the-blanks
> - aggregate transforms (totals, averages, counts etc)
> - sorting
> - flat-to-hierarchy
> - hierarchy-to-flat
> - unparsed text mining (?)
> - data merging
>
> Not sure whether each of them can be given a true programming pattern,
> and surely, I am missing many obvious cases (any you would like to
> add?). I am often of the impression that the modified identity transform
> is by far the most widely used, but I can be wrong, perhaps it is
> aggregation or fill-in-the-blanks?
>
> It will likely be non-trivial to compile such list without a good query
> to search through existing stylesheets and known programming challenges.
> But from your experience, what patterns do you encounter most often?
>
> Cheers,
>
> Abel Braaksma
> Exselt XSLT 3.0 processor
> http://exselt.net
>



-- 
Wendell Piez | http://www.wendellpiez.com
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^


Current Thread
Keywords