Hi Zoe,
The other way to do it is to use the XSLT Transform pipeline component
from
the BizTalk SDK. The sample in the SDK does just that, you send your XML
message to the pipeline and in the the component transforms it into HTML
base
on an xslt file before passing it on to the SMTP adapter. You could use it
as
a starting point.
http://msdn.microsoft.com/en-us/library/aa561389.aspx
The sample exists in the SDK since BizTalk 2004 so you'll find it in the
version you're using (unless you're on 2002!).
Thiago Almeida
http://connectedthoughts.wordpress.com
"Zoe Hart" wrote:
> That's very helpful. Using "raw string formatter" as a search string has
> helped me find several examples and piecing together information from
all of
> them, I think I see how to make it work. I'm working on implementing it
now.
> Thanks.
>
> Zoe
>
> "Yossi Dahan [MVP]" <yossi.dahan@[EMAIL PROTECTED]
> wrote in message
> news:A548D74D-75BB-4C11-82AD-D91D7DEE9677@[EMAIL PROTECTED]
> > You will not need a schema for the HTML.
> > You will be sending your HTML as string out of BizTalk so all you need
is
> > a schema with one element with an <xs:any processContents="skip" />
child
> > to allow any content (HTML content in your case)
> >
> > you can then follow any of the "raw string formatter" examples out
there.
> > here's one -http://www.winterdom.com/weblog/CommentView,guid,532.aspx
> >
> > Yossi Dahan
> >
> > "Zoe Hart" <zoe.hart@[EMAIL PROTECTED]
> wrote in message
> > news:eATdVQurIHA.2492@[EMAIL PROTECTED]
> >> I've seen simple examples of sending an XML message as the body of an
> >> email message. And I've seen examples of using an external HTML file
as
> >> the body of the message. I assume it's not too hard to do what I want
to
> >> do, but I haven't seen examples or references to what I want to do. I
> >> want to send an HTML-based email, the content of which is based on
the
> >> contents of an XML message. So I assume I just need a map to map my
XML
> >> message to the HTML I want in the mail message, but there are little
> >> details that are hanging me up. First of all, I'm kind of making up a
> >> schema for an HTML do***ent:
> >> <html>
> >> <body>
> >> <a href="..."></a>
> >> </body>
> >> </html>
> >> I'm not sure if there are good guidelines for defining the schema for
an
> >> HTML mail message.
> >> If I map my XML message to the schema above and give it a namespace
like
> >> http://mycompany.com/mymessage/v1,
then the output of the mapper has
that
> >> namespace defined with prefix ns0: and all the nodes of the output
html
> >> are prefixed with ns0:, but with that namespace the browser doesn't
> >> recognize basic tags like <a> as anchor tags.
> >> Are there any good examples of generating an HTML-based email from an
XML
> >> message?
> >> Thanks,
> >> Zoe
> >>
> >
>
>
>


|