Mapping Multiple Child elements to one child element...
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Mapping Multiple Child elements to one child element...




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Mapping Multiple Child elements to one child element...  
Testdummy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-05 10:52 PM

New to Biztalk...so don't shoot me. 

I have a schema that has 6 child elements and I need to put the values
of those 6 elements in one child element in by outbound Mgs that allow
multiple occurances(set).

Question:
1.How do I step throught my inboundMessage child elements and map to
multiple child elements in my outboundMessage in Biztalk Mapper?

InbounMessage - Flattened ==> OutboundMessage -Not flattened

Thanks
JpII






[ Post a follow-up to this message ]



    Re: Mapping Multiple Child elements to one child element...  
Testdummy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-25-05 10:52 PM

EXAMPLE

SCHEMA (IN)
<header>
<PO>12</PO>
<CardNum>3245</CardNum>
<POLine>44</POLine>
<Box>1213</Box>
</header>


SCHEMA (OUT)
<root>
<code>
<Value>
</root>




Data will should look like this:

<root>
<code>401</code> -- Constant Value I will need to add (401)meaning PO
<Value>12</Value>

<code>402</code> -- Constant Value I will need to add (402)meaning
CARDNUM
<Value>3245</Value>

<code>403</code> -- Constant Value I will need to add (403)meaning
POLINE
<Value>44</Value>

<code>404</code> -- Constant Value I will need to add (404)meaning BOX
<Value>1213</Value>
</root>






[ Post a follow-up to this message ]



    Re: Mapping Multiple Child elements to one child element...  
carlos


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-28-05 10:03 PM


you can use a functoid script and write a custom Inline XSLT Call Template
like this:

<xsl:template name="MyXsltConcatTemplate">
<xsl:for-each select="/child::node()/child::*">
<xsl:element name="code">
<xsl:value-of select="local-name(.)" />
</xsl:element>
<xsl:element name="value">
<xsl:value-of select="./text()" />
</xsl:element>
</xsl:for-each>
</xsl:template>


"Testdummy" wrote:

> EXAMPLE
>
> SCHEMA (IN)
> <header>
>     	<PO>12</PO>
> 	<CardNum>3245</CardNum>
>     	<POLine>44</POLine>
> 	<Box>1213</Box>
> </header>
>
>
> SCHEMA (OUT)
> <root>
> 	<code>
> 	<Value>
> </root>
>
>
>
>
> Data will should look like this:
>
> <root>
> 	<code>401</code> -- Constant Value I will need to add (401)meaning PO
> 	<Value>12</Value>
>
> 	<code>402</code> -- Constant Value I will need to add (402)meaning
> CARDNUM
> 	<Value>3245</Value>
>
> 	<code>403</code> -- Constant Value I will need to add (403)meaning
> POLINE
> 	<Value>44</Value>
>
> 	<code>404</code> -- Constant Value I will need to add (404)meaning BOX
> 	<Value>1213</Value>
> </root>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:50 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register