Hi Florent,

  But this gives me the following error, even though QName are
comparable (unless I am mistaken):

    XTDE1030: Non-comparable types found while sorting: Values
    are not comparable (xs:QName, xs:QName)

http://www.w3.org/TR/xmlschema-2/#app-fundamental-facets

says that QName's 'ordered' fundamental facet is 'false'. Could this be it?

Regards,
Christian