Random Items in XSLT
问题 I'm customizing a Google Search appliance, which uses XSLT to present results to the user. Our design calls for one of several images to be included randomly on the results page. Is there a way to use randomness in XSLT? (Pseudo-randomness is just fine for this application.) Calling random templates would be fine, as would just being able to generate a random number and branch based on that. 回答1: Depending on your platform XSL allows inject of user code like C#. I don't recommend this. Better