xsl-list
[Top] [All Lists]

Re: [xsl] Top 10 XSLT patterns

2014-04-03 10:40:54
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(_at_)exselt(_dot_)net> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>