ethar turky
asked on
random xsl select
Hi,
How to select random 5 news using xsl from xml file
thanks
How to select random 5 news using xsl from xml file
thanks
as you can see here
http://www.exslt.org/math/functions/random/index.html
only a few processors support math:random
http://www.exslt.org/math/functions/random/index.html
only a few processors support math:random
ASKER
how can use : math:random()
also how can know the processor, I use Microsoft ( if that what do u means )
also how can know the processor, I use Microsoft ( if that what do u means )
Ah OK,
I mean the XSLT processor
How do you run the XSLTs, from C#?
I mean the XSLT processor
How do you run the XSLTs, from C#?
ASKER
use asp Set oXSL = Server.CreateObject("Msxml 2.DOMDocum ent.3.0")
ah OK, that means you are using msxml and XSLT1
I can work with that, hang on
I can work with that, hang on
ASKER
is there is a better option?
ASKER
is there is a better option? XSLT2 or something?
XSLT2 has a number of benefits, but integration in ASP is still a bit tricky
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thnx , work like charm
welcome
There is EXSLT supported by some XSLT1 processors, you can call in C#code or JScript code in some other processors or you can pass in a random number as a parameter
Before we can pursue this, I would like to know which XSLT processor you are using