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

How to call a href?

Subject: How to call a href?
From: Kara Lee <KaraL@xxxxxxxxxxxxxx>
Date: Mon, 2 Aug 1999 12:04:10 -0700
a href onclick
Title: How to call a href?

I'm having a problem building a link.  I need to embed a URL in the XML file and call that URL in the XSL.   I will also be using a function I have that will encode any characters in the URL that might be misinterpreted by a browser, but I didn't do that here for readability.

Example XML:
<Author><a href="" href="http://data/dev/?Query=Author%3AKaste+M&Path=" TARGET="_blank">http://data/dev/?Query=Author%3AKaste+M&Path=">Kaste&#32;M">
Kaste M
</a></Author>

Here's what I've tried:
<xsl:template match="a" xml:space="preserve">
           <A class="hop" href="" @href" onclick="return false" >

              <xsl:value-of select="textNode()"/>
           </A>
</xsl:template>

Then I have an onclick object but I don't know what to do with it.  Right now it just brings up 'xsl:value-of @href'.  But I cant put the URL in there because it changes with each element ( Author, title, etc...).

I think need to pass the URL and the node name and the text node to an ASP page that will then perform a new query with that path, but I don't know how to do that. 

Any help will be greatly appreciated.
Thanks in advance.
Kara


--------------------------------------
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.