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
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to