- From: Alan Clark <aclark@selectica.com>
- Date: Fri, 5 May 2000 13:38:23 -0700
- To: <www-svg@w3.org>
I believe that the only way that it can currently be done is to use either an <embed> or <object> tag. This is essentially how you leverage Plug-ins within an HTML page. I am looking for a solution that would enable me to place the <svg> content inline with the HTML. Is this possible?? A very simple example of how to leverage the <embed> tag follows: <html> <head> <body> this is a test <center> <p><embed name="simplegroups" width="200" height="200" src="simplegroups.svg" pluginspage="http://www.adobe.com/svg/viewer/install/"> </p> </center> </body> </head> </html> Notice that all <svg> content is maintained in a seperate file. The content follows: <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN" "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd" > <svg width="200px" height="200px"> <desc>Two groups, each of two rectangles </desc> <g id="OBJECT1" style="fill:cyan"> <rect x="0" y="0" width="50" height="50" /> <rect x="50" y="50" width="50" height="50" /> </g> <g id="OBJECT2" style="fill:blue"> <rect x="100" y="100" width="50" height="50" /> <rect x="150" y="150" width="50" height="50" /> </g> </svg> Alan Clark Selectica -----Original Message----- From: www-svg-request@w3.org [mailto:www-svg-request@w3.org]On Behalf Of Fish Sent: Monday, May 05, 2059 1:24 PM To: www-svg@w3.org Subject: How can I display SVG from HTML od XML docs ? Please help me, It has to be simple, but I recently started with XML and SVG and I can view SVG in my browser, but when I try to open it in a HTML document with the <IMG SRC"bla.svg"> it can't display the picture. Thank you, Randy Hak
Received on Friday, 5 May 2000 16:38:45 UTC