README 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. How do I convert these XML files to other formats like HTML, PF, PS
  2. and TXT? You need to have some software installed that deal with these
  3. conversions. Please read the INSTALL file how to install the software.
  4. Then come back to this file for examples how to convert these files
  5. into various other formats.
  6. XML to HTML:
  7. ------------
  8. Create a directory in which you want to store the HTML files and cd into
  9. that directory. Now run:
  10. mkdir -p chapter0{1,2,3,4,5,6,7,8,9} preface appendix{a,b} &&
  11. /usr/bin/openjade -t xml \
  12. -d /usr/share/dsssl/docbook/html/lfs.dsl \
  13. /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
  14. /path/to/index.xml
  15. XML to NOCHUNKS-HTML:
  16. --------------------
  17. The NOCHUNKS HTML version is one big HTML file:
  18. /usr/bin/openjade -t sgml \
  19. -V nochunks \
  20. -d /usr/share/dsssl/docbook/html/lfs.dsl \
  21. /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
  22. /path/to/index.xml > nochunks.html
  23. XML to TXT:
  24. -----------
  25. First create the NOCHUNKS HTML file, then convert by running:
  26. /usr/bin/lynx -dump nochunks.html > output.txt
  27. XML to PS and PDF:
  28. ------------------
  29. First create the NOCHUNKS HTML file, then convert by starting
  30. htmldoc. You can use the GUI and select the options. If you're
  31. satisfied with the default options you can run this command:
  32. /usr/bin/htmldoc --book --firstpage p1 -v -t <type> \
  33. -f <output> nochunks.html
  34. replace <type> by pdf13 to create a pdf file or replace <type> by ps3 to
  35. create a ps file. There are other pdf and ps levels, see the man page for
  36. possible other options. Replace <output> with the filename of the ps or
  37. pdf file that is to be generated.