This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Urgent - Assigning <xsl:variable> with javascript variable
- From: "Aparna Konduri" <a_konduri at lycos dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 05 Aug 2002 17:26:21 -0400
- Subject: [xsl] Urgent - Assigning <xsl:variable> with javascript variable
- Organization: Lycos Mail (http://www.mail.lycos.com:80)
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello,
I tried to generate <div> tag dynamically with Javascript.
id is a javascript variable.
document.write("<div ID="+ id +" style='visibility:visible;
display:block'">);
<a href="X"></a>
document.write("</div>");
When I try to access the div tag, the browser complains that such a tag doesn't exist.
Because the above approach is not working, I thought I would do
<xsl:variable name="name">id</xsl:variable>
<div style="visibility:visible;display:block">
<xsl:attribute name="ID">
<xsl:value-of select="@name" />
</xsl:attribute>
<a href="X"></a>
</div>
This also doesn't work. How to store a javascript variable in <xsl:variable>?
Do you think there is any other way to do this? Please help.
Thanks,
Ana
__________________________________________________________
Win a First Class Trip to Hawaii to Vacation Elvis Style!
http://r.lycos.com/r/sagel_mail/http://www.elvis.lycos.com/sweepstakes
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list