Listing custom fields and attachments in Lotus Connections
<xsl:template match="/">
<html>
<head>
<title>Activity entries with custom fields</title>
<style type="text/css">
html, body, td {font-family : Verdana, Arial, sans-serif; font-size : small }
th, td {
text-align : left;
border-right : 1px solid gray ;
border-bottom : 1px solid gray ;
}</style>
</head>
<body>
<table>
<xsl:apply-templates select="//f:entry[snx:field[@type='text']][1]" mode="header" />
<tbody>
<xsl:apply-templates select="//f:entry" />
</tbody>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="f:entry" />
<!-- We presume we have one text field there -->
<xsl:template match="f:entry[snx:field[@type='text']]">
<tr>
<td>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="f:link[@rel='self']/@href" />
</xsl:attribute>
<xsl:value-of select="f:title" />
</xsl:element>
</td>
<xsl:apply-templates select="snx:field" />
</tr>
</xsl:template>
<xsl:template match="snx:field[@type='text']">
<td>
<xsl:value-of select="f:summary" />
</td>
</xsl:template>
<xsl:template match="snx:field[@type='person']">
<td>
<xsl:value-of select="f:name" />
(<xsl:value-of select="f:email" />)
</td>
</xsl:template>
<xsl:template match="f:entry[snx:field[@type='file']]" mode="header" />
<xsl:template match="snx:field[@type='file']" mode="header" />
<xsl:template match="f:entry[snx:field]" mode="header">
<thead>
<tr>
<th>Title</th>
<xsl:apply-templates select="snx:field" mode="#current" />
</tr>
</thead>
</xsl:template>
<xsl:template match="snx:field" mode="header">
<th>
<xsl:value-of select="@name" />
</th>
</xsl:template>
</xsl:stylesheet>





