[Xsltforms-support] How to put a xf:hint within an xf:output text
Brought to you by:
alain-couthures
From: Elias M. <eli...@gm...> - 2012-12-27 20:35:26
|
Hi. I use an instance with codes, labels and descriptions to populate the labels and the hints of the fields on the form. It works fine like that: <xf:input ref="/my/ref/data"> <xf:label><xf:output value="instance('labels')/Codes[Code = 'ACODE']/Name"/></xf:label> <xf:hint><xf:output value="instance('labels')/Codes[Code = 'ACODE']/Desc"/></xf:hint> </xf:input> This works fine for fields. But if I have several nodes and I use xf:repeat to create a table with options for the user, I would like the header of the table to show the label and description from the instance. I tried: <table> <tr> <th> <xf:output value="instance('labels')/Codes[Code = 'BCODE']/Name"/> <xf:hint><xf:output value="instance('labels')/Codes[Code = 'BCODE']/Desc"/></xf:hint> </xf:output> </th> .. .. but it doesn't work. Any suggestions?? Thanks Elias |