Sending Transformed XML as mail body
-
I have XML as well as its XSL, what is needed is to send this xml to email as html in body and i want to do it using Microsoft XML, v3.0 which comes with IE.
-
I have XML as well as its XSL, what is needed is to send this xml to email as html in body and i want to do it using Microsoft XML, v3.0 which comes with IE.
-
Yes, Actually I am working in Microsoft Dynamics NAV. Here for using XML I can use 'Microsoft XML, v3.0' and I have 1 xml, and 1 xsl given below XSL: <?xml version="1.0" encoding="ISO-8859-1" ?> - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <html> <head /> - <body style="FONT-FAMILY: Tahoma;"> - <table border="0" width="100%"> - <!-- Main Table --> - <tr> - <!-- The only row of main table --> - <!-- For Image --> - <table> - <tr> <img src="1.jpg" /> </tr> </table> <br /> - <!-- End For Image --> - <h3> Dear <xsl:value-of select="CUSTHTLVOUCHER/CUSTOMERNAME" /> </h3> - <xsl:for-each select="CUSTHTLVOUCHER/TEXT"> - <table> - <tr> - <td style="FONT-SIZE: 10pt;"> - <p> <xsl:value-of select="@LINE" /> </p> </td> </tr> </table> </xsl:for-each> <br /> - <xsl:for-each select="CUSTHTLVOUCHER/HOTEL"> - <div style="BACKGROUND-COLOR: blue; WIDTH: 100%;"> - <table width="100%" style="BACKGROUND-COLOR: blue;"> - <tr> - <td align="left" style="COLOR: white; FONT-WEIGHT: bold; FONT-SIZE: 10pt;"> <xsl:value-of select="LBL1" /> </td> - <td align="right" style="COLOR: white; FONT-WEIGHT: bold; FONT-SIZE: 10pt;"> Booking Id : <xsl:value-of select="BOOKINGID" /> </td> </tr> </table> </div> <br /> - <DIV align="center"> - <TABLE id="tblMain" style="Z-INDEX: 106; LEFT: 72px; POSITION: static; TOP: 352px" cellSpacing="0" cellPadding="0" width="80%" align="center" border="1" bordercolor="#0099ff"> - <TR> - <TD style="FONT-SIZE: 12pt; FONT-WEIGHT: bold; COLOR: white; BACKGROUND-COLOR: #0099ff" colSpan="3" height="15"> - <DIV id="lblHotelName"> <xsl:value-of select="NAME" /> </DIV> </TD> </TR> - <TR> - <td colspan="3"> - <table width="100%" border="0"> <tr height="15" /> - <tr> <td align="right">Check-In:</td> - <td> - <div id="lblCheckIn" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: black"> <xsl:value-of select="CHECKINDATE" /> </div> </td> <td align="right">Check-Out:</td> - &
-
Yes, Actually I am working in Microsoft Dynamics NAV. Here for using XML I can use 'Microsoft XML, v3.0' and I have 1 xml, and 1 xsl given below XSL: <?xml version="1.0" encoding="ISO-8859-1" ?> - <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <html> <head /> - <body style="FONT-FAMILY: Tahoma;"> - <table border="0" width="100%"> - <!-- Main Table --> - <tr> - <!-- The only row of main table --> - <!-- For Image --> - <table> - <tr> <img src="1.jpg" /> </tr> </table> <br /> - <!-- End For Image --> - <h3> Dear <xsl:value-of select="CUSTHTLVOUCHER/CUSTOMERNAME" /> </h3> - <xsl:for-each select="CUSTHTLVOUCHER/TEXT"> - <table> - <tr> - <td style="FONT-SIZE: 10pt;"> - <p> <xsl:value-of select="@LINE" /> </p> </td> </tr> </table> </xsl:for-each> <br /> - <xsl:for-each select="CUSTHTLVOUCHER/HOTEL"> - <div style="BACKGROUND-COLOR: blue; WIDTH: 100%;"> - <table width="100%" style="BACKGROUND-COLOR: blue;"> - <tr> - <td align="left" style="COLOR: white; FONT-WEIGHT: bold; FONT-SIZE: 10pt;"> <xsl:value-of select="LBL1" /> </td> - <td align="right" style="COLOR: white; FONT-WEIGHT: bold; FONT-SIZE: 10pt;"> Booking Id : <xsl:value-of select="BOOKINGID" /> </td> </tr> </table> </div> <br /> - <DIV align="center"> - <TABLE id="tblMain" style="Z-INDEX: 106; LEFT: 72px; POSITION: static; TOP: 352px" cellSpacing="0" cellPadding="0" width="80%" align="center" border="1" bordercolor="#0099ff"> - <TR> - <TD style="FONT-SIZE: 12pt; FONT-WEIGHT: bold; COLOR: white; BACKGROUND-COLOR: #0099ff" colSpan="3" height="15"> - <DIV id="lblHotelName"> <xsl:value-of select="NAME" /> </DIV> </TD> </TR> - <TR> - <td colspan="3"> - <table width="100%" border="0"> <tr height="15" /> - <tr> <td align="right">Check-In:</td> - <td> - <div id="lblCheckIn" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: black"> <xsl:value-of select="CHECKINDATE" /> </div> </td> <td align="right">Check-Out:</td> - &
brijbmishra wrote:
Yes, Actually I am working in Microsoft Dynamics NAV.
Ah. You have taken a wrong turn in some router. This is a CodeProject.com forum not the Microsoft Dynamics NAV[^] forums which are located here.[^] And for the record, you now have two posts and ZERO questions. Good luck.
led mike
-
brijbmishra wrote:
Yes, Actually I am working in Microsoft Dynamics NAV.
Ah. You have taken a wrong turn in some router. This is a CodeProject.com forum not the Microsoft Dynamics NAV[^] forums which are located here.[^] And for the record, you now have two posts and ZERO questions. Good luck.
led mike