This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Backtracking the current position.
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Backtracking the current position.
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- Date: Thu, 27 Sep 2001 13:21:00 +0200
- Organization: ZKB
- Reply-To: xsl-list at lists dot mulberrytech dot com
Auguste Oumar <oumar_a@yahoo.de> wrote:
> i have a string to process and i would like to keep
> track of the current position within the string as the
> processing progress.
[snip]
It's not easy to deduce what problem you mean. If you need to
keep track of a position, you'll have to do the processing
within the recursive template ("positionCounter" in your example).
If you can describe the string processing you have to do in more
detail, some more help may be available. In any case, XSLT isn't
the best suited tool for many of the more unusual string processing
tasks, if this is the case investigating in writing an extension
function or an embedded script in another language may be useful.
Regards
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list