# Block properties XML help

**URL:** <https://www.ruby-forum.com/t/block-properties-xml-help/234055>\
**Category:** GNU Radio\
**Created:** [February 3, 2015, 9:55am UTC](https://www.ruby-forum.com/t/block-properties-xml-help/234055 "2015-02-03T09:55:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [February 3, 2015, 9:55am UTC](https://www.ruby-forum.com/t/block-properties-xml-help/234055/1 "2015-02-03T09:55:40Z")

</div>

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
