Hi Jens,
I got the same result with your example
ie. the test.svg can be "Viewed" but when it is included in index_html, only the text message is displayed.
I'm wondering if there is something I need to set in Zope
Here is my configuration
|
Zope Version |
(Zope 2.4.0 (binary release, python 2.1, linux2-x86), python 2.1.0, linux2) |
|
Python Version |
2.1 (#2, Jun 22 2001, 10:20:42) [GCC 2.7.2.3] |
|
System Platform |
linux2 |
|
Process Id |
9952 (4101) |
|
Running For |
4 min 44 sec |
David
Original Message dated 10/17/01, 3:50:20
Author: "Jens Grewen" <zope@grewen.de>
Re: Re: [Zope] SVG files in Zope:
Hi David,
hmmm I cannot see why this shouldn´t work so
I have exported my svg test folder. see attachment!
Import the testsvg.zexp to your zope and test my litttle example.
Good luck
Cheers
Jens
----- Original Message -----
From: Dave Kennedy
To: Jens Grewen
Sent: Wednesday, October 17, 2001 1:20 AM
Subject: Re: [Zope] SVG files in Zope
Hi Gens,
I tried what you suggested and while, I can "View" the logo.svg image, only the text ("Logo") is displayed when called from index_html.
Here is index_html:
<dtml-var standard_html_header>
<OBJECT data="logo.svg" type="image/svg+xml">
Logo.
</OBJECT>
<dtml-var zope_quick_start>
<dtml-var standard_html_footer>
Any suggestions would be greatly appreciated
David
Original Message dated 10/15/01, 2:14:17
Author: "Jens Grewen" <zope@grewen.de>
Re: Re: [Zope] SVG files in Zope:
Hi David,
I have tested SVG with Zope.
You can put the XML File (SVG) inside a dtml document.
Only thing you have to do is to set the header at the beginning of the document.
<dtml-call "RESPONSE.setHeader('Content-Type', 'image/svg+xml')">
Then you can call it from another objekt and integrate the SVG file inside your HTML code.
<OBJECT data="test.svg" type="image/svg+xml">
This is a <EM>closeup</EM> of the Grand Canyon.
</OBJECT>
Cheers Jens
----- Original Message -----
From: D K Systems Inc.
To: zope@zope.org
Sent: Sunday, October 14, 2001 3:52 AM
Subject: [Zope] SVG files in Zope
Is it possible to use Scalable Vector Graphics (SVG) files in Zope ? If so, is there an example of using one?
Regards,
David