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

RE: [xsl] XSLT 2.0 - for-each with number intervals


Subject: RE: [xsl] XSLT 2.0 - for-each with number intervals
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Mon, 17 Jan 2005 13:18:26 +0200

Hi,

> Sorry for bothering you with this simple question:
> I read in my XSLT 2.0 book that it should be possible to do the
> following:
>
> <xsl:for-each select="(1 to 5)">
> 	Output
> </xsl:for-each>
>
> Unfortunately, using Saxon 8.2 I get an error pointing to the
> expression
> in my @select.
> Could you point me to the rigth syntax, please?
> I also tried to(1, 5) but with no success either.

  <xsl:for-each select="(1 to 5)">

is correct XSLT & Xpath, and works for me with Saxon 8.2. Are you sure the
error is the expression and not something else?

Cheers,

Jarno


Current Thread
Keywords