[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: Tue, 3 Aug 1999 09:55:23 -0700
call href
Thanks for the tip Kay.  But when I do what you suggested: href={@href}
<mailto:{@href}> 
It comes up literally as {@href} <mailto:{@href}> , instead of the value at
href.  I'm not sure why.

So to get around it I thought I might try to go around that and build the
href in the XSL.  Since the first part of the URL will always be the same as
that of the current page, I just need a way to access the node name and its
text when I call href.
Example XML:
	<Author>Smith J</Author>

Example XSL:
<a class="hop" href="./Query&#61;{xsl:node-name}&#58;{xsl:textnode()}"
onclick="return false"> 
		<SPAN class="b"><xsl:entity-ref name="nbsp"/></SPAN>

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

So that it will produce an href of the base URL and "Query=Author:Smith J"
appended to the end of it.

I know that {xsl:node-name}{xsl:textnode()} does not work, but I'm not sure
what will.  Is it possible to do something like this?
Thanks in advance. 
---------------------------------------
Kara Lee
Applied Technical Systems
karal@xxxxxxxxxxxxxx <mailto:karal@xxxxxxxxxxxxxx> 
http://www.apptechsys.com <http://www.apptechsys.com> 
CCM Technology Demo: 
http://www.apptechsys.com/ccm <http://www.apptechsys.com/ccm> 
---------------------------------------



 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.