README 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 xml \
  11. -d /usr/share/dsssl/docbook/html/lfs.dsl \
  12. /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
  13. /path/to/index.xml
  14. XML to NOCHUNKS-HTML:
  15. --------------------
  16. The NOCHUNKS HTML version is one big HTML file:
  17. /usr/bin/openjade -t sgml \
  18. -V nochunks \
  19. -d /usr/share/dsssl/docbook/html/lfs.dsl \
  20. /usr/share/dsssl/docbook/dtds/decls/xml.dcl \
  21. /path/to/index.xml > nochunks.html
  22. XML to TXT:
  23. -----------
  24. First create the NOCHUNKS HTML file, then convert by running:
  25. /usr/bin/lynx -dump nochunks.html > output.txt
  26. XML to PS and PDF:
  27. ------------------
  28. First create the NOCHUNKS HTML file, then convert by starting
  29. htmldoc. You can use the GUI and select the options. If you're
  30. satisfied with the default options you can run this command:
  31. /usr/bin/htmldoc --book --firstpage p1 -v -t <type> \
  32. -f <output> nochunks.html
  33. replace <type> by pdf13 to create a pdf file or replace <type> by ps3 to
  34. create a ps file. There are other pdf and ps levels, see the man page for
  35. possible other options. Replace <output> with the filename of the ps or
  36. pdf file that is to be generated.