README 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 that 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. /usr/bin/openjade -t sgml \
  11. -d /usr/share/dsssl/docbook/html/lfs.dsl \
  12. /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
  13. /path/to/index.xml
  14. While openjade is running you will see a lot of the following kind of
  15. errors:
  16. /usr/bin/openjade:/usr/share/docbook/ent/iso-lat1.ent:6:19:E: "X00E1"
  17. is not a function name
  18. /usr/bin/openjade:/usr/share/docbook/ent/iso-lat1.ent:7:19:E: "X00C1"
  19. is not a function name
  20. /usr/bin/openjade:/usr/share/docbook/ent/iso-lat1.ent:8:18:E: "X00E2"
  21. is not a function name
  22. /usr/bin/openjade:/usr/share/docbook/ent/iso-lat1.ent:9:18:E: "X00C2"
  23. is not a function name
  24. /usr/bin/openjade:/usr/share/docbook/ent/iso-lat1.ent:10:19:E: "X00E0"
  25. is not a function name
  26. They are normal in the sense of that it doesn't affect the output
  27. files. A fix hasn't been found yet so we'll just have to live with it.
  28. XML to NOCHUNKS-HTML:
  29. --------------------
  30. The NOCHUNKS HTML version is one big HTML file:
  31. /usr/bin/openjade -t sgml \
  32. -V nochunks \
  33. -d /usr/share/dsssl/docbook/html/lfs.dsl \
  34. /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
  35. /path/to/index.xml > nochunks.html
  36. XML to TXT:
  37. -----------
  38. First create the NOCHUNKS HTML file, then convert by running:
  39. /usr/bin/lynx -dump nochunks.html > output.txt
  40. XML to PS and PDF:
  41. ------------------
  42. First create the NOCHUNKS HTML file, then convert by starting
  43. htmldoc. You can use the GUI and select the options. If you're
  44. satisfied with the default options you can run this command:
  45. /usr/bin/htmldoc --book --firstpage p1 -v -t <type> \
  46. -f <output> nochunks.html
  47. replace <type> by pdf13 to create a pdf file or replace <type> by ps3 to
  48. create a ps file. There are other pdf and ps levels, see the man page for
  49. possible other options. Replace <output> with the filename of the ps or
  50. pdf file that is to be generated.