cancel
Showing results for 
Search instead for 
Did you mean: 

Simple mapping - doesn't working

Former Member
0 Kudos

Hello!

I have simple structure:

<mt1>

<element>

<key>1</key>

<key2>xxx</key2>

</element>

<element>

<key>2</key>

<key2>yyy</key2>

</element>

</mt1>

Where element is unbounded. <key> maybe only "1" or "2".

I need the target structure as:

<mt2>

<e1>

<key>1</key>

<key2>xxx</key2>

</e1>

<e2>

<key>2</key>

<key2>yyy</key2>

</e2>

</mt2>

e1 or e2 node depends on <key>.

I'm trying to map <element>, <key>, <key2> using IfThen (if <key> EqualS to Const(1)) but it doesn't working properly.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

                                  key--->then
key---->removeContext-->equalS--->IfWithoutElse---->e1
          constant[1]/
                                 key--->then                              
key---->removeContext-->equalS--->IfWithoutElse--->splitByValue(eachValue)->key(Target)
          constant[1]/

                                  key--->then
key---->removeContext-->equalS--->IfWithoutElse---->e2
            constant[2]/
                                  key2--->then
key---->removeContext-->equalS--->IfWithoutElse--->splitByValue(eachValue)-->key2
            constant[2]/

occurence of e1 and e2 should be 0---unbounded

Edited by: Kubra fatima on Sep 24, 2009 3:38 PM

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Andrey,

Please check my response in your other post. I've tested it, but if your structure is different, kindly let me know.

Hope this helps,

Former Member
0 Kudos

Hi Andrey,

Just map the source side element node to e1 node in the target side. (here target side e1 node is o or 1 to unbound)

Remaining mappings as usual, like key> key and Key2> key2.

Regards

Ramesh