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

RE: How to give Dynamic Hyperlinks...

Subject: RE: How to give Dynamic Hyperlinks...
From: krishnas@xxxxxxxxxxxxx
Date: Mon, 9 Jun 2003 17:40:08 +0530
dynamic hyperlinks html
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:  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

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.