B2B Data Transformation
- B2B Data Transformation 10.5.2
- All Products
<Root> <A/> <B/> <C/> <A/> </Root>
<A/> <B/> <C/>
<items> <id>100</id> <name>Plate</name> <quantity>4</quantity> <price>10</price> <id>101</id> <name>Toaster</name> <quantity>6</quantity> <price>10</price> <id>102</id> <name>Knife</name> <quantity>10</quantity> <price>5</price> </items>
<rule code="sum1" select="/items/id" description="For each id, check that the total price (price*quantity) does not exceed 50"> <variable name="current">dt:next-sequence()</variable> <variable name="total">$current[3]*$current[4]</variable> <assert additionalData="$total"><![CDATA[ $total <= 50 ]]></assert> </rule>
<id>100</id> <name>Plate</name> <quantity>4</quantity> <price>10</price>