xsl-list
[Top] [All Lists]

Re: [xsl] creating arbitrary document references

2019-05-29 08:51:24
On Tue, May 28, 2019 at 09:12:08PM -0000, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de scripsit:
On 28.05.2019 22:38, Graydon graydon(_at_)marost(_dot_)ca wrote:
So how can I pick a random member of that sequence of
files-available-to-be-referenced each time the template matches and I
need to replace the value of @href with that arbitrary actual file
reference?

You could also try
  random-number-generator(generate-id())?number

I tried this one first in preference to attempting to comprehend
accumulators.

Works beautifully.

Thank you!

-- Graydon
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>