As always, that did the trick. Assigning the sequence to a variable
outside of the loop is the solution.
Thanks!
On Apr 5, 2005 11:28 AM, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
You'll need to set a variable outside the outer loop, and in the inner loop
do something like
<xsl:for-each select="$s/my/xpath/query[(_at_)day=$day]">
In fact, you might as well select the whole path in the variable and just
use
<xsl:for-each select="$s[(_at_)day=$day]">
I would tend to use .-1 rather than position()-1, but the effect is the
same. Actually, I would probably not build the duration from a string, but
rather from:
<xsl:variable name="one-day" select="xs:dayTimeDuration('P1D')"/> (global
variable)
then in the loop:
<xsl:variable name="day" select=". * $one-day"/>
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>
--~--