- Timestamp:
- 04/28/2005 06:29:06 PM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 4705fa4
- Parents:
- f7fc4ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
README
rf7fc4ac r97e4364 1 OUT OF DATE. UPDATE PENDING. 2 3 How do I convert these XML files to other formats like HTML, PF, PS 1 How do I convert these XML files to other formats like HTML, PDF, 4 2 and TXT? You need to have some software installed that deal with these 5 conversions. Please read the INSTALL file how to install that software. 3 conversions. Please read the INSTALL file to determine what programs 4 you need to install and where to get instructions to install that software. 6 5 Then come back to this file for examples how to convert these files 7 6 into various other formats. 8 7 8 These instructions are also incorporated in the Makefile. 9 9 10 XML to HTML: 10 11 ------------ 11 Create a directory in which you want to store the HTML files and cd into 12 that directory. Now run: 13 mkdir introduction postlfs general connect basicnet server \ 14 content x kde gnome xsoft multimedia pst preface \ 15 appendices other 16 /usr/bin/openjade -t xml \ 17 -d /usr/share/dsssl/docbook/html/blfs.dsl \ 18 /usr/share/dsssl/docbook/dtds/decls/xml.dcl \ 19 /path/to/index.xml 20 12 Create a directory in which you want to store the HTML files: ~/blfs-html 13 Change to the top of the directory where the xml code is located. 14 Now run: 15 BASEDIR="~/blfs-html" 16 xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR) \ 17 stylesheets/blfs-chunked.xsl index.xml 18 mkdir -p $(BASEDIR)stylesheets $(BASEDIR)images 19 cp stylesheets/*.css $(BASEDIR)stylesheets 20 cp images/*.png $(BASEDIR)/images 21 sed -i -e "s@../stylesheets@stylesheets@g" $(BASEDIR)/*.html 22 sed -i -e "s@../images@images@g" $(BASEDIR)/*.html 23 sh goTidy $(BASEDIR)/ 21 24 22 25 … … 24 27 -------------------- 25 28 The NOCHUNKS HTML version is one big HTML file: 26 /usr/bin/openjade -t sgml \ 27 -V nochunks \ 28 -d /usr/share/dsssl/docbook/html/blfs.dsl \ 29 /usr/share/dsssl/docbook/dtds/decls/xml.dcl \ 30 /path/to/index.xml > nochunks.html 29 xsltproc --xinclude --nonet -stringparam profile.condition html \ 30 --output $(BASEDIR)/BLFS-BOOK.html stylesheets/blfs-nochunks.xsl index.xml 31 tidy -config tidy.conf $(BASEDIR)/BLFS-BOOK.html 32 sed -i -e "s@text/html@application/xhtml+xml@g" $(BASEDIR)/BLFS-BOOK.html 31 33 32 34 XML to TXT: … … 35 37 /usr/bin/lynx -dump nochunks.html > output.txt 36 38 37 XML to P S and PDF:39 XML to PDF: 38 40 ------------------ 39 First create the NOCHUNKS HTML file, then convert by starting 40 htmldoc. You can use the GUI and select the options. If you're 41 satisfied with the default options you can run this command: 41 xsltproc --xinclude --nonet --output blfs.fo stylesheets/blfs-pdf.xsl index.xml 42 sed -i -e "s/inherit/all/" blfs.fo 43 fop.sh blfs.fo blfs.pdf 44 mkdir -p $(BASEDIR)/pdf 45 rm blfs.fo 46 mv blfs.pdf $(BASEDIR)/pdf 47 42 48 43 /usr/bin/htmldoc --book --firstpage p1 -v -t <type> \44 -f <output> nochunks.html45 46 replace <type> by pdf13 to create a pdf file or replace <type> by ps3 to47 create a ps file. There are other pdf and ps levels, see the man page for48 possible other options. Replace <output> with the filename of the ps or49 pdf file that is to be generated.50
Note:
See TracChangeset
for help on using the changeset viewer.