RE: [xsl] How to give Dynamic Hyperlinks...

Subject: RE: [xsl] How to give Dynamic Hyperlinks...
From: krishnas@xxxxxxxxxxxxx
Date: Mon, 9 Jun 2003 17:40:08 +0530
David Carlisle,

thank you  for your advise,i am able to get my job done.

sincerely,
Krishna Kishore





-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Monday, June 09, 2003 4:50 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] How to give Dynamic Hyperlinks...




   <A HREF="home">

that would just produce  an attribute with value home (as you presumably
found out)
You want to evaluate the home variable, so you want $home not home and
then you want to put it in {} so it is evaluated not taken as a string
so:

<A HREF="{$home}">

Note it would be better to be

<a href="{$home}">

At some point you are going to want to switch from html to xhtml and in
xhtml element and attribute names are lower case.

You don't actually need a variable at all:


  <xsl:variable
  name="home">
     <xsl:value-of
  select="concat(test_name,'.xml')"/>
                                 </xsl:variable>
  <a href="{$home}">


could more easily be written

<a href="{test_name}.xml">


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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