tidying up, replaced exsl:nodeset with as=element()*