xsl-list
[Top] [All Lists]

RE: [xsl] Porting own template language to xslt

2006-03-16 05:11:27
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


--~------------------------------------------------------------------
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>
--~--