Embed JavaScript into XSL
-
Okay - I am fairly new to XSL and am trying to embed some JavaScript into an existing XSL stylesheet. The JS is to prevent the refresh from blinking. This is a really long post - just a warning!! This is a sample of the XSL where I need to embed the script:
Hole
Par
Yardage
Scoring Avg
Rank
Avg Over/Under Par
Eagles
Birdies
Pars
Bogeys
Double Bogeys
Other
-
Okay - I am fairly new to XSL and am trying to embed some JavaScript into an existing XSL stylesheet. The JS is to prevent the refresh from blinking. This is a really long post - just a warning!! This is a sample of the XSL where I need to embed the script:
Hole
Par
Yardage
Scoring Avg
Rank
Avg Over/Under Par
Eagles
Birdies
Pars
Bogeys
Double Bogeys
Other
Simple - here's how you can embed JavaScript into an XSL document... <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ... <xsl:text disable-output-escaping="yes"> <![CDATA[ <script> // your code goes here </script> ]]> </xsl:text> ... </xsl:stylesheet> HTH! Essam - Author, JScript .NET Programming
...and a bunch of articles around the Web -
Simple - here's how you can embed JavaScript into an XSL document... <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ... <xsl:text disable-output-escaping="yes"> <![CDATA[ <script> // your code goes here </script> ]]> </xsl:text> ... </xsl:stylesheet> HTH! Essam - Author, JScript .NET Programming
...and a bunch of articles around the Web