Subject: Re: [xsl] given @id="1.2.3" .... -1 || +1 to the "3" in @id?? From: Goetz Bock <bock@xxxxxxxxxxx> Date: Sat, 30 Jun 2001 02:02:30 +0200 |
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.
Attachment:
pgp00015.pgp
Description: PGP signature
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] given @id="1.2.3" .... -1, Anthony E. | Thread | [xsl] [XSL] Custom DocumentHandler , Lajos Moczar |
Re: [xsl] passing parameters with I, Goetz Bock | Date | Re: [xsl] Quark -> XSL -> XML, Christopher R. Maden |
Month |