I have an xml document and I want to transform it to add an extra node element depending on some condition. Example given in the attachment. I want to write an .xsl program for the requirement "If a <report> does not have <department>, use the <department> of the immediate <Person> one level up". Basically I want to add <department> node if <report> does not have one, and that <department> value should be of the person one above it in my case. The values for
Tommy Trojans - Engineering
Ronald Jackson - Engineering
Justin Jones - Marketing
Can anyone please advice on how to do this??
Thanks,
Ace
Tommy Trojans - Engineering
Ronald Jackson - Engineering
Justin Jones - Marketing
Can anyone please advice on how to do this??
Thanks,
Ace