OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: DocBook on Kubuntu 8.04 (cmiiw)


Hi,

This is how I did it to make fop run on Kubuntu 8.04.
Please correct me if I am wrong.

(1) Visit https://help.ubuntu.com/community/DocBook#Hello%20World
Check if these following packages are installed:
       xsltproc, docbook-xsl, docbook-defguide

(2) Download fop (currently 0.95beta) from somewhere.
See also http://xmlgraphics.apache.org/fop/download.html
Extract the tar package into /usr/local/share/fop-XXX .
Symlink from /usr/local/share/fop-XXX/fop to /usr/local/bin/fop

(3) Download offo-hyphenation-fop-stable from somewhere.
See also http://sourceforge.net/projects/offo
Extract the package and put ''fop-hyph.jar'' into
/usr/local/share/fop-XXX/lib/

(4) Check if these SUN-JAVA6 packages are installed:
   sun-java6-jdk, sun-java6-bin, sun-java6-jre
Make sure that other Java packages do not interfere
(eg. gcj).

(5) Create a small ''test.xml'' file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://docbook.org/xml/4.5/docbookx.dtd";>
<article><title>My First Docbook Article</title>
<section><title>Section</title>
   <para>Super-cali-fragilistic-expiali-docious.
   Suo-icodilaip-xecit-sili-garf-ila-crepus.</para>
   <section><title>SubSection</title>
      <para>Super-cali-fragilistic-expiali-docious.
      Suo-icodilaip-xecit-sili-garf-ila-crepus.
      </para></section></section></article>

(6) The moment of truth.... try...
% xsltproc --stringparam draft.mode no -o test.fo
/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl test.xml
[Ignore the warnings]
% /usr/local/bin/fop test.fo test.pdf
[Ignore the warnings]
% kpdf test.pdf
[Ta...da...]

-- 
EL6.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]