[Zope] SVG files in Zope

Jens Grewen zope@grewen.de
Mon, 15 Oct 2001 11:14:17 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0093_01C1556A.879B22B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=3D"test.svg" type=3D"image/svg+xml">
This is a <EM>closeup</EM> of the Grand Canyon.
</OBJECT>


Cheers Jens

  ----- Original Message -----=20
  From: D K Systems Inc.=20
  To: zope@zope.org=20
  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

------=_NextPart_000_0093_01C1556A.879B22B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi David,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have tested SVG with =
Zope.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You can put the XML File =
(SVG)&nbsp;inside a dtml=20
document.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Only thing you have to do is to set the =
header at=20
the beginning of the document.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-call =
"RESPONSE.setHeader('Content-Type',=20
'image/svg+xml')"&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Then you can call it from another =
objekt and=20
integrate the SVG&nbsp;file inside your HTML code.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;OBJECT data=3D"test.svg"=20
type=3D"image/svg+xml"&gt;<BR>This is a &lt;EM&gt;closeup&lt;/EM&gt; of =
the Grand=20
Canyon.<BR>&lt;/OBJECT&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cheers Jens</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Ddkennedy@acm.org href=3D"mailto:dkennedy@acm.org">D K =
Systems Inc.</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dzope@zope.org=20
  href=3D"mailto:zope@zope.org">zope@zope.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Sunday, October 14, 2001 =
3:52=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Zope] SVG files in =
Zope</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Is it possible to use Scalable Vector =
Graphics=20
  (SVG) files in Zope ? If so, is there an example of using =
one?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
  <DIV><FONT face=3DArial =
size=3D2>David</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0093_01C1556A.879B22B0--