[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Problem with generating Unique ids
From: Emmanouil Batsis <Emmanouil.Batsis@xxxxxxxxxxx>
Date: Mon, 04 Jul 2005 16:34:54 +0300
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

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member