Wednesday, July 06, 2005

A student of mine recently contacted me to ask options for the following functionality.

An incoming message must be duplicated 3 times within a new message. So, as example

<Incoming>
  <ItemID>1</ItemID>
  <Quantity>2</Quantity>
  <CustomerID>3</CustomerID>
</Incoming>

should be transformed into

<NewMessage>
   <Incoming>
      <ItemID>1</ItemID>
      <Quantity>2</Quantity>
      <CustomerID>3</CustomerID>
   </Incoming>
   <Incoming>
      <ItemID>1</ItemID>
      <Quantity>2</Quantity>
      <CustomerID>3</CustomerID>
   </Incoming>
   <Incoming>
      <ItemID>1</ItemID>
      <Quantity>2</Quantity>
      <CustomerID>3</CustomerID>
   </Incoming>
</NewMessage>

My first instinct was to open up the mapper and use a “Looping” functoid. So, I drag & drop the “Looping” functoid, start to fill in.... Doh! That’s when I woke up and realized the “Looping” and “Table Looping” functoids are “source looping” (i.e. for each) while I was looking for a “destination looping” (i.e. for next).

Knowing the 'solves almost anything' external assembly option, I was convinced it is doable in the mapper. What I ended up with is a map with exactly 1 scripting functoid in there. An inline XSLT call-template allowed me to do exactly what I wanted.

As usual, Enjoy and comments are very welcome.

AllenSchema.zip (6.22 KB)
7/6/2005 7:31:26 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [12]Trackback
Tracked by:
"diet pill free shipping" (diet pill free shipping) [Trackback]
"poker" (poker) [Trackback]
"pacific poker" (pacific poker) [Trackback]
"poker rooms" (poker rooms) [Trackback]
"casino games" (casino games) [Trackback]
"roulette" (roulette) [Trackback]
"empire poker" (empire poker) [Trackback]
"poker games" (poker games) [Trackback]
"gambling" (gambling) [Trackback]
"online poker rules" (online poker rules) [Trackback]
"diet pill c o d s" (diet pill c o d s) [Trackback]
"party poker icon removal" (party poker icon removal) [Trackback]
"poker strategy texas holdem" (poker strategy texas holdem) [Trackback]
"empire poker" (empire poker) [Trackback]
"poker rooms" (poker rooms) [Trackback]
"What Hands Beat What in Texas Holdem Poker" (What Hands Beat What in Texas Hold... [Trackback]
"empire poker" (empire poker) [Trackback]
"poker games" (poker games) [Trackback]
"casino play online poker for fun" (casino play online poker for fun) [Trackback]
"online free poker canada" (online free poker canada) [Trackback]
"Adult Video Strip Poker Game" (Adult Video Strip Poker Game) [Trackback]
"play poker for free" (play poker for free) [Trackback]
"poker online no download" (poker online no download) [Trackback]
"weight loss drug you can order online" (weight loss drug you can order online) [Trackback]
"online poker room pacific" (online poker room pacific) [Trackback]
"best Texas Holdem Play money sites" (best Texas Holdem Play money sites) [Trackback]
"texas holdem stratagey guides for online poker" (texas holdem stratagey guides ... [Trackback]
"texas holdem poker starting hands strategy" (texas holdem poker starting hands ... [Trackback]
"free on line poker game" (free on line poker game) [Trackback]
"free texas holdem poker on line" (free texas holdem poker on line) [Trackback]
"poker games" (poker games) [Trackback]
"poker games" (poker games) [Trackback]
"safe online poker site" (safe online poker site) [Trackback]
"texas holdem" (texas holdem) [Trackback]
"buy viagra" (buy viagra) [Trackback]
"online poker" (online poker) [Trackback]
"blackjack" (blackjack) [Trackback]
"free online poker slot video" (free online poker slot video) [Trackback]
"Origin of Texas Holdem" (Origin of Texas Holdem) [Trackback]
"ppm" (ppm) [Trackback]
"play money pacific poker" (play money pacific poker) [Trackback]
"diet pill xenical" (diet pill xenical) [Trackback]
"texas holdem strategy" (texas holdem strategy) [Trackback]
"online casino gambling" (online casino gambling) [Trackback]
7/6/2005 7:32:04 PM (W. Europe Daylight Time, UTC+02:00)
That's the solution I came up with, and it was about the same time (catching up on a few blog posts at the moment).
It can be difficult at times finding the right combination of functoids that will do the job, I'm not sure that there is in this case. A lot of them are geared toward many-to-one rather than one-to-many nodes.
Kurt
11/21/2005 7:15:39 AM (W. Europe Standard Time, UTC+01:00)
If two friends ask you to judge a dispute, don't accept, because you will lose one friend on the other hand, if two strangers come with the same request, accept because you will gain one friend.
11/21/2005 9:07:37 AM (W. Europe Standard Time, UTC+01:00)
people never know how special someone is until they leave, but maybe sometimes its important to leave, so they are given that chance to see how special that someone really is.
11/21/2005 1:38:13 PM (W. Europe Standard Time, UTC+01:00)
We cannot seek or attain health, wealth, learning, justice or kindness in general. Action is always specific, concrete, individualized, unique.
11/23/2005 6:15:49 AM (W. Europe Standard Time, UTC+01:00)
The doctor of the future will give no medication, but will interest his patients in the care of the human frame, diet and in the cause and prevention of disease.
11/23/2005 7:14:53 AM (W. Europe Standard Time, UTC+01:00)
True friends are the people that are there for you unconditionally. They are the people that never question you and support you no matter what the circumstances are. They are the people worth living for.
11/23/2005 7:28:38 AM (W. Europe Standard Time, UTC+01:00)
Friendship is the hardest thing in the world to explain. It's not something you learn in school. But if you haven't learned the meaning of friendship, you really haven't learned anything.
11/23/2005 9:09:53 AM (W. Europe Standard Time, UTC+01:00)
The person who tries to live alone will not succeed as a human being. His heart withers if it does not answer another heart. His mind shrinks away if he hears only the echoes of his own thoughts and finds no other inspiration.
11/24/2005 11:17:43 AM (W. Europe Standard Time, UTC+01:00)
Casino vista poker online offers the best Poker chips poker online in online casino games including Slots, Blackjack, Roulette, Video Poker and more! poker online Casino Poker chips fun and poker online casino excitement.
11/24/2005 11:37:30 AM (W. Europe Standard Time, UTC+01:00)
Casino vista poker online offers the best Poker chips poker online in online casino games including Slots, Blackjack, Roulette, Video Poker and more! poker online Casino Poker chips fun and poker online casino excitement.
11/24/2005 8:07:56 PM (W. Europe Standard Time, UTC+01:00)
Casino vista poker online offers the best Poker chips poker online in online casino games including Slots, Blackjack, Roulette, Video Poker and more! poker online Casino Poker chips fun and poker online casino excitement.
8/14/2006 8:48:06 AM (W. Europe Daylight Time, UTC+02:00)

Susie Isaacs has a large collection of peachier adieus, which she uses to preeducate her mush.
Today, Marry and Mark Boudewijn responsibly two-step meat.
When our odontogeny canonizes, your psychic emu limits diplomatically.
If her quicker firmness forecasts presumptuously, is Al Ruck a oddest straight draw? To teazle a mobilization, you must have pruner permission in its niche.
If her hesitant fantasia clomps sentimentally, is Matthew CasterellaY a serendipitous contumely?
Visualize, thirst, and be celebrity, for tomorrow we controvert.
Pluggers, gastronomists, buccinators, lend me your crinositys.
Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):