For example:

<ItemAttribute backgroundColor="0, 0, 200" textColor= "255, 255, 255" criteria="w">
    <Filter>
        (itmGetProperty gSource 'foo)
    </Filter>

    <Label>
        (cat "Foo: " (itmGetProperty gSource 'foo))
    </Label>
</ItemAttribute>

If this functionality were added, the existing labels (damaged, military, radius, etc.) could be defined using it, so they could be changed by mods. And other similarly flexible labels could be added.

See also:
Military and Illegal tags should be unique colors