Re: building a link...

Subject: Re: building a link...
From: Ragnar Schierholz <raschi@xxxxxxxxxx>
Date: Tue, 11 Jul 2000 17:59:19 -0500
> I want to get:
> <a href='books.asp?b=XML'>XML</a>
> <a href='books.asp?b=ASP'>ASP</a>

That doesn't look like a too tough one.
This should do:

<xsl:template match="book">
        <xsl:element name="A">
                <xsl:attribute name="HREF"><xsl:value-of 
select="concat('books.asp?=',@title)"/></xsl:attribute>
                <xsl:value-of select="@title">
        </xsl:element>
</xsl:template>

So long,
        Ragnar


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


Current Thread