Hi,
I'm currently creating a set of xpt files to make a documentation
generation.
I've made a template document and I generated a .gendoc file using "Import
document for Gendoc".
Using this gendoc document in Topcased, Iève created a custom "Generation
Type" using oAW with a xpt file.
Documentation generation works fine and use my custom xpt file for a
custom generation type but I want to make
a more "nice" documentation and I want to use some styles or use alignment
for texts but I dont know how to use them.
The following xpt file is used to browse the packages of my uml model and
for every class show informations about properties and attributes.
«IMPORT uml»
«DEFINE Root(String fileName) FOR Package»
«FILE fileName+".docbook" -»
<?xml version='1.0' encoding="ISO-8859-15" ?>
<book lang="en">
«EXPAND PackageChapter FOREACH ownedElement-»
</book>
«ENDFILE»
«ENDDEFINE»
«DEFINE PackageChapter FOR Package-»
<chapter id="id«name»">
<title>Content of the Package «name»</title>
«EXPAND ClassSection FOREACH ownedType-»
</chapter>
«EXPAND PackageChapter FOREACH ownedElement-»
«ENDDEFINE»
«DEFINE PackageChapter FOR Element»
«ENDDEFINE»
«DEFINE ClassSection FOR Class-»
<para>Class «owner.name».«name»</para>
<title>Properties</title>
«EXPAND ClassesPropertiesContentsInTable-»
<title>Operations</title>
«EXPAND OperationPara FOREACH ownedOperation»
«ENDDEFINE»
«DEFINE ClassSection FOR Type»
«ENDDEFINE»
«DEFINE PropertyTemplate FOR Property-»
<row>
<entry>«name»</entry>
<entry>«type.name»</entry>
</row>
«ENDDEFINE»
Here I want to use some styles to make my table more nice like
align="center" for the texts in the cells or define the width of the
table...
I tries to use <table width="300"> or <tgroup cols="2" align="right"> but
it does not changes anything.
«DEFINE ClassesPropertiesContentsInTable FOR Class-»
<table>
<title>Content of the class «name»</title>
<tgroup>
<thead>
<row>
<entry>Property
name</entry>
<entry>Type</entry>
</row>
</thead>
<tbody>
«EXPAND PropertyTemplate FOREACH
ownedAttribute»
</tbody>
</tgroup>
</table>
«ENDDEFINE»
«DEFINE PropertyPara FOR Property-»
<para>Property «name» of type «type.name»</para>
«ENDDEFINE»
«DEFINE OperationPara FOR Operation-»
<para>Operation «name» of type
«IF type!=null-»«type.name»«ENDIF»
«IF type==null-»void«ENDIF»
</para>
«ENDDEFINE»_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users