34 lines
1.2 KiB
XML
34 lines
1.2 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||
|
<xsl:output method="html" />
|
||
|
|
||
|
<xsl:template match="/">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>IT Companies</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h2>List of IT Companies</h2>
|
||
|
<table border="1">
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Location</th>
|
||
|
<th>Employees</th>
|
||
|
<th>Specialization</th>
|
||
|
<th>Founded</th>
|
||
|
</tr>
|
||
|
<xsl:for-each select="it_companies/company">
|
||
|
<tr>
|
||
|
<td><xsl:value-of select="name" /></td>
|
||
|
<td><xsl:value-of select="location" /></td>
|
||
|
<td><xsl:value-of select="employees" /></td>
|
||
|
<td><xsl:value-of select="specialization" /></td>
|
||
|
<td><xsl:value-of select="founded" /></td>
|
||
|
</tr>
|
||
|
</xsl:for-each>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|
||
|
</xsl:template>
|
||
|
</xsl:stylesheet>
|