W3C home > Mailing lists > Public > www-svg@w3.org > June 2000

RE: dynamically create and insert SVG into an HTML page

From: Justin Friedl <justin.friedl@aspentech.com>
Date: Fri, 23 Jun 2000 18:19:17 -0400
Message-ID: <B1612D837360D111A9C000805FBBCCC901E87D34@geoffrey.sea.aspentech.com>
To: "'Chris Lilley'" <chris@w3.org>
Cc: "'www-svg@w3.org'" <www-svg@w3.org>

>OK. The weak link here is the traditional, not necessarily well-formed,
>HTML. Using XML (for example, XHTML) you can then have the SVG as child
>elements in a single XML parse tree. For that you need an XML browser that
>can render SVG (for the graphics) and can render text using CSS or XSL FO
>(for the text). 

Are there any browsers that currently support this?
thanks
Justin

-----Original Message-----
From: Chris Lilley [mailto:chris@w3.org]
Sent: Friday, June 23, 2000 6:18 AM
To: Justin Friedl
Cc: 'www-svg@w3.org'
Subject: Re: dynamically create and insert SVG into an HTML page




Justin Friedl wrote:
> 
> thanks, how? Because I can't figure out how to take dynamically created
SVG
> and insert it into an <embed> tag in HTML.  I want to just take the
unparsed
> SVG-XML data and insert somehow into an <embed> tag.  The only way I can
> figure out how to insert SVG is through a "src" attribute of <embed> which
> references a .svg file. 

Correct.

> This is ok but does not solve the problem of
> dynamically creating an entirely new SVG-XML image on the client.

Also correct. It would be better to do it inline.

> Here's my scenario:
> XML is downloaded to the client(browser IE 5.0/5.5) 

presumably any XML browser ;-)

> along with several XSLT
> transformation stylesheets (for different views of the data). 

OK, any XML + XSL-T browser

>  On the client
> one stylesheet is applied(through javascript in an HTML page)

Where did the HTML page come from?

> to the XML
> data(using MSXML3).  The output of this is SVG-XML data.  The SVG-XML data
> is then displayed.  The user can click on different views in which case
> different XSLT stylesheets are applied to the original XML and new SVG-XML
> is output to be viewed.

OK. The weak link here is the traditional, not necessarily well-formed,
HTML. Using XML (for example, XHTML) you can then have the SVG as child
elements in a single XML parse tree. For that you need an XML browser that
can render SVG (for the graphics) and can render text using CSS or XSL FO
(for the text). 

Are there any browsers that currently support this?

--
Chris
Received on Friday, 23 June 2000 18:19:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:47 GMT