|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: randomizing data
From: SnHndrc@xxxxxxx [mailto:SnHndrc@xxxxxxx] > Is it possible to grab sections of an xml document <chapter1><title></title><para></para></chapter1> and randomize it with xslt? > Chapter 10 would be first, then 8 then another chapter in random order. Yes, you could do that. I have a hack in the forthcoming OReilly book "XML Hacks" that shows a simple way to randomize with xslt. Basically, insert a string of random numbers into a node in the style sheet and index into it to get the random numbers. Or you could pass in a different random string as a global parameter each time you run the stylesheet. Cheers, Tom P
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








