W3C home > Mailing lists > Public > public-svg-wg@w3.org > April to June 2009

Re: Child element order differences between SVG 1.1 and SVG Tiny 1.2

From: Chris Lilley <chris@w3.org>
Date: Fri, 17 Apr 2009 17:04:00 +0200
Message-ID: <752477980.20090417170400@w3.org>
To: Cameron McCormack <cam@mcc.id.au>
CC: public-svg-wg@w3.org
On Friday, April 17, 2009, 7:32:16 AM, Cameron wrote:

CM> In SVG 1.1, the DTD for various elements restrict the order of the
CM> element’s children.  For example here is the definition of <rect>
CM> with the entities expanded out:

CM>   <!ELEMENT "rect"
CM>      (( desc | title | metadata )*,
CM>       ( animate | set | animateMotion | animateColor |
CM>         animateTransform )*)>

CM> So any <desc>, <title> or <metadata> elements have to appear before any
CM> of the animation elements.

CM> It seems for container elements, however, such as <g>, the <desc>,
CM> <title> and <metdata> elements can go anywhere.


CM> In SVG Tiny 1.2, the RNG doesn’t require <rect>’s descriptive element
CM> children to come first. 

Yes. That was a deliberate decision.

CM>  Is this behaviour we want to backport to 1.1
CM> when publishing the Second Edition (by virtue of starting from the 1.2T
CM> RNG and adding on to it)?  I think it is reasonable.

I think so too.



-- 
 Chris Lilley                    mailto:chris@w3.org
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG
Received on Tuesday, 21 April 2009 13:49:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 21 April 2009 13:49:46 GMT