2003-09-10 02:13:03 +01:00
|
|
|
LFS Book Conversion Tools Installation Instructions
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-10-04 11:19:10 +01:00
|
|
|
After downloading the CVS source, there are some things that need to be set up
|
2003-09-10 02:13:03 +01:00
|
|
|
on your computer if you want to convert the XML source into something easier to
|
|
|
|
read (e.g. HTML, TXT, PS or PDF). If you are interested in this, then keep
|
|
|
|
reading. If you are only interested in editing the XML source for re-
|
|
|
|
submission to the lfs-book or lfs-dev mailing lists, then you do not need this
|
|
|
|
document. Instead, you need to read the LFS Editor's Manual. See the LFS
|
2004-01-27 22:28:14 +00:00
|
|
|
website at http://www.linuxfromscratch.org for more information.
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
If all you want to do is convert XML to HTML perform the following:
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* libxml2
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxml2.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2004-05-03 11:33:11 +01:00
|
|
|
* libxslt
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxslt.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
* DocBook DTD
|
2004-06-03 19:14:10 +01:00
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/xml.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2004-05-03 11:33:11 +01:00
|
|
|
* DocBook XSL Stylesheets
|
|
|
|
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2004-06-18 19:04:55 +01:00
|
|
|
* HTMLTidy
|
|
|
|
- http://tidy.sourceforge.net/
|
|
|
|
|
|
|
|
Installation of HTMLTidy is a simple `./configure --prefix=/usr && \
|
|
|
|
make && make install`
|
|
|
|
|
2003-09-10 02:13:03 +01:00
|
|
|
-------------------------------------------------------------------------------
|
2004-05-03 11:33:11 +01:00
|
|
|
If you want to be able to convert the book into PDF as well, then you will need
|
|
|
|
the FOP package. This takes an XSL-FO file (created with libxslt which you
|
|
|
|
already installed) and converts it to PDF:
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2004-05-03 11:33:11 +01:00
|
|
|
- http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2004-05-03 11:33:11 +01:00
|
|
|
Install FOP by running:
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2004-05-03 11:33:11 +01:00
|
|
|
cd /opt &&
|
|
|
|
tar -xzvf /usr/src/fop-0.20.5-bin.tar.gz &&
|
|
|
|
mv fop-0.20.5 fop
|
2001-02-22 18:21:07 +00:00
|
|
|
|
2004-05-03 11:33:11 +01:00
|
|
|
Now set JAVA_HOME, FOP_HOME and PATH to values appropriate to your system.
|