Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sometimes (not always) some task-mails are not displayed correctly.

xslt:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" xmlns:nex="nowshare:xslt-extension">
    <xsl:template name="Form">
        <table>
            <tr>
                <td>
                    <b>
                        <xsl:value-of select="$something"/>
                    </b>
                </td>
                <td>
                    <xsl:value-of select="//Field[@ref='something']" disable-output-escaping="no" />
                </td>
            </tr>      
        </table>
    </xsl:template>
</xsl:stylesheet>

It happens that html elements are (sometimes half) interpreted as text.

result:

td>My Value 1: my value 2

or:

b>My Value 1: my value 2

even though it should look like:

My Value 1: my value 2

The e-mail source code looks like this:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<table>
    <tr>
        td&gt;<b>My Value 1</b></td>
        <td>my value 2</td>
    </tr>
</table>

I could not yet figure out what is going wrong.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I think I've figured it out. It works a lot better when accurate validated html code will be sent. I have supplemented my code like this:

<!DOCTYPE HTML><html><head><!-- --></head><body><!-- --></body></html>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.