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. Visualize XML

Visualize XML

Scheduled Pinned Locked Moved XML / XSL
questionalgorithmsxml
4 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.
  • B Offline
    B Offline
    Boniolopez
    wrote on last edited by
    #1

    Hi all, am new with xml, so may be the question is not very correct. I have the xlm description of the electonic shema. This description includes nodes (i.e. transistors, resistors ...) and wires. Now I want to visualize the circuit with intenet explorer. I have somehow to make IE to understand, that when it meet in XML transistor it has to take the picture transistor.gif... After all elements are placed it has to draw the wires in the optimal way (route on the fly?I have an algorithm but don't know where to put it in xml). I have absolutely no idea how XML can be visualized. Please could you give me the starting point. Thanks, Boni

    D 1 Reply Last reply
    0
    • B Boniolopez

      Hi all, am new with xml, so may be the question is not very correct. I have the xlm description of the electonic shema. This description includes nodes (i.e. transistors, resistors ...) and wires. Now I want to visualize the circuit with intenet explorer. I have somehow to make IE to understand, that when it meet in XML transistor it has to take the picture transistor.gif... After all elements are placed it has to draw the wires in the optimal way (route on the fly?I have an algorithm but don't know where to put it in xml). I have absolutely no idea how XML can be visualized. Please could you give me the starting point. Thanks, Boni

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      hi Boni, oh oh... i only see lots of xslt and javascript and CSS :(( or plug-in to IE. Yeah, plug-in shoud be better option, but still it's quite difficult I think (I never made any plugin). At least, it is possible to archive your goal ;) However, IMO its far easier to make win app for it instead of use IE. best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

      B 1 Reply Last reply
      0
      • D DavidNohejl

        hi Boni, oh oh... i only see lots of xslt and javascript and CSS :(( or plug-in to IE. Yeah, plug-in shoud be better option, but still it's quite difficult I think (I never made any plugin). At least, it is possible to archive your goal ;) However, IMO its far easier to make win app for it instead of use IE. best regards, David 'DNH' Nohejl Never forget: "Stay kul and happy" (I.A.)

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

        Hi David, hi all thank you very much for your reply. I have now easier question. Lets leave the routing outside (As far as I understand you javascript and plug-in are from routing, right?). How can I say the IE that if it meets a tag "Transistor" to take a picture "transistor.gif". Is it easy? Do I supposed to use XSLT or CSS? (sorry, I don't know much about both and the resources I could find so far about XSLT was not very clear. On other side I use CSS to change font colors on the page and so on, but don't know how it can help to solve my problem.) Thanks alot, Boni

        D 1 Reply Last reply
        0
        • B Boniolopez

          Hi David, hi all thank you very much for your reply. I have now easier question. Lets leave the routing outside (As far as I understand you javascript and plug-in are from routing, right?). How can I say the IE that if it meets a tag "Transistor" to take a picture "transistor.gif". Is it easy? Do I supposed to use XSLT or CSS? (sorry, I don't know much about both and the resources I could find so far about XSLT was not very clear. On other side I use CSS to change font colors on the page and so on, but don't know how it can help to solve my problem.) Thanks alot, Boni

          D Offline
          D Offline
          DavidNohejl
          wrote on last edited by
          #4

          Hi Boni, Boniolopez wrote: How can I say the IE that if it meets a tag "Transistor" to take a picture "transistor.gif" You actually don't say it to IE. Yes, you are supposed to use XSLT. What XSLT do? You have some XML document, and in XSLT you say how to transform it. Result of transformation is usually another XML document, but not allways. You can have XSLT transformation which will output CSV, plain text or whatever. So you will have XLST which will transform XML tag "Transistor" into tag "<img src='transistor.gif' />" The point of use CSS is in absolute positioning, which allow you to arrange images on page. Example: <img src='transistor.gif' style='position:absolute;left:5px;top:5px'> will render image with upper-left corner 5 pixels from top of the page and 5 pixels from left border . btw I've learnt XSLT from (MSDN[^]) I think it's good for u to learn it too (whereever), cuz I think XSLT is very powerful and useful technology... It's not so difficult as it might look ;) I hope these information are helpfull... I don't want to write it all, a) it would be so loong post ;) b) I want to leave something for u :) David Never forget: "Stay kul and happy" (I.A.)

          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