Page is a not externally linkable
- Code, Content, and Presentation
-- XML Development
---- Need to call a JS function passing in concatenated XSL variables


httpwebwitch - 1:38 pm on Oct 24, 2011 (gmt 0)


you can make XSLT render a <script> element, and everything in it.

Dont forget to use <![CDATA[ ]]> nodes so your script doesn't get mangled.

Another option is to output those XSL values into some hidden <input> elements, then write your javascript so it executes on pageload (or domready) and reads those values from the DOM. That way will be far less complicated & easier to code up.


Thread source:: http://www.webmasterworld.com/xml/4376773.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com