Hallo,
Wie kann ich das mit XSL transformieren, dass ich das bekomme:
<table border="1">
<tr>
<td>zelle1</td>
<td>zelle2</td>
</tr>
<ttr>
<td>zelle3</td>
<td>zelle4</td>
</tr>
</table>
Das ist ein Ansatz:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>Test by TM 05/04</title>
</head>
<body>
xsl:apply-templates/
</body>
</html>
</xsl:template>
<xsl:template match="tabelle">
<table border="1">
xsl:apply-templates/
</table>
</xsl:template>
<xsl:template match="spalte">
<tr>
xsl:apply-templates/
</tr>
</xsl:template>
<xsl:template match="item">
<td>
<xsl:value-of select="."/>
</td>
</xsl:template>
</xsl:stylesheet>
MfG, Thomas