Subject: RE: Porting own template language to xslt
From: Peter Flynn <pflynn@xxxxxx>
Date: Thu, 16 Mar 2006 12:09:56 +0000
|
On Thu, 2006-03-16 at 11:16 +0000, Michael Kay wrote:
> I think that using xsl:for-each is the natural way to do this.
Interestingly I just had a Prof of CS call me for help (he's learning
XSLT) and he thought it was completely unnatural -- semantically --
to use for-each just to switch contexts for a single node; that it
should be kept for iteration over 1+ nodes.
> I toyed at one time with adding a construct such as
>
> <xsl:with select="....">
>
> that changes the context node without any iteration semantics, but it's
> functionality that for-each already provides so it just seemed like
> unnecessary baggage.
Sugar :-)
///Peter
|