RE: [xsl] Simple Question newie

Subject: RE: [xsl] Simple Question newie
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Fri, 13 Sep 2002 15:12:02 +0100
> XML File Snippit:
> <anId>
> yahoo.com
> </anId>
> 
> my XSL Snippit that does not work:
> <xsl:template match="anId">
> 		<A><xsl:attribute name="HREF"><xsl:value-of 
> select="{.}"/></xsl:attribute>Click Here</A>
> 	</xsl:template>
> 

your are mixing shorthand ( curly brackets ) up !

try

<xsl:template match="anId">
	<A href="{.}">Click Here</A>
</xsl:template>

gl, jim fuller


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


Current Thread