File: Data.xml
Employee Data File
Joe
Brian
Smith
1 Drive
Vancouver
BC
80210
111-1111111
222-222222
303-4667357
a@a.com
2008-10-29
File: Transform.xslt
version="1.0">
Employee Output
test="preceding-sibling::*/contact/name/firstName">
select="preceding-sibling::*[1]/contact/name/firstName" />
Nobody
The employee element node that is the preceding sibling of
is for the following staff member:
Output:
Employee Output