generate random number in RSS viewer webpart

前端 未结 1 1818
情深已故
情深已故 2020-12-12 03:28

I am using RSS viewer webpart with the following references:

xmlns:ddwrt=\"http://schemas.microsoft.com/WebParts/v2/DataView/runtime\"
xmlns:rssaggwrt=\"htt         


        
1条回答
  •  醉梦人生
    2020-12-12 04:11

    If your processor does not support the EXSLT math:random() function, then you can:

    1. check the documentation to see if the processor provides extension functions under a different namespace;
    2. write your own extension function using the extension mechanism provided by your processor;
    3. supply a random number to the stylesheet as a parameter at runtime;
    4. derive a random number from the current date/time (if your processor can generate those, or if you can pass them to the stylesheet at runtime) or from some other non-constant data, for example the length of the processed document (knowing the purpose would be helpful here);
    5. get a random number from a web service.

    0 讨论(0)
提交回复
热议问题