1 |
torben |
1080 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
2 |
|
|
|
3 |
|
|
<xsl:stylesheet version="1.0" |
4 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
5 |
|
|
|
6 |
|
|
<xsl:template match="departureinfo"> |
7 |
|
|
<html> |
8 |
|
|
<body> |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
<h1><xsl:value-of select="@station"/></h1> |
12 |
|
|
|
13 |
|
|
<table border="1"> |
14 |
|
|
<tr bgcolor="#9acd32"> |
15 |
|
|
<th>Time</th> |
16 |
|
|
<th>Updated</th> |
17 |
|
|
<th>Trainnumber</th> |
18 |
|
|
|
19 |
|
|
<th>Destination</th> |
20 |
|
|
<th>Origin</th> |
21 |
|
|
<th>Location</th> |
22 |
|
|
|
23 |
|
|
<th>Status</th> |
24 |
|
|
<th>Note</th> |
25 |
|
|
</tr> |
26 |
|
|
|
27 |
|
|
<xsl:for-each select="train"> |
28 |
|
|
<tr> |
29 |
|
|
<td><xsl:value-of select="time"/></td> |
30 |
|
|
<td><xsl:value-of select="updated"/> </td> |
31 |
|
|
<td><xsl:value-of select="trainnumber"/></td> |
32 |
|
|
<td><xsl:value-of select="destination"/> </td> |
33 |
|
|
<td><xsl:value-of select="origin"/> </td> |
34 |
|
|
<td><xsl:value-of select="location"/> </td> |
35 |
|
|
<td><xsl:value-of select="status"/> </td> |
36 |
|
|
<td><xsl:value-of select="note"/> </td> |
37 |
|
|
</tr> |
38 |
|
|
</xsl:for-each> |
39 |
|
|
|
40 |
|
|
</table> |
41 |
|
|
</body> |
42 |
|
|
</html> |
43 |
|
|
</xsl:template> |
44 |
|
|
|
45 |
|
|
</xsl:stylesheet> |