From: Roy W. <gar...@ya...> - 2015-11-19 19:15:50
|
I can only think this is a bug. Sending an email as follows: let $mail := <mail> <message> <text>Alternative</text> <xhtml> <html> <head> <title>Scheduled email from Randall's Parliamentary Service</title> </head> <body> {$content} </body> </html> </xhtml> </message> <to>par...@gm...</to> <cc>wa...@br...</cc> <from>"Roy Walter" &lt;wa...@br...&gt;</from> <reply-to>wa...@br...</reply-to> <subject>Subject</subject> </mail> let $sendmail := mail:send-email($mail, '', ()) If I write out $content the XML is correct. What appears in the email, however, is not. $content is constructed like this: let $content := for $doc in $docs return <div class="wrapper" data-doctype="{$doc//doctype/text()}" data-id="{string($doc/@id)}"> <h3>{$doc//subject/text()}</h3><div class='body'>{$doc//text/child::*}</div> </div> In the email $content is scrambled, includes extra nodes and <h3/> is empty. Thanks, Roy |