Click to See Complete Forum and Search --> : inserting recordset in href attribute


keshav
04-08-2000, 11:59 PM
hi,

how can a recordset fetched from the database, be used in href attribute
of a link, in the XSL file ??
Using <a href="a.htm?id=<xsl value-of select="aRecord"/>" >...obviously
gives me error!!

keshav

Rohit Wason
04-17-2000, 07:08 AM
"keshav" <skeshav@hotmail.com> wrote:
>
>hi,
>
>how can a recordset fetched from the database, be used in href attribute
>of a link, in the XSL file ??
>Using <a href="a.htm?id=<xsl value-of select="aRecord"/>" >...obviously
>gives me error!!
>
>keshav
>
I think you are talking about placing the database-fetched values (into an
XML) in <A Href="..."> thru an XSL file
This is the way:

<a>
<xsl:attribute name="href">
newpost.asp?group = <xsl:value-of select="groupid"/>
</xsl:attribute>New Post Here
</a>

You cannot directly place <xsl:value-of...> in any HTM tag like <A></A>
Rohit