File: Data.xml
A
B
2008-12-12
C
D
2008-11-11
E
F
2008-10-10
File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
preceding axis.
Preceding axis.
select="/Employees/Person[3]/DateOfBirth" />
which contains the text "
".
Output:
preceding axis.
Preceding axis.
Person
which contains the text "
A
B
2008-12-12
".
FirstName
which contains the text "
A
".
LastName
which contains the text "
B
".
DateOfBirth
which contains the text "
2008-12-12
".
Person
which contains the text "
C
D
2008-11-11
".
FirstName
which contains the text "
C
".
LastName
which contains the text "
D
".
DateOfBirth
which contains the text "
2008-11-11
".
FirstName
which contains the text "
E
".
LastName
which contains the text "
F
".