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: building a link...


> 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

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