| [Informatik- u. Master-Seminar SS04] [Inhaltsverzeichnis] [zurück] [weiter] | ![]() |
<?xml version="1.0"?>
<!DOCTYPE adressbuch SYSTEM "adressbuch.dtd">
<Adressbuch>
<Person>
<Vorname>Uwe</Vorname>
<Nachname>Schmidt</Nachname>
<Ort plz="101010">Knusiland</Ort>
<Alter>42</Alter>
</Person>
</Adressbuch>
|
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <title> Transformiertes Adressbuch </title> </head> <body> <xsl:apply-templates /> </body> </html> </xsl:template> <xsl:template match="Person"> <table border="2"><tr> <xsl:apply-templates /> </tr></table> </xsl:template> <xsl:template match="Vorname"> <td> <xsl:value-of select="." /> </td> </xsl:template> <xsl:template match="Nachname"> <td> <xsl:value-of select="." /> </td> </xsl:template> <xsl:template match="Alter"> <td> <xsl:value-of select="." /> </td> </xsl:template> <xsl:template match="Ort"> <td> <xsl:value-of select="." /> </td> </xsl:template> </xsl:stylesheet> |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> Transformiertes Adressbuch </title>
</head>
<body>
<table border="2">
<tr>
<td>Uwe</td>
<td>Schmidt</td>
<td>Knusiland</td>
<td>42</td>
</tr>
</table>
</body>
</html>
|
| [Informatik- u. Master-Seminar SS04] [Inhaltsverzeichnis] [zurück] [weiter] |
|