Skip to Content
0
Former Member
Jul 19, 2008 at 10:24 AM

Mapping between a nodes 0..2 and a node 0..1

25 Views

Hi,

i need to do a mapping between

MT_PRICE

PRICE (element 0..2)

CURRENCY (attribute)

AMOUNT (attribute)

T YPE (attribute)

for example

MT_PRICE

<PRICE CURRENCY="EUR" TYPE="NET">35.50

</PRICE>

<PRICE CURRENCY="EUR" TYPE="NET"

AMOUNT="TOTAL">35.50

</PRICE>

and

MT_PRICES

PRICE1S (element 0..1)

AMOUNT1S (element 0..1)

MT_PRICES

PRICE2S (element 0..1)

AMOUNT2S (element 0..1)

The mapping is between PRICE and PRICE1S when there is no AMOUNT attribute and

between PRICE and PRICE2S when AMOUNT has value TOTAL.

How this can be achieved since PRICE for the source is 0..2 and targets PRICE1S and PRICE2S

is 0..1 ?

Antonis