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

Re: External ressources in SVG

From: Paton J. Lewis <palewis@Adobe.COM>
Date: Thu, 31 Aug 2000 08:13:07 -0700
Message-Id: <4.2.2.20000831080816.00b52220@mail-333>
To: Bernd Grolig <Bernd.Grolig@ptv.de>
Cc: www-svg@w3.org
Bernd,

Unfortunately the Adobe SVG Viewer does not yet support external entities. 
At the moment the only way to include external XML inside of your SVG files 
that would work with the Adobe SVG Viewer is to use server-side includes.

Pat

At 03:44 PM 8/29/00 +0200, Bernd Grolig wrote:
>Hi.
>
>Some days ago I followed a discussion about integrating external ressources
>in SVG.
>
>It's no problem to separate styles (using the <?xml-stylesheet ...?>
>processing instruction) and script ressources (e.g.: <script
>type="text/javascript" externalResourcesRequired="true"
>xlink:href="lib.js"/>) from the SVG - source.
>
>However once it should work to access additional SVG-Code with the use
>element in external SVG- files, but this is not yet implemented in the Adobe
>SVG Viewer.
>
>So I tried to find some work around this, in order to use external
>ressources in SVG.
>
>I found a solution that would work proper in XML:
>
>It's possible to use external entities in XML. If I look at the same file in
>the XML View in Internet Explorer all the information of the referenced file
>is parsed into the document.
>
><?xml version="1.0" encoding="iso-8859-1"?>
><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
>"http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd"
>[
>         <!ENTITY details SYSTEM "external_svg_code.xml">
>]>
>
><svg>
>....
>
>&details;
>...
>
></svg>
>
>However the Adobe Viewer views the internal code, but nothing of the
>referenced code. If I check the file for validity, I get an error message,
>that text is not allowed inside SVG element, although the external
>ressources are proper SVG code.
>
>What could be the reason for this behaviour? Are there any other
>possibilities to use external code in SVG right now?
>
>Thanks for Your help!
>
>Regards, Bernd.

____________________________________________________________
Paton J. Lewis
Engineering Manager, SVG
Adobe Systems
206.675.7399
Received on Thursday, 31 August 2000 11:14:33 GMT

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