[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: mixed content grouping by whitespace

Subject: Re: mixed content grouping by whitespace
From: James Cummings <james@xxxxxxxxxxxxxxxxx>
Date: Mon, 12 Apr 2010 15:15:12 +0100
Re:  mixed content grouping by whitespace
On Mon, Apr 12, 2010 at 10:58, David Carlisle <davidc@xxxxxxxxx> wrote:
>> It seems that when the solution requires a two pass one done all in
>> one stylesheet, I have difficulty getting my head around it.
> It's usually best to think of these as two completely separate
> transformations, and it helps to think about it if you serialise the
> intermediate stage using something like
> <xsl:message select="$variable"/>
> just after the </xsl:variable>

That is certainly a good way to see what the variable is doing.  Often
I write these two steps, it seems, as completely separate stylesheets.
 I do the first operation, and then the second operation in the next
stylesheet. This is, of course, highly inefficient but simpler for my
weak intellect to deal with... and multi-passes are easier to
understand than muenchian recursion (which took me awhile).  But I've
noticed increasingly I'm doing lots of things in a variable, then
taking a second or even a third bite at the cherry by processing that
variable again in another variable. But for someone who thinks of
themselves as a non-programmer, this is starting to sink in the more I
use it. ;-)


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.