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

Re: Entity references in path/transform data

From: Chris Lilley <chris@w3.org>
Date: Tue, 11 Apr 2000 01:02:04 +0200
Message-ID: <38F25D6C.FE61CB73@w3.org>
To: Steve Dickson <sdickson@savagesoftware.com>
CC: www-svg@w3.org


Steve Dickson wrote:
> 
> Some clarification please.  Is it considered valid to embed entity
> references within path and transform data?   I'm thinking along the
> following lines:
> 
> <!ENTITY line "L 200 200">
> <!ENTITY trans "translate(100, 200)">
> 
> <svg width="640" height="480">
>         <g transform = "&trans; rotate(30)">
>         <path d = "M 400 400 &line; M 300 300 &line; z"/>
>         </g>
> </svg>
> 
> Can anyone point me to the relevant parts of the SVG/DOM specs that either
> preclude or sanction these types of constructs?  

You would look to the XML spec, not the SVG spec. Its either well formed
XML or it isn't. Anything which is well formed XML is legal. Go crazy with
nested entities if you wish. Just make sure the result is well formed.

--
Chris
Received on Monday, 10 April 2000 19:02:10 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:18 GMT