[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] increment value
Subject: RE: [xsl] increment value From: "Ricardo Saraiva" <rss@xxxxxxxxxxxxxx> Date: Thu, 22 Jan 2004 17:46:56 -0000 |
Hi, That was an example. The numbers were not to be added to the string. Imagine the example without the numbers. How do I increment a variable to add to the string? Thanks, Ricardo Saraiva -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Andreas L. Delmelle Sent: quinta-feira, 22 de Janeiro de 2004 17:16 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] increment value > -----Original Message----- > From: Ricardo Saraiva > > <snip /> > <a> > <b>1</b> > <b>2</b> > </a> > > <a> > <b>3</b> > <b>4</b> > </a> > > The output would be: > > <b id="b1"/> > <b id="b2"/> > <b id="b3"/> > <b id="b4"/> > . > Something like: <xsl:template match="a/b"> <xsl:element name="b"> <xsl:attribute name="id"> <xsl:value-of select="concat(name(.),.)" /> </xsl:attribute> </xsl:element> </xsl:template> Cheers, Andreas XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] increment value, Andreas L. Delmelle | Thread | Re: [xsl] increment value, G. Ken Holman |
RE: [xsl] Unwanted utf-16 encoding, Andreas L. Delmelle | Date | RE: [xsl] increment value, Strolia-Davis Christ |
Month |