1. I need to pass in a different div name based on the numeric value of the miles element. I'm assuming I can use an xsl chose for that, but how would I create a variable that I set based on the when statement
2. I need to pass all three xsl variables as some html in the second part of the function. Essentially the xsl would need to output a JS function that looks like this millionMiles("divIdBasedOnWhenHere", "Name Driving Since Miles"); How do I combine those elements together in this JS function call? Thanks
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.