tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/104-using-javascript-in-xslt-formats-tutorial-or-code-sampleCascade CMS: Discussion 2018-10-18T20:36:26Ztag:help-archives.hannonhill.com,2010-02-09:Comment/119650742011-12-09T01:59:16Z2011-12-09T01:59:16ZUsing javascript in XSLT formats: tutorial or code sample?<div><p>This should get you off to a start:</p>
<p><a href=
"http://pastebin.com/ZRvX8z5P">http://pastebin.com/ZRvX8z5P</a> is
the XSL we include in other XSLs. It contains a xalan-component
element that defines some Javascript.</p>
<p>This paste is a snippet of XSL that runs the getDate function in
the first file above: <a href=
"http://pastebin.com/JtYChmR6">http://pastebin.com/JtYChmR6</a></p>
<p>Since you asked for a sample I won't go into meticulous detail
on this. There are a few spots where you have to make sure your
namespace is correctly defined and correctly understood.</p>
<p>Hope that helps!</p></div>Lee Roberson (Function Digital LLC)tag:help-archives.hannonhill.com,2010-02-09:Comment/119650742011-12-09T14:18:25Z2011-12-09T14:23:04ZUsing javascript in XSLT formats: tutorial or code sample?<div><p>Thank you!!!</p></div>lmwatson