Subject: [xsl] Backtracking the current position. From: Auguste Oumar <oumar_a@xxxxxxxx> Date: Wed, 26 Sep 2001 19:25:15 +0200 (CEST) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Element Declaration -- AN, t l | Thread | Re: [xsl] Backtracking the current , Joerg Pietschmann |
[xsl] Element Declaration -- ANY, t l | Date | [xsl] So what xsl processors are yo, Nicholas Waltham |
Month |