Skip to content

Instantly share code, notes, and snippets.

@pwin
Created March 12, 2013 12:06
Show Gist options
  • Save pwin/5142392 to your computer and use it in GitHub Desktop.
Save pwin/5142392 to your computer and use it in GitHub Desktop.
In an XForms select1 itemset, ensure that the nodeset only contains unique values
<xf:select1 ref="instance('policeforce')/selectedforce" selection="closed" >
<xf:itemset nodeset="instance('report-transformed')/body//tr[not(td[3] = preceding-sibling::tr/td[3])]">
<xf:label ref="td[3]" />
<xf:value ref="td[3]" />
</xf:itemset>
</xf:select1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment