August 2000
Beginner
456 pages
9h 24m
English
In previous hours, you used JavaScript to perform the data-reading operations. The sections of JavaScript code were delimited by the opening and closing <SCRIPT> tags where the scripting language was specified by assignment. The XSL equivalent of this is the <xsl:eval> tag.
To demonstrate how to embed a section of JavaScript code in an XSL file, you'll need to recall a function present in the JavaScript library. This function is the random number generator, which can be used to generate an arbitrary number within any desired range. It's a member of the Math library, so the notation to call it is as follows:
Math.random();
It will return a floating point number between 0 and 1.
Since your goal is to ...
Read now
Unlock full access