xsl-list
[Top] [All Lists]

Re: Problem with generating Unique ids

2005-07-04 06:34:54
Lakshmi narayana wrote:

Hi,
I am new to XSLT. I struck with a problem. I want to generate the unique ids
to the nodes in the xml tree and add
those unique id as an attribute to that node. I am unable to to do that. Can
any one give me the xslt code to generate
unique ID and add it to the current node as an attribute.


Just use the generate-id() XPath function.

hth,
Manos

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



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