HI friends,
i have a input xml document with some nodes. One of it is “Description”.
i need to map this to some other xml document which contains some other nodes.
for some nodes i have made one to one mapping.
but for other nodes in target document i need to map based on condition that,
if “Description” element in input document is equal to “store” it needs to be mappded to “Storage” element in the target document.
if Description is equal to “Grossary” it needs to be mappded to “GrossaryStore” element in the target
document.
.
.
.
.
like wise i need to map the “Description” element based on its content to corresponding element in the target document. i.e few elements in the target document depend on content of “Description” element. All these dependent elements are min occurs 0.
i can take a scriping functiod for each condition and assign it.
but suppose if i have to check for 20 elements, then i end up adding 20 scripting functiods.
i am not good at xslt.
is there any way we can assing values with xslt in my requirement?