On Sat, Oct 18, 2008 at 7:42 PM, Tobias Markmann <[EMAIL PROTECTED]>wrote:
> On Thu, Oct 16, 2008 at 11:56 AM, Nicolas Roussel <[EMAIL PROTECTED]>wrote: > >> Hi, >> >> I've been looking for a way to generate up-to-date documentation in PDF >> format from the xmpp.org website or the svn repository. >> >> It seems someone might have done this before, since there's an fo.xsl file >> in the "extensions" directory of the svn repository. But this stylesheet is >> obsolete (it uses "jep" instead of "xep" in a number of places) and I >> haven't been able to use it with xsltproc and fop to produce a correct PDF >> output (e.g. tables are missing). >> >> Has anyone successfully used fo.xsl in the past? Is anyone else interested >> in PDF documentation? >> >> Nicolas >> >> --- >> Nicolas Roussel http://insitu.lri.fr/~roussel/ >> In Situ, Univ. Paris-Sud (LRI) & INRIA Saclay - Île-de-France >> >> > I've wrote some script that follows a toolchain like xep-####.xml -> XSLT > -> TeXML -> pdflatex which produced quite usable output though not perfect. > The TeXML author also suggested using XeTeX instead because of better > unicode support. I'll see what I can do and upload some examples and the > scripts. > > Cheers, > Tobias > So here are the promised files: Example: http://ayena.de/files/xep-0124.pdf Source and some minor dependencies: http://ayena.de/files/xeppdf_18102008.zip The main part and what took most time, several hours I guess (though I haven't counted), is the xep2xmltex.xsl file. If you have ideas of improvement for it I'd be pleased if you let me know. Short notice on usage: Just put the xep-####.xml in the same xeppdf folder which comes out of the zip and run ./convert-all.sh. You may need to run two times if the resulting PDFs don't have PDF bookmarks for table of contents items. You can put as many XEP XML files in there as you want. Cheers, Tobias
