View Single Post
  #1 (permalink)  
Old August 29th, 2019, 03:09 AM
msambasiva@gmail.com msambasiva@gmail.com is offline
Registered User
Points: 44, Level: 1
Points: 44, Level: 1 Points: 44, Level: 1 Points: 44, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2017
Posts: 9
Thanks: 3
Thanked 0 Times in 0 Posts
Default Unique identifier generator each time

Hi,

XSLT2.0, Saxon

We have a requirement to create a xml file foreach service given below. As the service names are same, we are using generate-id to append a random number. ex: Sales_Person_Setup.12345.xml Sales_Person_Setup.76589.xml

<service anchor="com.apps.cdm.foundation.resources.resource ServiceV2.SalesPersonService">
<name>Sales Person Setup</name>

<service anchor="com.apps.cdm.foundation.resources.resource Service.SalesPersonService">
<name>Sales Person Setup</name>

So far, it's good. The problem here is, generate-id is creating separate unique id for each execution.

We need to have unique identifier using anchor attribute & name element each time. It would be great help if you can suggest any clue.

Thanks in advance,
Samba.
Reply With Quote