This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Output a link in a transformation to html


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]