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(_at_)yahoo(_dot_)com]
Sent: Wednesday, June 18, 2003 9:15 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)yahoo(_dot_)com
__________________________________
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