This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: given @id="1.2.3" .... -1 || +1 to the "3" in @id??
On Fri, Jun 29 '01 at 15:41, Anthony E. wrote:
> ...in other words, i want to add or subtract '1' from
> the substring after the last '.' in $x = '1.2.3.4'.
While my first idea was not at all, this is wrong. All you have to do
is:
- find position of last '.'
- get number after last '.'
- conver it to a number (and placing it into variable)
- create a new strig with oldstr + <xsl:value-of select="$var+1"/>
I leave the real implementation as an exercise to the dear reader (all
info you need is e.g. on the XSL-T quick reference offered by
mulberrytech.com)
--
Goetz Bock IT Consultant
Dipl.-Inf. Univ.
PGP signature