That should of course be following-sibling::family[1].
Alternatively, redesign the XML. Add a wrapper element around each (name, family) pair to better reflect the true structure.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|