Re: SVG doubts and questions

On Sun, 7 Dec 2003 23:49:42 +0100
Bartolomé Sintes Marco <BartolomeSintes@ono.com> 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 http://www.w3.org/Graphics/xhtml1-transitional-plus-embed.dtd 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
    http://www.w3.org/TR/SVG11/backward.html

> Is there a solution to this problem?

This solution should work with all browsers.

> 
> Best regards,
> Bartolomé Sintes


     Irene.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       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