xsl-list
[Top] [All Lists]

Re: Random

2005-04-28 14:00:59
On 4/29/05, Ali Choumane <ali(_dot_)choumane(_at_)imag(_dot_)fr> wrote:
Hi,
the solution provided by Dimitre for breaking string into substrings or
arrays, was satisfying for my application.

In this part of xslt code:
<sentence>
 <xsl:attribute name="stamp">Key</xsl:attribute>
 <xsl:value-of select="concat($arg1/sentence[last()], $arg2)"/>
</sentence>

I need to give a random value to the "Key" because I have many "sentence" as a
result's transformation,

can you help me?


Yes, use the templates in 

       random.xsl 

from FXSL.


A very detailed description is available at:

http://fxsl.sourceforge.net/articles/Random/Casting%20the%20Dice%20with%20FXSL-htm.htm



Cheers,
Dimitre Novatchev

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