Hi,

docbook is a format that doesn't have information about styles.

In the current version (2.4), the documentation generation try to find some styles in the template document (the document used as input) and applied them to the generated documentation.

For instance, if you generate a chapter, the documentation generator will try to find the style used for a chapter in the template document and will apply it to the generated chapter.


In the new version 2.5 (available next week), a new docbook tag is available in the documentation generator (for docx generation only). This tag will allow users to specify the corresponding style in the template document. See :
http://oreilly.com/catalog/docbook/chapter/book/markup.html

To specify the style, you just have to add the attribute "role" to this tag with the name of the corresponding style in your template document.


Regards,

Thibault



[email protected] a écrit :

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
begin:vcard
fn;quoted-printable:Thibault Landr=C3=A9
n;quoted-printable:Landr=C3=A9;Thibault
org:Atos Origin - Agence Sud-Ouest ;Systems Integration
adr;quoted-printable;quoted-printable:5, avenue Albert Durand ;;Batiment A=C3=A9ropole ;Blagnac;Midi-Pyr=C3=A9n=C3=A9es;31701;France
email;internet:[email protected]
tel;work:+33 (0)5.34.36.34.46
note;quoted-printable:D=C3=A9veloppement durable, anticipons pour notre avenir / Sustainibility=
	, advance our future=0D=0A=
	P N'imprimez ce mail que si n=C3=A9cessaire / please consider your enviro=
	nmental responsibility before printing this e-mail.=0D=0A=
	Ce message et les pi=C3=A8ces jointes sont confidentiels et r=C3=A9serv=C3=
	=A9s =C3=A0 l'usage exclusif de ses destinataires. Il peut =C3=A9galement=
	=C3=AAtre prot=C3=A9g=C3=A9 par le secret professionnel. Si vous recevezc=
	e message par erreur, merci d'en avertir imm=C3=A9diatement l'exp=C3=A9di=
	teur et de le d=C3=A9truire. L'int=C3=A9grit=C3=A9 du message ne pouvant=C3=
	=AAtre assur=C3=A9e sur Internet, la responsabilit=C3=A9 du groupeAtosOri=
	gin ne pourra =C3=AAtre recherch=C3=A9e quant au contenu de cemessage.=
	 Bien que les meilleurs efforts soient faits pour maintenir cette transmi=
	ssion exempte de tout virus, l'exp=C3=A9diteur ne donne aucunegarantie=C3=
	=A0 cet =C3=A9gard et sa responsabilit=C3=A9 ne saurait =C3=AAtre recherc=
	h=C3=A9e pour tout dommage r=C3=A9sultant d'un virus transmis.=0D=0A=
	=0D=0A=
	This e-mail and the documents attached are confidential and intended sole=
	ly for the addressee, it may also be privileged. If you receive this e-ma=
	il in error, please notify the sender immediately and destroy it. As itsi=
	ntegrity cannot be secured on the Internet, the Atos Origin group liabili=
	ty cannot be triggered for the message content. Although the sender endea=
	vours to maintain a computer virus-free network, the sender does notwarra=
	nt that this transmission is virus-free and will not be liable forany dam=
	ages resulting from any virus transmitted.
url:http://www.atosorigin.com/
version:2.1
end:vcard

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to