XSL processing question..
I have an xml file that looks like this (vaguely):
<AppvInvDoc>
<AppvInv ActionCode="U">
<AH>
stuff...
</AH>
<AL>
more stuff...
<AD>
still more stuff
</AD>
<AD>
still more stuff
</AD>
</AL>
<AL>
more stuff
<AD>
still more stuff
</AD>
</AL>
</AppvInv>
</AppvInvDoc>
I have to use an XSLT to turn this into a flat file. The example above should result in three different lines. For each AD that's processed, I need access to it's parent AL element, and the AH element at the top.
What's the right witches brew of matches, for-eaches and so forth? I've been playing with this for about a day and I can't wrap my head around the answer.
Thanks,
Eric
|