Block properties XML help

I’m looking for some guidance with block properties XML. I have
a situation where I’d like to have subsets of options based on some
other option setting.

For example, in gr-dvbt2, I have an option setting for the version of
the specification. Based on that option, I want to have the preamble
options be T2 SISO or T2 MISO for version 1.1.1, or T2 SISO, T2 MISO,
T2-Lite SISO or T2-Lite MISO for version 1.3.1.

I’ve come up with a method, but it’s super kludgy since it uses
two variables for the same option. In this case, preamble1 and
preamble2.

Specification Version version enum 1.1.1 VERSION_111 val:dvbt2.VERSION_111 hide_111: hide_131:all 1.3.1 VERSION_131 val:dvbt2.VERSION_131 hide_111:all hide_131: Preamble preamble1 enum $version.hide_111 T2 SISO PREAMBLE_T2_SISO val:dvbt2.PREAMBLE_T2_SISO T2 MISO PREAMBLE_T2_MISO val:dvbt2.PREAMBLE_T2_MISO Preamble preamble2 enum $version.hide_131 T2 SISO PREAMBLE_T2_SISO val:dvbt2.PREAMBLE_T2_SISO T2 MISO PREAMBLE_T2_MISO val:dvbt2.PREAMBLE_T2_MISO T2-Lite SISO PREAMBLE_T2_LITE_SISO val:dvbt2.PREAMBLE_T2_LITE_SISO T2-Lite MISO PREAMBLE_T2_LITE_MISO val:dvbt2.PREAMBLE_T2_LITE_MISO

Does anyone know of a more elegant method? I’ve tried some
Cheetah stuff, but that never seems to work for me at all.

best regards,
Ron

Options