DocBook is an XML / SGML vocabulary that enables you to create document content in a presentation-neutral form that captures the logical structure of the content.
Open source stylesheets also exist that allow you to transform DocBook content into a variety of formats.
how you can use open source tools to automate the generation of Unified Modeling Language (UML) diagrams, build figures, entity-relationship diagrams (ERDs), and even user documentation.