File: Data.xml
A
B
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
select="ancestor::names/child::name[1]/child::given" />
select="ancestor::names/child::name[1]/child::family" />
is first on the list, and
is last.