Re: [xsl] newbie question: nested tags

Subject: Re: [xsl] newbie question: nested tags
From: Trevor Nash <tcn@xxxxxxxxxxxxx>
Date: Mon, 11 Feb 2002 19:45:00 +0000

>I'm guessing the "url" is an element within scope that has the desired
>url string within it's text node(s)?
>If so, then...
>   <xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute>
>   link

Not wrong, but clumsy.  You need to look up attribute value templates
too, which gives you:

<a href="{url}"> link </a>

Trevor Nash

Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 XSL-List info and archive:

Current Thread