[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: increment value

Subject: Re: increment value
From: Mukul Gandhi <mukulgandhi2003@xxxxxxxxxxx>
Date: Thu, 22 Jan 2004 21:52:27 +0000 (GMT)
gmt increment for est
Hi Ricardo,
The following XSL produces the desired o/p -

<xsl:for-each select="//b">
  <b id="{concat('b',position())}" />
</xsl:for-each>

Regards,
Mukul

 --- Ricardo Saraiva <rss@xxxxxxxxxxxxxx> wrote: >
Hello,
> 
> I want to increment a value to concat to a string. 
> For example:
> 
> 	<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"/> 
> 	.
>       
> Can anybody help,
>       
> Thanks
>       
> Ricardo Saraiva.
> 
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
>  

________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.