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

Re: Simple question - links

Subject: Re: Simple question - links
From: "Tangi Vass" <tangivass@xxxxxxxxxxxxxx>
Date: Wed, 6 Oct 1999 15:13:51 +0200
Re: Simple question - links
I asked nearly the same question to this list a few days ago and I got this
answer:

<xsl:template match="mylink">
  <a href="{current()/text()}">Click Here</a>
</xsl:template>

The trick is the {} : you can put what you want inside : attributes (with
@), functions calls, ...
I'm not quite sure of the "current()/text()": it works well even if the
current node has subnodes but is it the cleanest way of doing it?

Tangi

----- Original Message -----
From: <Anthony.Behan@xxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Wednesday, 06 October, 1999 13:47
Subject: Simple question - links


>
>
>
> What XSL do I need to get from
> <mylink>
> www.yahoo.com
> </mylink>
>
> to
>
> <a href="www.yahoo.com">Click Here</a>
>
> The main problem appears to be the quotes.
>
> Thanks,
>
> Anthony Behan.
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.