R4J E-Mail Templates returns error

Mark de Bont January 15, 2020

When using the default E-Mail Template of R4J the following error is returned when using the preview function.

 

"class" attribute is not allowed on the table element!; Line#: 13; Column#: 43

What's happening?

 

This is the code used (defaulted)

 

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />

<xsl:param name="forSubject" />
<xsl:param name="forBodyHtml" />
<xsl:param name="forBodyText" />

<xsl:template match="/result">
<xsl:if test="$forSubject = 'yes'">Links from <xsl:value-of select="issue/key" /> have been marked as suspect</xsl:if>

<xsl:if test="$forBodyHtml = 'yes'">
<table class="keyvalue-table">
<tr>
<th>
Modified by:
</th>
<td>
<xsl:choose>
<xsl:when test="suspectUser/link">
<xsl:value-of select="suspectUser/link" disable-output-escaping="yes" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="suspectUser/displayName" />
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
<tr>
<th>
Modified on:
</th>
<td>
<xsl:value-of select="suspectTime" />
</td>
</tr>
<xsl:for-each select="suspects/issue">
<tr>
<th>
<xsl:if test="position() = 1">
Linked Issues:
</xsl:if>
</th>
<td>
<xsl:value-of select="link" disable-output-escaping="yes" /> - <xsl:value-of select="summary" />
</td>
</tr>
</xsl:for-each>
</table>
</xsl:if>

<xsl:if test="$forBodyText = 'yes'">
Issue: <xsl:value-of select="issue/key" /> - <xsl:value-of select="issue/summary" />

Modified by: <xsl:value-of select="suspectUser/displayName" />
Modified on: <xsl:value-of select="suspectTime" />

Linked Issues:
<xsl:for-each select="suspects/issue">
<xsl:value-of select="key" /> - <xsl:value-of select="summary" /><xsl:text>&#xA;</xsl:text>
</xsl:for-each>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

 

1 answer

0 votes
Angelica Salazar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2020

Hello @Mark de Bont ,

Sorry that you have encountered this. This is actually a known issue in e-mail templates for R4J. Please do contact support for further details/updates regarding the issue.

Best Regards,
Angelica

Suggest an answer

Log in or Sign up to answer