Problem displaying angle brackets in a select1 list

Project:formsPlayer
Version:1.5.0
Component:Code
Category:bug
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi there,

Is there any way to display angle brackets in a select1 list? I have the following code:

<xf:item>
<xf:label><10m</xf:label>
<xf:value><10m</xf:value>
</xf:item>

When rendered, the list displays &lt;10m rather than <10m

Alternatively, the following behaves in the same way:

<xf:item>
<xf:label>&lt;10m</xf:label>
<xf:value>&lt;10m</xf:value>
</xf:item>

Cheers,

Anu

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Workaround

You can display angle brackets here by using label/@ref and value/@ref, thus:

<xforms:item>
<xforms:label ref="instance('i0')/a" />
<xforms:value ref="instance('i0')/a" />
</xforms:item>

With an instance like this:

<xforms:instance id="i0">
<choices>
<a>&lt;10m</a>
<a>&lt;20m</a>
</choices>
</xforms:instance>

An advantage of this is that you could use itemset to iterate over all possible choices, thus:

<xforms:itemset nodeset="instance('i0')/a">
<xforms:label ref="." />
<xforms:value ref="." />
</xforms:itemset>

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.