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

RE: Assigning numbers

Subject: RE: Assigning numbers
From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx>
Date: Thu, 11 Dec 2003 11:50:24 +0100
passwords list
Jarno

I am just trying to get the following

value1=Entorpresse&value2=KFC&value3=1. Questions Dossiers&value4=E -
110803GTO nama LK213 environmental chick (2001 18)

Making a HREF is not an issue.

Issue to generate value1, value2 etc.

Something like following

   <xsl:for-each select="location">
	i=1;
 	 <td>value[i]=<xsl:value-of select="."/>&amp;</td>
	i=i+1;
   </xsl:for-each>

-----Original Message-----
From: Jarno.Elovirta@xxxxxxxxx [mailto:Jarno.Elovirta@xxxxxxxxx] 
Sent: 11 December 2003 11:35
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Assigning numbers


Hi,

> ----------------------------- Expected Results
> ------------------------------
> 
> <a href="http://localhost?value1=Entorpresse&value2=KFC&value3=1.
> Questions Dossiers&value4=E - 110803GTO nama LK213 environmental chick

> (2001 18)"> click here </a>

You say you want to generate a link
 
> ----------------------------- my.xsl ------------------------------
> 
> <xsl:template match="link">
> <table>
>  <tr>
>   <xsl:for-each select="location">
> 	 <td>value=<xsl:value-of select="."/>&amp;</td>
>   </xsl:for-each>
>  </tr>
> </table>
> </xsl:template>

But in your stylesheet you're creating a table. Which one should it be?
Anyhow, use <xsl:value-of select="position()" />.

Cheers,

Jarno - Lights Of Euphoria: True Life

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


______________________________________________________________
This message has been scanned for all viruses by BTnet VirusScreen. The
service is delivered in partnership with MessageLabs.

This service does not scan any password protected or encrypted
attachments.  

If you are interested in finding out more about the service, please
visit our website at
http://www.btignite.com/internetservices/btnet/products_virusscreen.htm
==============================================================

 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.