cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Newland" <>
Subject RE: how can I define a hyper link in xslt?
Date Tue, 30 May 2000 14:56:17 GMT

I create links by using a template in my XSL style sheet:

<xsl:template match="my_link">
	<a href="{@url}"><xsl:value-of select="@name"/></a>

I use the following in my XML document to display the link:

<my_link url="login.xml" name="Log In"/>

Hope this helps,


-----Original Message-----
From: []
Sent: 30 May 2000 15:42
Subject: how can I define a hyper link in xslt?

We use <a href="">somedomain</a> to define a hyper link
HTML. In the xml file, I have an element called "url" which is used to store
links. How can I make a style sheet to transfer the data into clickable
link in html?

In the style sheet, I tried <a href=xsl:value-of select="url"/></a> , failed
with an exception. Any ideas are appreciated.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message