DocFlex/XML - XSDDoc - XML Schema Documentation Generator

  1. Introduction
  2. Generated Documentation
  3. Template-driven Documentation Generation
  4. Generator GUI
  5. Processing Capabilities
  6. Documentation Features
  7. Getting Started

1.  Introduction

As XML becomes the universal medium for storing and transferring various computer information and more XML applications appear, the XML schemas serve those rails on which such applications are developed and moving on. Now, XML schemas are growing ever more complicated, may consist of a lot of modules designed by different software architects. Meanwhile, W3C XML Schema language is complicated and verbose and more suitable for processing by machines rather than for human readers.

All of this makes new XML schemas nearly impossible to understand without a special documentation provided by their authors or, perhaps, generated by a special tool from the schemas themselves.

DocFlex/XML XSDDoc is one of such tools. It will decipher any XML schemas and represent them in the form of a beautiful clear-cut documentation (both multi-framed Javadoc-like HTML and printable RTF), which will help you to understand what those schemas actually describe.

If you are an XML schema author yourself, XSDDoc may be even more useful tool for you!

In fact, it may greatly help you to automat the process of documenting your XML schemas. With this tool, you won't need anymore to write a separate documentation for every your XML schema. Instead, using the <xs:annotation> elements, you can insert all your descriptions directly into the schemas themselves.

What is new now is that, along with the text, you can also insert the XHTML markup tags so as to format your descriptions in almost any imaginable way you wish:

Moreover, using <img> tags you can even insert images directly into your XML schema annotations!

Since, according to the W3C XML Schema specification, each <xs:documentation> element (where the annotation's text is exactly specified) is allowed to contain children from any other namespaces, the XML schemas containing annotations preformatted with XHTML tags will be the valid W3C XML schemas as well.

At the same time, such XML schemas could be processed by the “XSDDoc” templates into a splendid HTML or RTF documentation. What's more, using the Template Designer, you can easily customize such a generated documentation specifically for your requirements and needs.

2.  Genereated Documentation

The "XSDDoc" set of templates allows generation of the following types of documentation:

HTML documentation

RTF documentation

3.  Template-driven Documentation Generation

The XML Schema Documentation Generator presented here is actually implemented entirely as a set of XSDDoc templates using only generic capabilities of the raw XML file processing supported by DocFlex/XML, which is a powerful template-driven documentation and report generator from any data stored in XML files.

No Java code has been written anywhere specifically for the purpose of XML schema doc-generation! Neither any other XML processing technologies (e.g. XSL Transformations) are used anywhere in background!

"XSDDoc" Templates

The template set includes two main templates, which effectively provide two different documentation generators: Besides the main templates, there are many other templates (called subtemplates) that are used internally. Those subtemplates work as procedures invoked from the both main templates as well as from themselves. The entire "XSDDoc" template set consists of 62 templates.

Template Designer

Using a visual graphic Template Designer, you can customize all "XSDDoc" templates as you need. In particular, you can easily translate any messages specified in the templates from English into your native language, insert your company logotype, change documentation design and content, extend with your own functionality and so on.
Template Designer under Linux

This picture shows the PlainDoc.tpl template open with the Template Designer under Linux and the generator dialog invoked to generate with this template a sample XML schema documentation in RTF format (click to see the full-size screenshot).

4.  Generator GUI

Generator Dialog

Parameter Inspector

5.  Processing Capabilities

Schema Processing

Namespace Processing

Annotation Processing

6.  Documentation Features

Main Blocks

Documenting Local Elements

XML Representation Summary

Related Component Lists

Type Documentation

XML Source Documentation

7.  Getting Started

Please, see FAQ | How to get started?


Copyright© 2003-2008 Filigris Works, Leonid Rudy Softwareprodukte. All rights reserved.
To contact us, please visit www.filigris.com or e-mail to: contact@filigris.com