Software / XSD2SVG

XSLT API for generating SVG content model graphics for XSD components

The "XSD2SVG Content Model Graphic API" was programmed by our XSLT developer Nico Kutscherauer and is available on GitHub as a free download for unrestricted use. The API is an XSLT3 package that can be included in other XSLT stylesheets.

More information about the XSD2SVG Content Model Graphic API.

What is the purpose of the API?

In professional XML Schema documentation, a key feature is providing a graphical representation of each schema component’s content model so that readers can understand how to use the component at a glance.

Simple content models usually do not need a graphical representation. For very complex content models, however, a graphic helps provide an overview.

This library helps create excellent schema documentation with attractive content model graphics.

Features

  • Annotations can be displayed as dynamic tooltips (when CSS is rendered directly).

  • SVG graphics can be generated as standalone files (with embedded CSS) or embedded in a website with existing CSS.

  • Configuration options:

    • The CSS can be customized.

    • A custom font can be used and embedded.

    • A function is provided for creating links within the SVG graphics.

Examples

Two simple examples and one more complex example follow:

Example 1: Simple element with attributes

Simple element with attributes

Figure: Simple element with attributes.

 

Example 2: Simple element with child elements

Simple element with child elements

Figure: Simple element with child elements.

 

Example 3: DocBook example with a complex structure

DocBook example with a complex structure

Figure: DocBook example with a complex structure.

   

back to top