Hi Alex,
In my XBL component I want to display different input fields according to a parameter.
If I use a parameter with a static value my component looks as follows:
<xbl:binding id="my-testcomponent" element="my|testcomponent>
<xbl:template>
...
<xf:var name="param1" xbl:attr="xbl:text=param1" />
<xf:group ref="if($param1 = 'value1') then $form-instance else () appearance="xxf:internal">
<!-- some input fields -->
<xf:group>
<xf:group ref="if($param1 = 'value2') then $form-instance else () appearance="xxf:internal">
<!-- other input fields -->
</xf:group>
....
</xbl:template>
</xbl:binding>
<!-- Usage of component -->
<my:testcomponent param1="value1"/>
If I want to use a dynamic value for the parameter, according to the documentation I pass it as follows:
<my:testcomponent>
<my:param1 = "./defaultvalue"/>
</my:testcomponent>
My question now is how to access this parameter in the XBL component?