cocoon-users mailing list archives

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

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>
	<xsl:apply-templates/>
</xsl:template>

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

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

Hope this helps,

Chris

-----Original Message-----
From: ling.shi@bi.no [mailto:ling.shi@bi.no]
Sent: 30 May 2000 15:42
To: cocoon-users@xml.apache.org
Subject: how can I define a hyper link in xslt?


We use <a href="http://somedomain.com">somedomain</a> to define a hyper link
in
HTML. In the xml file, I have an element called "url" which is used to store
the
links. How can I make a style sheet to transfer the data into clickable
hyper
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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message