Go to file
Manuel Canales Esparcia 516af1140b Tagged tk.xml
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3992 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-05-05 20:46:59 +00:00
appendices Indented glossary.xml 2005-04-28 19:27:22 +00:00
basicnet Added a test suite note to NTP. 2005-05-04 19:08:16 +00:00
book Fixed titles capitalization. Added -v to commands that support it. 2005-05-01 09:37:53 +00:00
connect Fixed dialup.xml title. 2005-05-04 21:45:15 +00:00
general Tagged tk.xml 2005-05-05 20:46:59 +00:00
gnome
images
introduction Shortened the Tidy documentation generation commands. 2005-05-05 15:37:31 +00:00
kde Added patch for kdepim 2005-04-29 07:46:36 +00:00
multimedia Fixed typos in GStreamer instructions (thanks, Matt) 2005-05-05 20:09:35 +00:00
postlfs
pst Moved patch download to 'Additional downloads' section and re-added the note about JAVA_HOME to the FOP instructions 2005-04-24 14:23:14 +00:00
server
stylesheets Removed a duplicate section in the CSS code. 2005-05-01 21:23:00 +00:00
template Fixed template.xml 2005-04-30 19:29:42 +00:00
x Added a test suite note to GTK+. 2005-04-30 08:35:19 +00:00
xsoft updated oo build size and moved jdk md5sums file 2005-04-29 06:12:31 +00:00
general.ent forgot to update date 2005-05-05 05:14:02 +00:00
goTidy
index.xml
INSTALL Making README and INSTALL current 2005-04-28 18:29:06 +00:00
lib-config.xml
Makefile
README Making README and INSTALL current 2005-04-28 18:29:06 +00:00
tidy.conf
use-unzip.xml

How do I convert these XML files to other formats like HTML, PDF, 
and TXT? You need to have some software installed that deal with these
conversions. Please read the INSTALL file to determine what programs 
you need to install and where to get instructions to install that software.
Then come back to this file for examples how to convert these files
into various other formats.

These instructions are also incorporated in the Makefile.

XML to HTML:
------------
Create a directory in which you want to store the HTML files: ~/blfs-html
Change to the top of the directory where the xml code is located.
Now run:
  BASEDIR="~/blfs-html"
  xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \
     stylesheets/blfs-chunked.xsl index.xml
  mkdir -p $(BASEDIR)stylesheets $(BASEDIR)images
  cp stylesheets/*.css $(BASEDIR)stylesheets
  cp images/*.png $(BASEDIR)/images
  sed -i -e "s@../stylesheets@stylesheets@g" $(BASEDIR)/*.html
  sed -i -e "s@../images@images@g" $(BASEDIR)/*.html
  sh goTidy $(BASEDIR)/


XML to NOCHUNKS-HTML:
--------------------
The NOCHUNKS HTML version is one big HTML file:
  xsltproc --xinclude --nonet -stringparam profile.condition html \
     --output $(BASEDIR)/BLFS-BOOK.html stylesheets/blfs-nochunks.xsl index.xml
  tidy -config tidy.conf $(BASEDIR)/BLFS-BOOK.html
  sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/BLFS-BOOK.html

XML to TXT:
-----------
First create the NOCHUNKS HTML file, then convert by running:
	/usr/bin/lynx -dump nochunks.html > output.txt

XML to PDF:
------------------
xsltproc --xinclude --nonet --output blfs.fo stylesheets/blfs-pdf.xsl index.xml
sed -i -e "s/inherit/all/" blfs.fo
fop.sh blfs.fo blfs.pdf
mkdir -p  $(BASEDIR)/pdf
rm blfs.fo
mv blfs.pdf $(BASEDIR)/pdf