Today sees the first release of a set of stylesheets for creating documentation and diagrams from RELAX-NG schemas.

The stylesheet rng2docbook.xsl does more or less what it says in the file name, creates a Docbook XML instance from a RELAX-NG schema. The stylesheet will document the content model and attributes of each element and each define in a RELAX-NG schema. Any documentation strings included in the default RELAX-NG documentation namespace will also appear in the Docbook output.

The second set of stylesheets creates one or more SVG diagrams from a RELAX-NG schema. You can choose to have the whole schema in a single diagram or to have separate diagrams for specific elements and defines (or for all elements and/or defines).

Read the full details on the stylesheets here.