Random Number Generation using XSLT

Just whipped this up real quick since I needed for something and thought I’d share. If you’re using a Microsoft based XSLT processor and have a need to generate random numbers for some purpose, here’s a quick xsl snippet to help you out. <?xml version=”1.0″?> <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” xmlns:msxml=”urn:schemas-microsoft-com:xslt” xmlns:random=”http://www.microsoft.com/msxsl” exclude-result-prefixes=”msxml random”> <xsl:output method=”text”/> <msxml:script…

3

The Watchmen

Note: It doesn’t have to look, smell, feel, taste like Spiderman to be a great superhero movie. If you watch it, don’t expect the traditional. I give it 5 out of 4 stars!

1