| jeremy 2004-11-06, 5:48 pm |
| I have an inbound invoice document that can have many invoices with 1 to many
line items associated with each invoice. What I need to do is if the line
items of any one document are greater than 200, then I need to break that
single invoice into 2 separate Invoice elements. Is it possible to do this
with the biztalk mapper or with custom xslt? Does anyone have any suggestion
on how to accomplish?
Inbound Doc Structure:
<?xml version="1.0" encoding="UTF-8"?>
<Invoices>
<Invoice LineItemCount="250">
<LineItems>………………
</Invoice>
<Invoice LineItemCount="140">
<LineItems>………………
</Invoice>
<Invoice LineItemCount="15">
<LineItems>………………
</Invoice>
</Invoices>
Outbound Doc Structure
<?xml version="1.0" encoding="UTF-8"?>
<Invoices>
<Invoice LineItemCount="200">
<LineItems>………………
</Invoice>
<Invoice LineItemCount="50">
<LineItems>………………
</Invoice>
<Invoice LineItemCount="140">
<LineItems>………………
</Invoice>
<Invoice LineItemCount="15">
<LineItems>………………
</Invoice>
</Invoices>
|