Skip to Content
0
Former Member
Apr 07, 2010 at 04:47 PM

dynamic generation of tags

57 Views

Hello All,

I have requirement something like this.

My scenario is file to file. Right now my sender is going to have just 20 fields which i need to pass to target on some condition. But in near future its going to increase upto say 100. Is there any ways that i can dynamically generate this tags? in addition to this requirement, my receiver will have tag names as per whatever is getting passed from Sender as a value.

As per example:

this is my mapping rule:

/pr:Feed/Data/Products/Product/AttributeValues/AttributeValue/@AttributeName[AttributeName="ABC Supplier ID" and language="en-US" and isGlobal ="true"]

then generate tag name as "ABCSupplierID". This is going to be my receiver tag name.

So at dynamic time my receiver tag name is going to be generated.

Is there a way to do it like this?

Is XSLT mapping helpful in this?

Thanks,

Hetal