Random Items in XSLT

前端 未结 5 1036
轮回少年
轮回少年 2020-12-17 18:18

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

5条回答
  •  执念已碎
    2020-12-17 18:51

    If you are doing this for anything Microsoft, I found that using XSLT's function ddwrt:Random works.

    I use the following to create the random number

    
    
    

    and the following to present

    
    
    

提交回复
热议问题