Re: MlView User Doc
Philippe Mechaï <[email protected]> Mon, 29 Nov 2004 20:09:10 +0100
| Newsgroups | gmane.editors.mlview.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, There are many generic XSL stylesheets that can convert XML to PDF. If you're using debian, you can look for docbook2pdf or db2pdf which makes the conversion pretty simple and straightforward. Regards, Philippe Le lundi 29 novembre 2004 =C3=A0 15:13 +0100, Bart Vanherck a =C3=A9crit : > Hello, >=20 >=20 > On Wed, 2004-11-24 at 22:38 +0100, [email protected] wrote: >=20 > > ->xsltproc /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl > > gnome-app-template-mlview-tutorial003.xml >> mymaual.html > >=20 > > I don't know the command/tools to create a pdf document from xml file. > > may be someone else could help. >=20 > I found out that this can be done with TeX. In fact with ConTeXt. > ConTeXt has a build in xml parser, so it is very easy to make pdf=20 > files out xml documents. > More info is on http://www.leverkruid.nl/context/ >=20 > After installing the docbook macros do the following: > If the docbook file is named test.xml > make a file test.tex with following content : > \input xtag-docbook > \setupindenting[medium] > \setupheadertexts[section][pagenumber] > \setupheader[leftwidth=3D.7\hsize,style=3Dslanted] > \setuppagenumbering[location=3D] > \setupitemize[each][packed][before=3D,after=3D,indentnext=3Dno] >=20 > \starttext > \processXMLfilegrouped{\jobname.xml} > \stoptext >=20 >=20 >=20 > Then issue the following command >=20 > texexec --pdf test.tex >=20 > And a pdf has been made. Simple, no ? >=20 >=20