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