Subject: [xsl] Set XSL-Value in a JavaScript From: henry human <henry_human@xxxxxxxx> Date: Tue, 30 Sep 2008 13:12:22 +0200 (CEST) |
Hi I am trying to set an html action dynamically . The prameter which I set for the action is saved in xml file. With the following code I can not set the parameter in the JavaScript. Thanks for any hint ***********XSL************ <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/details"> <html> <head> <script type="text/javascript"> function OnSendForm(emailAdress) { document.myForm.action =emailAdress; } </script> </head> <body> <p>Send feedback!</p> <form method="post" enctype="text/plain" name="myForm" action=""> <textarea name="mail" rows="7" cols="15" /> <input type="submit" value="Send!" onklick="OnSendForm(<xsl:value-of select="/details/address" /> )" /> </form> </body> </html> </xsl:template> </xsl:stylesheet> **************XML**************** <?xml version="1.0" encoding="iso-8859-1"?> <?xml-stylesheet type="text/xsl" href="text.xsl" ?> <details> <address >mailto:mymail@xxxxxxxxxx</address> </details>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Re: Benefits of xsl.seque, Michael Kay | Thread | Re: [xsl] Set XSL-Value in a JavaS, Martin Honnen |
RE: [xsl] Re: Benefits of xsl.seque, Michael Kay | Date | Re: [xsl] Set XSL-Value in a JavaS, Martin Honnen |
Month |