BizTalk Server General - mapper or custom xslt help!!

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2004 > mapper or custom xslt help!!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author mapper or custom xslt help!!
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>


PBR

2004-11-10, 2:47 am

The only ways to do this are:

a) within an orchestration (easy)

b) custom disassembling pipeline component (probably not worth the effort)
"jeremy" <jeremy@discussions.microsoft.com> wrote in message
news:474F6695-E2A1-4FDA-A5E8-D5DF221613A1@microsoft.com...
> 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>
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com