mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-12-27 03:33:50 -05:00
* Merged newxml into HEAD
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3434 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
59
INSTALL
59
INSTALL
@@ -11,62 +11,29 @@ website at http://www.linuxfromscratch.org for more information.
|
||||
-------------------------------------------------------------------------------
|
||||
If all you want to do is convert XML to HTML perform the following:
|
||||
|
||||
First, let's handle some dependencies:
|
||||
|
||||
* Unzip
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/general/unzip.html
|
||||
|
||||
* SGML Common
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/sgml-common.html
|
||||
|
||||
* libxml2
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxml2.html
|
||||
|
||||
Now install the following:
|
||||
* libxslt
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/general/libxslt.html
|
||||
|
||||
* DocBook DTD
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/DocBook.html
|
||||
|
||||
* DSSSL DocBook Stylesheets
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-dsssl.html
|
||||
|
||||
* OpenSP
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/opensp.html
|
||||
|
||||
* OpenJade
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/openjade.html
|
||||
|
||||
Once you have followed the installation instructions for all these packages
|
||||
from the BLFS Book, then you have a basic DocBook setup. Below are some
|
||||
alternate packages that you can use to convert to other formats.
|
||||
* DocBook XSL Stylesheets
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/pst/docbook-xsl.html
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
If you want to be able to convert the book into PS and PDF as well, then you
|
||||
will need the Htmldoc package. This takes a HTML file (created with openjade
|
||||
which you already installed) and converts it to PS or PDF:
|
||||
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:
|
||||
|
||||
- http://www.easysw.com/htmldoc/
|
||||
|
||||
Install HTMLDOC by running:
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make install
|
||||
- http://www.apache.org/dist/xml/fop/fop-0.20.5-bin.tar.gz
|
||||
|
||||
An excellent X front-end for HTMLDOC is FLTK. If you will be doing rendering
|
||||
in X, then you will probably want this package.
|
||||
Install FOP by running:
|
||||
|
||||
- http://sourceforge.net/projects/fltk
|
||||
|
||||
Install FLTK bt running:
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make install
|
||||
|
||||
If you want to be able to convert the book into TXT as well, then you need the
|
||||
lynx browser. Conversion is handled via the -dump option.
|
||||
|
||||
- http://www.linuxfromscratch.org/blfs/view/cvs/basicnet/lynx.html
|
||||
|
||||
You are finished installing everything. Read the README file for some examples
|
||||
how to convert this XML to the various other formats.
|
||||
cd /opt &&
|
||||
tar -xzvf /usr/src/fop-0.20.5-bin.tar.gz &&
|
||||
mv fop-0.20.5 fop
|
||||
|
||||
Now set JAVA_HOME, FOP_HOME and PATH to values appropriate to your system.
|
||||
|
||||
Reference in New Issue
Block a user