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

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 UTC