Home
Categories
Dictionary
Download
Project Details
Changes Log
FAQ
License

Document generation plugin


The Document generation plugin allows to generate a docx document with the definition of a schema. It presents a table for each element defined in the Schema, with its list of attributes and its possible children.

Usage

If the currently selected tab is an XML Schema, the "Generate Document" option is available for the Plugin:
docgene2

Example

For the following Schema:
      <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">   
         <xs:element name="persons" type="personsType"/> 
         <xs:simpleType name="age"> 
            <xs:restriction base="xs:integer"> 
               <xs:minInclusive value="0"/> 
               <xs:maxInclusive value="120"/> 
            </xs:restriction> 
         </xs:simpleType>  
         <xs:complexType name="personType"> 
            <xs:annotation> 
               <xs:documentation xml:lang="en"> 
      Represents on person
               </xs:documentation> 
            </xs:annotation>      
            <xs:simpleContent> 
               <xs:extension base="xs:string"> 
                  <xs:attribute type="xs:string" name="name" use="optional"/> 
                  <xs:attribute type="age" name="age" use="optional"/> 
               </xs:extension> 
            </xs:simpleContent> 
         </xs:complexType> 
         <xs:complexType name="personsType"> 
            <xs:sequence> 
               <xs:element type="personType" name="person" maxOccurs="unbounded" minOccurs="0"/> 
            </xs:sequence> 
         </xs:complexType> 
      </xs:schema>
We will have the following document:
docgene

Categories: plugins

Copyright 2006-2016 Hervé. All Rights Reserved. Documentation and source under the LGPL v2 and Apache 2.0 licences