xsl-list
[Top] [All Lists]

RE: Simple Question newie

2002-09-13 07:12:02

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



<Prev in Thread] Current Thread [Next in Thread>