Plantuml is a modeling language to create UML diagrams (use case, class, sequence, activity, component, state, ...).
Ant4docbook aims to:
- easy convert plantuml to svg or png, using ant + plantuml.
- easy xinclude plantuml in docbook documents.
Please install (linux debian):$ apt-get install graphviz
docbook-plantuml.xml
<article xmlns:xi="http://www.w3.org/2001/XInclude">__<title>Test xinclude plantuml</title><xi:include href="diagram.plantuml"/>__</article>
diagram.plantuml
@startuml__Alice -> Bob: Authentication Request__Bob --> Alice: Authentication Response__Alice -> Bob: Another authentication Request__Alice <-- Bob: another authentication Response_@enduml_
build.xml
<project name="docbook-plantuml" default="docbook-and-plantuml"><taskdef name="dbk"classname="net.sourceforge.ant4docbook.taskdefs.DocbookTask"classpath="PATH/TO/ant4docbook.jar"/><target name="docbook-plantuml"><dbk file="docbook-plantuml.xml" tofile="docbook-plantuml.pdf" /></target>__</project>
see: docbook-plantuml.pdf