better selection of group structure in xslibs()