<?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> <table border="1" bgcolor="ABCDEF"> <tr> <th>Pers-Nr</th><th>Name</th><th>Rang</th><th>Raum</th><th>Ämter</th> </tr> <xsl:for-each select="/dozenten/dozent"> <tr> <td><xsl:value-of select="PersNr" /></td> <td><xsl:value-of select="Name" /></td> <td><xsl:value-of select="Rang" /></td> <td><xsl:value-of select="Raum" /></td> <td> <xsl:for-each select="Amt"> <xsl:value-of select="Bezeichnung" /> <xsl:if test="position() != last()">, </xsl:if> </xsl:for-each> </td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet>