Groups | Blog | Home
all groups > dotnet xml > october 2005 >

dotnet xml : Using XSLT to generate emails


tconti NO[at]SPAM hotmail.com
10/26/2005 11:34:02 AM
Howdy:

I have 2 general questions regarding the use of XSLT to generate
emails. We have several procecesses that use XSLT to generate emails.
We frequently run into issues where a client complains that they cannot
traverse hrefs in the emails. When er acquire the culprit email it
appears that their reader is not handling the HTML encoded values (i.e.
&) properly. Is this a problem only with older readers (i.e. old
version of Lotus Notes) or is this widely encountered. Also, we have
also encountered problems with line lengths (line exceed the SMTP
standare 998 characters). Is there a way to limit this in the XSLT or
is the line length hard to control.

Please let me know what you think.

Tom
Peter Flynn
10/27/2005 12:25:34 AM
[quoted text, click to view]

Yes.

[quoted text, click to view]

No, I haven't seen a report of it for about two years.

You can also use the semicolon as the delimiter, but that too may not be
supported by broken software.

Consider sending a plain-text body-part, with the HTML message as an
attachment (I hope you are doing this already: sending HTML in the
body-part is unfair to your recipients and will get flagged as spam
by many filters). Make your XSLT generate the plain-text part as
plain text, so the ampersands are in their raw form, not as character
entity references.

[quoted text, click to view]

Hard in XSLT 1.0.

The easy solution is to make sure that your source text contains
linebreaks at suitable places.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
AddThis Social Bookmark Button