W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2003

Re: Medusa was Re: Is it possible to use one SVG to contain other SVGs, in a way that also enables the user to copy the contained SVGs and paste them into another document, for instance into ms Word?

From: Paul Cheyrou-lagreze <Paul.Cheyrou-Lagreze@inrialpes.fr>
Date: Mon, 2 Jun 2003 15:43:13 +0200
To: Jonathan Chetwynd <j.chetwynd@btinternet.com>
Cc: www-amaya@w3.org
Message-Id: <20030602154313.544982bd.Paul.Cheyrou-Lagreze@inrialpes.fr>

>  but if direct recursion is not to be supported, is there still a reasonable case for supporting tertiary 
> use*?

Recusive use does work.
check the Sierpinsky triangle at  http://www.mecxpert.de/svg/fractals.html

But If a symbol contains a reference to himself using a <use>, there's a problem :
 Amaya never stops loading uses and goes into infinite loop until it succeed int freezing the computer...
It should exists a test to see when a use is useless, based on pixel rendered state (< 1 pixel or something like that...)
 or a hard limit (no more than 15 recursive <use>)... but it's hard to tell what solution to implement...

But I'm not sur that it's what you're looking for ? Real recursive use ?

> * see below "a file uses <use> to link to a file that <uses> use. "
?

> This will certainly be used by me if possible, for instance perhaps the 
> sunglasses on people in a scene.

You can have a external svg defining sunglasses, an other set of files containing people, and a SVG that use (external) people using (external, but the same) sunglasses.
This should work. Try it locally (on your hard-drive.).

-Paul
Received on Monday, 2 June 2003 09:42:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:28 UTC