Determine Target Links in custom functoid at compile time

Home Page Forums BizTalk 2004 – BizTalk 2010 Determine Target Links in custom functoid at compile time Determine Target Links in custom functoid at compile time

#13842

Hi all

I am building a custom functoid that implements an XSLT Call-Template, and I want to drag the functoid’s output to the node in the target schema within which the call-template should be executed. However, I have observed that when I do this the call-template call is inserted in the correct location, but that the target node definition does not appear in the validate-map xslt (then obviously, neither in the output xml).

The mass-copy functoid illustrates what I need: if you drag mass copy output to a node called, say, <Data>, then in the validate-map xslt you will see that the <xsl:copy-of statements select=\”*\”/> appear within a <Data> node in the output.

Could someone therefore please advise as to how, at compile (or any other!) time, I can evaluate the XPath in the Target Links property that is used by the calling map for this specific instance of the functoid so that I can embed the required node name in the call-template output (of the GetInlineScriptBuffer function)? …or advise if there is a better way of doing it?

I assume this must be do-able as Mass Copy manages it…

Thx in advance

Bob