[Home] [By Thread] [By Date] [Recent Entries]
Colin Paul Adams wrote:
"Andrew" == Andrew Welch <andrew.j.welch@xxxxxxxxx> writes: No, I was implying adding a unique number, not necessarily a timestamp. One way (and imho the preferred way) is doing this by retrieving the id of a newly created node: <xsl:function name="f:my-id">
<xsl:variable name="new-node">
<node />
</xsl:variable>
<xsl:sequence select="generate-id($new-node)" />
</xsl:function>Now, calling f:my-id() will always return a unique id within the session. If you also need a unique id globally, add a timestamp or use my GUID techniques. Cheers, -- Abel Braaksma
|

Cart



