It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

R4J E-Mail Templates returns error

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

Hello @Mark de Bont _TMC_ ,

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you