xsl-list
[Top] [All Lists]

RE: xsl href url in xml

2003-06-14 07:42:45
Hi

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
dsk
Sent: Saturday, June 14, 2003 1:16 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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



<Prev in Thread] Current Thread [Next in Thread>