W3C home > Mailing lists > Public > public-exi@w3.org > May 2009

Re: [public-exi] <none>

From: Robin Berjon <robin@berjon.com>
Date: Fri, 29 May 2009 10:05:09 +0200
Cc: "'FABLET Youenn'" <Youenn.Fablet@crf.canon.fr>, <public-exi@w3.org>, <fujisawa.jun@canon.co.jp>
Message-Id: <6DE4FA0F-8472-4664-928A-9DF3D0FF1FCC@berjon.com>
To: Taki Kamiya <tkamiya@us.fujitsu.com>
On May 29, 2009, at 02:59 , Taki Kamiya wrote:
> You also indicated that SVG schema is huge.
> (Maybe you can call it even small compared with Docbook schema, I  
> suppose. ;-)
> You may want to separate the schema used for exchange from the more  
> stringent,
> constraining schema used for validation. One simple schema may just  
> declare
> element and attribute names so that their names get into the initial  
> string
> table. You should be able to calibrate the schema by defining some  
> element
> content as repeatable choice of child elements so that the generated  
> grammar
> is of minimal size, as necessary.

If you're willing to transform the document before encoding (in a way  
that is unlikely to cause failure) you can also declare that <defs> is  
the required first child of the root element, then fold all content  
from other <defs> into it, plus all paint servers (linearGradient,  
radialGradient, solidColor) as well as filter, mask, clipPath, etc.,  
and make all of those forbidden elsewhere (instead of able to appear  

You can also normalise the style attribute (removing it completely),  
and kill most of the XLink attributes too.

There's a lot that can be done! As Taki says, relish!

Robin Berjon - http://berjon.com/
     Feel like hiring me? Go to http://robineko.com/
Received on Friday, 29 May 2009 08:05:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:43 UTC