This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Backtracking the current position.
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] Backtracking the current position.
- From: Auguste Oumar <oumar_a at yahoo dot de>
- Date: Wed, 26 Sep 2001 19:25:15 +0200 (CEST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
i have a string to process and i would like to keep
track of the current position within the string as the
processing progress.I tried to solve it with a
"template name" like this one:
<xsl:template name="positionCounter">
<xsl:with-param name="position" select="$position +
6"/>
</xsl:template> where "6" ist the start position and
the parameter "$position" the length to be added.This
parameter is transmitted with the calling of the
template like this:
<xsl:call-template name="positionCounter">
<xsl:with-param name="position" select="5"/>
</xsl:call-template>
I have some "template match" calling this
"call-template" but it doesn't work like i wish.It has
to be something like a global variable keeping track
of the current position.Any idea of how can i solve it
properly ?
thanks.
__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list