This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Backtracking the current position.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]