Subject: RE: [xsl] For-each sequence From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 7 Apr 2005 14:27:27 +0100 |
> A potential solution is: > > <div> > <xsl:variable name="sourceEl" select="."/> > <xsl:for-each select="1 to 10"> > <xsl:for-each select="$sourceEl"> > <span id="{@id}">.</span> > </xsl:for-each> > </xsl:for-each> > </div> > > Is there another way? I don't think so. There's only one context item, and it can't refer to two things at once. If you need a handle on two different things, one of the handles must be a named variable. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] For-each sequence, David Carlisle | Thread | RE: [xsl] For-each sequence, Andrew Welch |
Re: [xsl] For-each sequence, David Carlisle | Date | RE: [xsl] For-each sequence, Andrew Welch |
Month |