
Extensible Stylesheet Language (XSL) • 275
What we have done is simple. We display the name of the team leader, followed by his ID. We then do
the same for the team members.
The resulting output is shown in Figure 6.42.
Figure 6.42 Output of team XML and XSL
We had one team leader and three team members. However, the output considers just the first of the three
members of the team! Why does this happen? This is because although the expression /Team/Member returns
a set (or collection) of team members, the <xsl:value-of> element operates only on the first element of that
collection, while ignoring the others! This is why we see only the first team ...