SVG authoring guidelines

Jonathan Watt has written up some authoring guidelines for SVG. All SVG authors should read and obey these rules.

I hope someone gets around to writing a SVG validator that besides doing the regular validation also warns for common interoperability problems. Possibly based on Relaxed (Relax-NG + Schematron). Such a tool would greatly help authors to write SVG files that works in all viewers.

5 Responses

  1. Henri Sivonen Says:
    There already is a RELAX NG and Schematron validation service that allows user-provided schemas (unlike Relaxed): http://hsivonen.iki.fi/validator/

    The SVG WG is producing RELAX NG schemas for SVG. What is missing is a Schematron schema for checking the additional constraints that you want checked.

  2. Niklas Gustavsson Says:
    The site looks excellent. SVG WG will only produce RELAX NG schemas for SVG 1.2, but those would serve as a good starting material for SVG 1.1 schemas (as that’s where the implementations focus today).

    Are you doing any work on supporting inline Schematron assertions? Would it be possible to add predefined schemas for SVG just like the ones for HTML5?

  3. Henri Sivonen Says:
    I tried switching from Jing to MSV in order to get embedded Schematron support. However, I got stack overflows with MSV where all was fine with Jing. Also, MSV does not support the Compact Syntax of RELAX NG and the license of the Schematron plug-in for MSV is unclear. I went back to Jing and am not pursuing embedded Schematron support at the moment. Sorry.

    If you have a RNG schema with embedded Schematron and you want to use the Schematron part of the schema with my service, you need to extract a standalone Schematron schema first and use it as a pure Schematron schema. That’s what I did with Petr Nalevka’s XHTML schemas. (BTW, Jing is a bit pickier about Schematron schemas than the reference implementation of Schematron 1.5.)

    Currently I offer the SVG 1.2 Tiny schema as a preset. I am not offering other SVG schemas as presets at this time, because I do not know whether the full 1.2 schema is stable. I intend to include it when it is stable (ie. at the latest when the spec is no longer a WD).

  4. Niklas Gustavsson Says:
    If I ever get around to producing a Relax NG + Schematron for SVG 1.1 I’ll be sure to get back to you :-)
  5. samy Says:
    can you SVG pros suggest an alternative to ASV 3 plugin for IE?
    Looks like CSV is also EOL’d. Am looking for some Live plugins. Renesis is not the choice.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.