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 does not have , use the of the immediate one level up". Basically I want to add node if does not have one, and that 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??
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.