RE: [xsl] Output a link in a transformation to html

Subject: RE: [xsl] Output a link in a transformation to html
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 1 Jun 2001 09:02:17 +0100
> I am doing a transformation from xml to html.
> This example is not well-formed, why?
> 
>     <H3>Web: <A HREF= <xsl:value-of select="."/>> 

XML does not allow elements to be nested within attributes.

This is why XSLT invented attribute value templates, allowing you to write:

<a href="{.}">

Mike Kay
Software AG 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread