| 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 <10m rather than <10m
Alternatively, the following behaves in the same way:
<xf:item>
<xf:label><10m</xf:label>
<xf:value><10m</xf:value>
</xf:item>
Cheers,
Anu

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><10m</a>
<a><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>