Re: Get data from unbound element without using looping functiod

Home Page Forums BizTalk 2004 – BizTalk 2010 Get data from unbound element without using looping functiod Re: Get data from unbound element without using looping functiod

#19451

Hello,

This is quite easy using inline XSLT in a map, simply create two Scripting Functoids and use the following Inline XSLT:

<InRefOutputNode>
<xsl:value-of select=”//Instruction/PIValueParameter[@name = ‘InRef’]/@value” />
</InRefOutputNode>

Simply replace the bold @name = ‘InRef’ with @name = ‘OutRef’ to extract that value in your second Scripting Functoid. Further details about how to use this functiod for Inline XSLT can be found at the MSDN website: http://technet.microsoft.com/en-us/library/ms916558.aspx

As an aside, I don’t actually like how the Bts mapper does inline XSLT – the //Instruction designation for starters isn’t valid XSLT and doesn’t start with your root element, which seems a bit strange. Anyway, the XSLT code above works!

Hope this helps, Nick.