Sorting with XQuery

This demo shows how to sort an XML nodeset with the help of a custom XQuery function.

It builds a list of checkboxes from a nodeset of materials for 2 languages and sorts them accordingly whenever the language changes.

To see the data behind this form click here. In the righthand panel choose 'material'

fx-items is using a custom XQuery function 'sortNames' to sort the elements passed to it.