and the input,
DavidPilgrim
14
fair
PaulFrey
16
brown
DawnBostock
14
light brown
DavidHayhurst
15
red
AndrewWild
17
fair
DavidPilgrim
14
fair
and the output
$ xsltproc split.xslt students.xml
1 Dawn Bostock
2 Paul Frey
3 David Hayhurst
4 David Pilgrim
5 David Pilgrim
6 Andrew Wild