Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Sending Transformed XML as mail body

Sending Transformed XML as mail body

Scheduled Pinned Locked Moved XML / XSL
xmlhtmlquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brijbmishra
    wrote on last edited by
    #1

    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.

    L 1 Reply Last reply
    0
    • B brijbmishra

      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.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Do you have a question?

      led mike

      B 1 Reply Last reply
      0
      • L led mike

        Do you have a question?

        led mike

        B Offline
        B Offline
        brijbmishra
        wrote on last edited by
        #3

        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> - &

        L 1 Reply Last reply
        0
        • B brijbmishra

          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> - &

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          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

          L 1 Reply Last reply
          0
          • L 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

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            led mike wrote:

            you now have two posts and ZERO questions.

            :laugh:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups