Project

General

Profile

1
<?xml version="1.0"?> 
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3

    
4
  <xsl:template match="employees">
5
    <table border="1" width="100%">
6
      <tr>
7
        <th>ID</th>
8
        <th>Employee Name</th>
9
        <th>Phone Number</th>
10
      </tr>
11
      <xsl:for-each select="employee">
12
        <tr>
13
          <td>
14
            <xsl:value-of select="@id"/>
15
          </td>
16
          <td>
17
            <xsl:value-of select="last-name"/>, 
18
            <xsl:value-of select="first-name"/>
19
          </td>
20
          <td>
21
            <xsl:value-of select="telephone"/>
22
          </td>
23
        </tr>
24
      </xsl:for-each>
25
    </table>
26
  </xsl:template>
27

    
28
</xsl:stylesheet>
(2-2/14)