cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alistair Hopkins <alist...@berthengron.co.uk>
Subject Re: how can I define a hyper link in xslt?
Date Tue, 30 May 2000 14:58:27 GMT
there is a special construction for value-of inside an element
  just use { and }

as in:

<A class="marknav" href="{@url}" target="MAIN"><xsl:value-of 
select="@text"/></A>

for <link url="www.boo.com" text="Flying Dutchman">

At 04:41 PM 5/30/00 +0200, you wrote:
>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