This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: for each and count problems


> 	I have the following code:
> 	<xsl:for-each select="$elem">				  
>     	<a href="{$url}">

> The problem is that I would like to give a parameter named 
> index to each href to obtain the following result:

> For the first elem element: href="{$url}?index=1"
> For the second elem element: href="{$url}?index=2"

<a href="{$url}?index={position()}">

Mike Kay


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]