- From: Tobias Reif <tobiasreif@pinkjuice.com>
- Date: Sat, 28 Feb 2004 00:43:18 +0100
- To: Chris Lilley <chris@w3.org>
- Cc: www-svg@w3.org
On Fri 2004-02-27 Chris Lilley wrote: > Yes I think it should be required for 1.2 In addition to requiring it in the spec it should be required by the schemas. Since the svg element can not only be used as root element it might be difficult or impossible (not sure) to require the version attribute on the root element with RNG. Perhaps Schematron could be used, something like the following could be embedded in the RNG (just a rough sketch): <grammar xmlns='http://relaxng.org/ns/structure/1.0' ns='http://www.w3.org/2000/svg' xmlns:svg="http://www.w3.org/2000/svg" xmlns:sch="http://www.ascc.net/xml/schematron" > <sch:pattern name="version_required"> <sch:rule context="/svg:svg"> <sch:assert test="@version = '1.2'">The root element must have a version attribute with value "1.2".</sch:assert> </sch:rule> </sch:pattern> <!-- ... --> </grammar> http://www.xml.com/pub/a/2004/02/11/relaxtron.html?page=1 is quite helpful, also explaining how to do RNG+Schematron validation. Tobi -- Vim users, don't forget to http://iccf-holland.org/donate.html
Received on Friday, 27 February 2004 18:42:50 UTC