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

RE: How to call a href?

Subject: RE: How to call a href?
From: Kara Lee <KaraL@xxxxxxxxxxxxxx>
Date: Mon, 2 Aug 1999 16:15:02 -0700
kara lee
Title: RE: How to call a href?

I have a slightly new question now on the same subject.  In my XSL I'm trying change a URL on the fly.
I've tried this:
<a class="hop" href="" false"><xsl:value-of select="textNode()"/></a>

I know that '{node-name} is not the correct Syntax but I'm not sure what I can put in there to achieve the same results.  The beginning of the href will always be the same but the node name and textnode will change the URL to what it should be.

I want the HREF to look like this:
./Query=NodeName:TextNode
So I encode it to look like this:
        ./Query%3DNodeName%3ATextNode

I only want the href to show in the grey caption area  at the bottom of the web page.  This is done automatically with the value of href that is in the <a> tags.  So that part is taken care of if I can get it to show the node name instead of the phrase 'node-name'.

I tried using a variable for the value-of node name and textnode() in my template but I get the error:
        Xsl:variable cannot be used here.

If you have any ideas I would apprecieate them.
Thanks in advance,

--------------------------------------
Kara Lee
Applied Technical Systems
karal@xxxxxxxxxxxxxx
http://www.apptechsys.com
CCM Technology Demo:
http://www.apptechsys.com/ccm
---------------------------------------


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.