<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body bgcolor="dddddd"> <table border="1" cellpadding="5" bgcolor="abcdef"> <tr> <th>Pers-Nr</th><th>Anrede</th><th>Vorname</th><th>Nachname</th> <th>Chef</th><th>Photo</th> </tr> <xsl:for-each select="/personen/person"> <tr> <td><xsl:value-of select="@persnr"/></td> <td> <xsl:if test="@geschlecht='weiblich'">Frau</xsl:if> <xsl:if test="@geschlecht='männlich'">Herr</xsl:if> </td> <td><xsl:value-of select="vorname" /></td> <td><xsl:value-of select="nachname" /></td> <td><xsl:value-of select="@chef" /></td> <td><IMG SRC="{photo/@src}"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet>