xsl-list
[Top] [All Lists]

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

2010-03-18 15:17:37

So can I somehow use generate-id() to get all numeric unique 
random ids for a node? 

So long as you don't really care about randomness, and are using the word
simply to mean "unpredictable", then you could try

string-join(for $i in string-to-unicode(generate-id()) return
format-number($i, '000'), '')

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>
--~--