[xsl] xml to xml mapping - how to combine two groups

Subject: [xsl] xml to xml mapping - how to combine two groups
From: <Andy.Lewis@xxxxxxxxxxx>
Date: Fri, 4 Jan 2008 13:11:35 -0500
I'm not sure how to add to a thread so I'm listing my original question
to be sure. I've added a note at the bottom.

I have the following xml data:

<LIST_CREATION>
<CREATION>
<CREATION_DATE>03-OCT-07</CREATION_DATE>
</CREATION>
</LIST_CREATION>
<LIST_NOTE>
<NOTE>
<OUT_NOTE>Blue Box</OUT_NOTE>
</NOTE>
<NOTE>
<OUT_NOTE>Red Box</OUT_NOTE>
</NOTE>
</LIST_NOTE>

I need to map these into one grouping.
I would like the result to be something like:
<LIST_COMBINED>
<COMBINED>
<CREATION_DATE>03-OCT-07</CREATION_DATE>
<OUT_NOTE>Blue Box</OUT_NOTE>
</COMBINED>
<COMBINED>
<OUT_NOTE>Red Box</OUT_NOTE>
</COMBINED>
</LIST_COMBINED>

I have no idea how many occurrences of <CREATION> or <NOTE> that I may
have. In the above example, there were two occurrences of <NOTE> and one
of <CREATION>. Thus I needed two occurrences of <COMBINED>.  I could
have any number of either. I hope this clarifies!!


Thanks! Andy




This message may contain confidential and/or privileged information. This
information is intended to be read only by the individual or entity to whom it
is addressed. If you are not the intended recipient, you are on notice that
any review, disclosure, copying, distribution or use of the contents of this
message is strictly prohibited. If  you have received this message in error,
please notify the sender immediately and delete or destroy any copy of this
message.

Current Thread