@Lio
I was an contributor to simplemail but am not anymore.
I've found a stylesheet I made a long time ago:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" media-type="text/html" encoding="ISO-8859-1"
omit-xml-declaration="no" />
<xsl:template match="/">
<html>
<head>
<title>Simplemail Addressbook</title>
</head>
<body>
<h2>Simplemail Addressbook</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Alias</th>
<th>Name</th>
<th>Emails</th>
<th>Address (privat)</th>
<th>Phone (privat)</th>
<th>Address (work)</th>
<th>Phone (work)</th>
</tr>
<xsl:apply-templates />
</table>
</body>
</html>
</xsl:template>
<xsl:template match="newaddressbook">
<xsl:for-each select="newcontact">
<xsl:sort select="name" />
<tr>
<td>
<xsl:value-of select="alias" />
</td>
<td>
<xsl:value-of select="name" />
</td>
<td>
<xsl:for-each select="email">
<xsl:value-of select="." />
<xsl:if test="not (position()=last())">
<br />
</xsl:if>
</xsl:for-each>
</td>
<xsl:apply-templates select="private" />
<xsl:apply-templates select="work" />
</tr>
</xsl:for-each>
</xsl:template>
<xsl:template match="private|work">
<td>
<xsl:if test="count(./*) > 0">
<xsl:value-of select="street" />
<br />
<xsl:value-of select="zip" />
<xsl:text> </xsl:text>
<xsl:value-of select="city" />
<br />
<xsl:value-of select="country" />
<br />
</xsl:if>
</td>
<td>
<xsl:if test="count(./*) > 0">
<xsl:for-each select="phone">
<xsl:if test="string-length(.) > 0">
Phone:
<xsl:value-of select="." />
<br />
</xsl:if>
</xsl:for-each>
<xsl:if test="string-length(mobil) > 0">
Mobile:
<xsl:value-of select="mobil" />
<br />
</xsl:if>
<xsl:if test="string-length(fax) > 0">
Fax:
<xsl:value-of select="fax" />
<br />
</xsl:if>
</xsl:if>
</td>
</xsl:template>
</xsl:stylesheet>
Save it as ".newaddressbook.xsl" at the same place where your ".newaddressbook.xml" is and add an stylesheet line to the xml file, so it starts like that:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href=".newaddressbook.xsl"?>
<newaddressbook>
...
Open the ".newaddressbook.xml" now in an browser which supports stylesheet transformation and you get a table of the addressbook or use an
xslt util.
Hope that helps.