This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: An issue with XPath 2.0 sequences (Was Re: RE: Muenchian method, and keys 'n stuff)
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 31 Jan 2002 09:51:07 -0000
- Subject: RE: [xsl] An issue with XPath 2.0 sequences (Was Re: RE: Muenchian method, and keys 'n stuff)
- Keywords: xsltDEV
- Reply-to: xsl-list at lists dot mulberrytech dot com
> couldn't one just do something like
>
> <xsl:param name="alph">
> <letter>a</letter>
> ...
> <letter>z</letter>
> </xsl:param>
>
> <xsl:for-each select="$alph/letter[1] to $alph/letter[last()]">
> ....
> </xsl:for-each>
>
You don't need "to" if you do that, just write
<xsl:for-each select="$alph/letter">
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list