Subject: RE: [xsl] Using msxsl:script or EXSLT function to define a functi on From: krishnas@xxxxxxxxxxxxx Date: Wed, 18 Jun 2003 10:12:40 +0530 |
Claudio: <xsl:template match="/"> <body bgcolor="#ffffdd"> <script language="javascript"> function validate(refnum) { if( bool==1) { } oldnum=refnum; bool=1; document.getElementById(refnum).focus(); } </script> you define your script function after " <xsl:template match="/"> " and u call your script function like this in your template; <a href="javascript:validate('{$home}'); "> <xsl:value-of select="message_ref_number"/> </a> i hope this works. cheers krishnakishore -----Original Message----- From: Claudio Russo [mailto:claudio_russo@xxxxxxxxx] Sent: Wednesday, June 18, 2003 9:15 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] Using msxsl:script or EXSLT function to define a function Does anybody know how to use msxsl:script to define a javascript function, or EXSLT function definition? I'm not able to use it inside xsl: without having error. ===== Regards, Claudio. IT Consultant. Buenos Aires, Argentina. e-mail: claudio_russo@xxxxxxxxx __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Using msxsl:script or EXS, Dion Houston | Thread | [xsl] Urgent: Grouping attributes t, Bhargav Bharath |
[xsl] Using msxsl:script or EXSLT f, Claudio Russo | Date | [xsl] Urgent: Grouping attributes t, Bhargav Bharath |
Month |