W3C home > Mailing lists > Public > public-cdf@w3.org > October 2007

Re: SVG in text/html

From: Jirka Kosek <jirka@kosek.cz>
Date: Sun, 14 Oct 2007 23:31:09 +0200
Message-ID: <47128A9D.5070608@kosek.cz>
To: Doug Schepers <schepers@w3.org>
CC: Henri Sivonen <hsivonen@iki.fi>, www-svg <www-svg@w3.org>, public-cdf@w3.org, "public-html@w3.org" <public-html@w3.org>
Doug Schepers wrote:

> Most tools do include XML prologs and DOCTYPES in their SVG output...
> what affect will this have on a whole-file copy-paste into HTML, in
> terms of parsing?

Many SVG tools use internal entities in produced content. This is
showstopper not only for embeding of SVG into HTML, but also for
embedding into XML.

As SVG has to be normalized before inserting into HTML -- at least
!DOCTYPE has to be removed and entities expanded, most likely also CDATA
section removed I don't see any compelling reason why not to "normalize"
 HTML into XHTML before insertion of SVG fragment also. That way there
will be no need to mangle HTML syntax to accept SVG fragments.

If you really think that HTML should be able to accept SVG, MathML, ...
fragments then HTML syntax should be defined in a more generic manner as
an alternative seralization of XML Infoset.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------


Received on Sunday, 14 October 2007 21:30:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:41 GMT