README.LIBXSLT 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ----------------------------------------------------------------------
  2. README file for the libxslt extensions
  3. ----------------------------------------------------------------------
  4. $Id: README.LIBXSLT 7877 2008-03-08 04:07:52Z xmldoc $
  5. These are XSLT extensions written in Python for use with the DocBook XML
  6. stylesheets and the libxslt library[1].
  7. Currently, the only available extension is a function for adjusting column
  8. widths in tables. For more information, see the section describing the
  9. equivalent Java extension in "DocBook XSL: The Complete Guide"[2].
  10. ----------------------------------------------------------------------
  11. Preparations
  12. ----------------------------------------------------------------------
  13. In addition to libxml2 and libxslt, the following software needs to
  14. be installed before you start using the extensions:
  15. 1. Python[3].
  16. 2. Python bindings for libxml2/libxslt. Most distributions of
  17. libxml2/libxslt for Unix/Linux include these bindings.
  18. A native Windows port is provided by Stéphane Bidoul[4].
  19. ----------------------------------------------------------------------
  20. Installation of the extensions
  21. ----------------------------------------------------------------------
  22. No special installation step is needed.
  23. ----------------------------------------------------------------------
  24. How to use the extensions
  25. ----------------------------------------------------------------------
  26. Instead of using xsltproc, you run a Python program (xslt.py). The
  27. command has this general form:
  28. python xslt.py xmlfile xslfile [outputfile] [param1=val1 [param2=val]...]
  29. Modify paths, filenames, and parameters as needed. Make sure to set
  30. the "use.extensions" and "tablecolumns.extension" parameters to 1.
  31. ----------------------------------------------------------------------
  32. Manifest
  33. ----------------------------------------------------------------------
  34. README.LIBXSLT This file
  35. xslt.py Executable script file
  36. docbook.py Module that implements extensions
  37. ----------------------------------------------------------------------
  38. [1] http://xmlsoft.org/XSLT
  39. [2] http://www.sagehill.net/docbookxsl/ColumnWidths.html
  40. [3] http://www.python.org/download
  41. [4] http://users.skynet.be/sbi/libxml-python