Re: [mlview-list] MlView User Doc



Hello,


On Wed, 2004-11-24 at 22:38 +0100, mtidjani free fr wrote:

> ->xsltproc /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl
> gnome-app-template-mlview-tutorial003.xml >> mymaual.html
> 
> I don't know the command/tools to create a pdf document from xml file.
> may be someone else could help.

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 
files out xml documents.
More info is on http://www.leverkruid.nl/context/

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=.7\hsize,style=slanted]
\setuppagenumbering[location=]
\setupitemize[each][packed][before=,after=,indentnext=no]

\starttext
\processXMLfilegrouped{\jobname.xml}
\stoptext



Then issue the following command

 texexec --pdf test.tex

And a pdf has been made. Simple, no ?


-- 
Bart Vanherck

mail: herckb at telenet dot be
jabber: herckb at jabber dot org




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]