> There are several more elements, and some of those will also be optional.
>
> I was trying to avoid a combinatorial explosion to deal with every case.

That is a good reflex. But: Does it apply here?

I would keep the transformation pieces so simple that a little 
duplication doesn't hurt. As a general rule.

Transformations are like patterns in functional languages - and an 
enumeration of cases is desirable...

my 2 cents
kaspar



Reply via email to