diff --git a/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl b/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl index 6102fde6867a7b4003fe564c1f7559ccb857081f..bd73425b980eb1244196e0a11ce2dd84def55b85 100644 --- a/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl +++ b/goofy-server/src/main/resources/fop/postfach-nachrichten.xsl @@ -121,11 +121,13 @@ <fo:table-cell padding="3px" border-color="#ccc" border-width="1px" border-style="solid"> <fo:block>Anhänge</fo:block> </fo:table-cell> - <fo:table-cell padding="3px" border-color="#ccc" border-width="1px" border-style="solid"> - <xsl:for-each select="attachments/attachment"> - <fo:block><xsl:value-of select="."/></fo:block> - </xsl:for-each> - </fo:table-cell> + <xsl:if test="attachments/attachment"> + <fo:table-cell padding="3px" border-color="#ccc" border-width="1px" border-style="solid"> + <xsl:for-each select="attachments/attachment"> + <fo:block><xsl:value-of select="."/></fo:block> + </xsl:for-each> + </fo:table-cell> + </xsl:if> </fo:table-row> </fo:table-body> </fo:table>