Document! X supports documentation of Xsd Schemas. Xsd Schema documentation produces a comprehensive documentation set for your Xsd Schemas covering Elements, Simple Types, Complex Types, Groups, Attributes, Attribute Groups, Constraints and Facets.
Document! X can extract any documentation annotations created in the Xsd source against any schema items.
<annotation> <documentation xml:lang="en"> The documentation annotation type allows you to include basic documentation within the XSD schema source. </documentation> </annotation>
Create a new Xsd Schema Reference Documentation Project
The new empty documentation project will be created and opened for edit. You can now add the Xsd Schemas that you wish to document:
The selected Xsd Schema be added to the Project Explorer under the Xsd Schemas node. You can expand down through the Xsd Schema node to tick / untick individual Xsd Schema elements in order to include / exclude them from the generated output. Repeat the process above to add additional Xsd Schemas to this project.
A Content File will be created and added to the project under the Content Files node for each added Xsd Schema. You can use this Content File to author additional content in the pages that Document! X will automatically generate.
Author content in the Xsd Schema
You can use the Xsd Schema annotation feature to author documentation content directly within your Xsd Schema. Annotation content will be used by default in the Summary section of the related generated page.
<xs:element name="purchaseOrder" type="PurchaseOrderType"> <xs:annotation> <xs:documentation xml:lang="en">The purchase order.</xs:documentation> </xs:annotation> </xs:element>
Author content outside of the schema
If you would like to supplement the content of the pages automatically generated by Document! X outside of the Xsd Schema source, you can do so using the Document! X Content File Editor.
The Content File Editor allows you to review and author content for any item for which a reference documentation page is generated.
To open the Content File Editor:
Add Conceptual Topics
Conceptual information is a key part of reference documentation, providing a high level introduction, tutorials or other conceptual information. You can easily create conceptual topics in Document! X.
You can find more information on Topic Editing in the Topic Editor topic.
Change Xsd Schema documentation settings
The settings that govern Xsd Schema Documentation generation are defined in the Build Profile editor. In a new project there is a single Build Profile but you can define many build profiles if you want to create multiple outputs with different settings.
To edit Xsd Schema documentation settings:
In the Build Profile editor, you can find the XSD Schema Settings page under the Reference Documentation section.
You can change the Template used for Xsd Schema documentation (which defines the look and feel of generated pages) on the Templates page.
Identify undocumented items
An essential part of delivering a complete documentation set is ensuring that all the items have been documented. Document! X includes the Undocumented Items tool to quickly and easily identify undocumented items.
To identify undocumented items:
See the Undocumented Items topic for more information.
Build and deploy Database reference documentation
Click the Build Ribbon button on the Project ribbon tab to build your XSD Schema reference documentation.
Refer to the Deployment topic for more information on how to deploy your documentation to other machines.