xsl-list
[Top] [All Lists]

RE: For-each sequence

2005-04-07 06:27:27

A potential solution is:

<div>
  <xsl:variable name="sourceEl" select="."/>
  <xsl:for-each select="1 to 10">
    <xsl:for-each select="$sourceEl">
      <span id="{(_at_)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/



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



<Prev in Thread] Current Thread [Next in Thread>