README 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. How do I convert these XML files to other formats like HTML, PDF, 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/intel.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 doens'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/intel.xml > nochunks.html
  36. XML to TXT:
  37. -----------
  38. First create the NOCHUNKS HTML file, then convert by running:
  39. /usr/bin/lynx nochunks.html > output.txt
  40. XML to PDF:
  41. -----------
  42. First create the NOCHUNKS HTML file, then convert by starting
  43. /usr/bin/htmldoc. Personally I use the htmldoc GUI. It's easier to use
  44. than the slew of command line options you can use.
  45. In the GUI, click on the "Add Files..." button on the Input tab and
  46. select the NOCHUNKS HTML file. Then click the "PDF" button on the
  47. Output tab and enter the output file name in the "Output Path" box.
  48. If you don't want to change other options, click on the "Generate"
  49. button and wait a few seconds.
  50. XML to PS:
  51. ----------
  52. First create the NOCHUNKS HTML file, then convert by starting
  53. /usr/bin/htmldoc. Personally I use the htmldoc GUI. It's easier to use
  54. than the slew of command line options you can use.
  55. In the GUI, click on the "Add Files..." button on the Input tab and
  56. select the NOCHUNKS HTML file. Then click the "PS" button on the
  57. Output tab and enter the output file name in the "Output Path" box.
  58. If you don't want to change other options, click on the "Generate"
  59. button and wait a few seconds.