xsl-list
[Top] [All Lists]

RE: [xsl] exslt random:random-sequence() and Math:random()

2010-03-18 07:27:28
Michael - I have noticed that calling the function 
current-dateTime() multiple-times within one XSLT invocation 
seems to always give the same result even if a significant 
amount of time has elapsed - is this for the same reason?

Not quite the same reason: in this case it's an explicit requirement of the
spec that the value returned is always the same. Though underlying that is
the desire to make it a pure function.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--