Subject: Re: [xsl] question on random numbers for browser XSLT From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx> Date: Fri, 24 Jul 2009 15:48:01 +0200 |
> Now back on topic, could you use random.org or a similar online random > number generator? I tried that, but - that would be no difference to the PERL solution on my own website (which acts as a local web service). - it simply does not work to access any document which does not reside on the same domain as the XML file by web browser security. That is the reason for my statement highlighted by ">>". This is no problem is the author of a XML/XSLT also is allowed to place a PERL script/Web service on the same domain he installs the XML/XSLT onto [which is no problem for me since it is my own :-)]. > After some playing around I found below (not pure XSLT) solution. >> Important is that the PERL script lives in the same domain as the >> stylesheet. You may try it out (random number "0-5") by clicking here: > http://stamm-wilbrandt.de/en/xsl-list/random/rand6.xml) Mit besten Gr|_en / Best wishes, Hermann Stamm-Wilbrandt Developer, XML Compiler WebSphere DataPower SOA Appliances ---------------------------------------------------------------------- IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschdftsf|hrung: Erich Baier Sitz der Gesellschaft: Bvblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 Ben Mendis <ben@antennahouse .com> To xsl-list@xxxxxxxxxxxxxxxxxxxxxx 07/24/2009 02:43 cc PM Subject Re: [xsl] question on random Please respond to numbers for browser XSLT xsl-list@xxxxxxxx lberrytech.com Not to get off topic, but outside the community of IT professionals, IE clearly dominates. Depending on the target audience, IE might account for more than 95% of browser share. I /still/ find websites that tell me to use IE instead of Firefox. Now back on topic, could you use random.org or a similar online random number generator? Martin Honnen wrote: > Vladimir Nesterovsky wrote: >> Usually you may access javascript from browser's xslt. > > With IE and MSXML you can use JScript or VBScript using the > msxsl:script extension element. However as far as I am aware other > browsers (Mozilla, Opera, Safari) do not offer any such feature so > saying "usually you may access javascript" does not really describe it. > -- Ben Mendis Support Specialist Antenna House 10410 Kensington Pkwy Suite 207 Kensington, Maryland 20895 USA Phone: +1 301-942-4007 Email: ben@xxxxxxxxxxxxxxxx Web: www.antennahouse.com,
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] question on random number, Ben Mendis | Thread | Re: [xsl] question on random number, Michael Dykman |
Re: [xsl] question on random number, Ben Mendis | Date | RE: [xsl] question on random number, Scott Trenda |
Month |