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

Re: [xsl] Compound filter in for-each


Subject: Re: [xsl] Compound filter in for-each
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 26 Mar 2009 18:16:31 -0400

Alan,

At 04:44 PM 3/26/2009, you wrote:
Out of interest (and to facilitate further understanding) would you be kind enough to illustrate how you would approach my filtering problem with template matching rather than with xsl:choose?

It's likely that you could inspire a small friendly competition along those lines, but might you post a small sample of input data, with a prose spec and/or sample of desired results, to encourage those who might be inclined to try their hand?


As I said, your problem isn't the kind of problem that lends itself to templates: it's more of a "pull" than a "push". Learn about this distinction at (just a more-or-less random grab)

http://www.xml.com/pub/a/2005/07/06/tr.html
http://www.ibm.com/developerworks/xml/library/x-xdpshpul.html
http://www.eddiewelker.com/2008/11/25/push-style-xslt-vs-pull-style/

Nonetheless it's quite possible that someone practiced in the arts could make some nice template-driven logic for your case. This would depend on the details of your spec. Keep in mind that template matching really becomes useful as transformation problems become complex; when they're simple there's not always much evident gain.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


Current Thread
Keywords
xml