Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Developing Custom Biztalk Functoid Components

12 views
Skip to first unread message

Craig Beuker

unread,
Mar 1, 2002, 7:12:47 PM3/1/02
to
Greetings all,

I am attempting to build a custom mapping functoid and
have some questions, I am hoping some of you might have
answers for these.

In VB, you can build one of three types of functoids,
VBScript, JScript or XSLT.

What I have built (or am trying to build) is a functoid
that will loop through a set of data elements, Something
like the following:
<Root>
<Data>Data_1</Data>
<Data>Data_2</Data>
<Data>Data_1</Data>
<Data>Data_2</Data>
<Data>Data_1</Data>
</Root>

and return a set like this:
<Root>
<Data>Data_2</Data>
<Data>Data_2</Data>
</Root>

I have tried using a map with the existing functoids to do
this, but the best I can get is the following:
<Root>
<Data></Data>
<Data>Data_2</Data>
<Data></Data>
<Data>Data_2</Data>
<Data></Data>
</Root>

So what I wanted to do is Create a functoid that takes 3
parameters, The Parent tree (Root in this case), The
comparison Element (or Attribute) and the value to use to
make the comparison.

What I would want to do in the functoid is have an XSL
Template for-each option, something like the following:
<xsl:for-each select=<<param1>>[<<param2>>=<<param3>>]>
<code>
...
</code>
</xsl:for-each>

The main problem I have is how to indicate the parameters
in the XSL. From looking at the Looping functoid that
came with Biztalk, it uses Input to indicate the
parameter. However, for the Value Mapping Functoids it
uses "First Input" and "Second Input"

Does anyone know if there is any rhyme or reason to taking
input parameters into a XSLT functoid and placing them in
the XSL. Anyone?

I have looked at Chaper 4 of the Professional Biztalk
book, but the book goes into no useful details on XSLT
functoids and parameters, neither does the Sample functoid
in the SDK directory (which is basically the same thing
the Professional Biztalk book describes)

Thanks in advance.

cmb..

Brian Gregor

unread,
Apr 8, 2002, 5:59:21 PM4/8/02
to
Hi Craig,

When you tried just using the built-in functoids, did you attempt to use a
combination so that you were using a logical at the end to see if the value
was <null> or not? In this way you can either create or not create the
field in the output.

Brian Gregor
BizTalk Server Support

This posting is provided *AS-IS* with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.


--------------------
From: "Craig Beuker" <cr...@nspam.5by5software.com>
Sender: "Craig Beuker" <cr...@nspam.5by5software.com>
Subject: Developing Custom Biztalk Functoid Components
Date: Fri, 1 Mar 2002 16:12:47 -0800

0 new messages