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

RE: xsl href url in xml

Subject: RE: xsl href url in xml
From: Américo Albuquerque <melinor@xxxxxxx>
Date: Sat, 14 Jun 2003 15:42:45 +0100
url in xml
Hi

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of dsk
> Sent: Saturday, June 14, 2003 1:16 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl href url in xml
> 
> 
> Hi, I believe I'm trying to do something similar. There is an 
> xml document with a url. How can xsl be used to format the 
> url so that when clicked it responds?
> 
> tia,
> dk
> 
> 
(...)
>            <xsl:template match="link">
> 	 		<a href="javascript:window.open('{xsl:value-of
> select="docpath"/}')"><xsl:apply-templates/></a>

You don't need xsl:value-of in AVTs. Replace this line by:
<a href="javascript:window.open('{docpath}')"><xsl:apply-templates/></a>

Hope this helps you.

(...)




 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.