Re: SVG doubts and questions

On Sun, 7 Dec 2003 23:49:42 +0100
Bartolomé Sintes Marco <> wrote:

> Hi,
> I want to create and insert SVG images in XHTML documents.
> 1. It is easy to insert <svg> elements in a XHTML document in Amaya (using
> the
> SVG palette), but document does not validate (no doctype) and it can  not be
> seen in Mozilla or Internet Explorer. Which doctype should be used in order
> to
> have a valid xhtml document?

There is normally a doctype for XHTML 1.1 + MathML + SVG to validate this
kind of document.

> 2. Then I create a .svg file using Amaya and I try to insert this file in a
> XHTML document.
> 2.a. I have tried to use the <object> and the <iframe> tag, but it seems
> that it a svg file is not allowed in these tags. ¿Is it true?

Normally it should work with the <object> tag.

> 2.b. W3C Scalable Vector Graphics (SVG) Test Suite pages uses the <embed>
> tag
> and the dtd,
> but this dtd is not allowed in Amaya. If I edit the source code and I add the
> doctype and the embed tags, I can see the document in Amaya, Mozilla and Internet
> Explorer. But when I edit the document in formatted view, the doctype is lost and the
> document does not validate. Can this dtd be added to Amaya?

The recommendation is to use <object> as explained in

> Is there a solution to this problem?

This solution should work with all browsers.

> Best regards,
> Bartolomé Sintes

Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail:       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Monday, 8 December 2003 12:07:20 UTC