How to get the 2 lowest nodes out of three nodes

I need to calculate a value which is equal to 2* the lowest two dimensions.


How would be the cleanest way to get the lowest two? (I this case, LENGTH and HEIGHT but it could be any 2 of the three)

I’d rather not use 3 if statements to get the 3 possibilities covered and i am trying to avoid using C# helpers for everything i don’t get/find.

Also, i am using this in BIZTALK2010, i am not sure if it is xslt 1 or xslt 2.

Source: xml

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.