|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Urgent - Assigning <xsl:variable> with javascript vari
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








