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]