Subject: Re: [xsl] How to give Dynamic Hyperlinks... From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 9 Jun 2003 12:20:25 +0100 |
<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
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to give Dynamic Hyperlink, krishnas | Thread | RE: [xsl] How to give Dynamic Hyper, krishnas |
RE: [xsl] Calling a vbscript functi, Dave Bartmess | Date | [xsl] Re: When is a variable a node, Dimitre Novatchev |
Month |