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. displaying an image with the path in the xml?

displaying an image with the path in the xml?

Scheduled Pinned Locked Moved XML / XSL
questionxml
5 Posts 2 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.
  • S Offline
    S Offline
    Support123
    wrote on last edited by
    #1

    Hi i have the following code in my xml... C:\Reports\GR_Logo.jpg How do i call this in the Thank you in advance. "Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

    S 1 Reply Last reply
    0
    • S Support123

      Hi i have the following code in my xml... C:\Reports\GR_Logo.jpg How do i call this in the Thank you in advance. "Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

      S Offline
      S Offline
      Sushant_Mathur
      wrote on last edited by
      #2

      You can take value of LogoPath tag in a xsl:variable and then assign that varible to src attribute of img tag like

      Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

      S 1 Reply Last reply
      0
      • S Sushant_Mathur

        You can take value of LogoPath tag in a xsl:variable and then assign that varible to src attribute of img tag like

        Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

        S Offline
        S Offline
        Support123
        wrote on last edited by
        #3

        Thanks, that worked like a charm. but i didn't use it exactly like you did. I only said... This used the tag caled LogoPath. Would you by any chance know how to embed this image into the html? Say i send this html that gets generated to someone else, and that person doesn't have the image in the path specified... Thank you for your time. Nico "Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

        S 1 Reply Last reply
        0
        • S Support123

          Thanks, that worked like a charm. but i didn't use it exactly like you did. I only said... This used the tag caled LogoPath. Would you by any chance know how to embed this image into the html? Say i send this html that gets generated to someone else, and that person doesn't have the image in the path specified... Thank you for your time. Nico "Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

          S Offline
          S Offline
          Sushant_Mathur
          wrote on last edited by
          #4

          You can use XSLT to create HTML page of your XML data and image should be there..means path you have specified...same like in HTML we have imgae in the source location... hope i have replied answer of your question correctly :)

          Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

          S 1 Reply Last reply
          0
          • S Sushant_Mathur

            You can use XSLT to create HTML page of your XML data and image should be there..means path you have specified...same like in HTML we have imgae in the source location... hope i have replied answer of your question correctly :)

            Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm

            S Offline
            S Offline
            Support123
            wrote on last edited by
            #5

            Yes thank you, i understand what you mean. I can display the picture, but if i want to send the html (that was generated by the xml and xsl) i need to send the image along with it otherwise it won't display. How do i embed an image so that the image is part of the html in the end?

            "Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

            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