Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

inserting recordset in href attribute

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
[245 byte] By [keshav] at [2007-11-9 14:54:36]
# 1 Re: inserting recordset in href attribute
"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
Rohit Wason at 2007-11-11 23:33:56 >