Re: [xsl] question on random numbers for browser XSLT

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 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:

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
             .com>                                                      To
             07/24/2009 02:43                                           cc
                                       Re: [xsl] question on random
             Please respond to         numbers for browser XSLT

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 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
Phone: +1 301-942-4007
Email: ben@xxxxxxxxxxxxxxxx

Current Thread