README 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. DocBook stylesheets for HTML5 output
  2. =============================================
  3. This directory contains XSL stylesheets
  4. for generating HTML5 output from DocBook content.
  5. For information on HTML5, see:
  6. http://dev.w3.org/html5/spec/Overview.html
  7. Note that there is no schema available for HTML5, by design.
  8. The output of these stylesheets is the XML serialization of
  9. HTML5. There is no provision for generating the HTML
  10. serialization of HTML5 with these stylesheets.
  11. These HTML5 stylesheets are also used by the EPUB3
  12. stylesheets included in this distribution.
  13. These stylesheets are customizations of the
  14. existing stylesheets in the "xhtml/" directory.
  15. Using a customization layer enables the HTML5
  16. stylesheets to inherit all the features of the
  17. XHTML stylesheets while making the minimum changes
  18. for them to produce valid HTML5.
  19. If you are processing DocBook 5 document, you should use
  20. the namespaced version of the stylesheets, with "-ns-"
  21. in the directory name.
  22. Usage
  23. -----------
  24. You should be able to apply any of these stylesheet files
  25. to a DocBook document as with any other DocBook stylesheet:
  26. xhtml5/docbook.xsl - Single file output.
  27. xhtml5/chunk.xsl - Chunked output.
  28. xhtml5/profile-docbook.xsl - Profiled single file output.
  29. xhtml5/profile-chunk.xsl - Profiled chunk output.
  30. xhtml5/chunkfast.xsl - Chunked output with precomputed chunks.
  31. Do not attempt to directly use the following two stylesheet files:
  32. xhtml-docbook.xsl
  33. xhtml-profile-docbook.xsl
  34. Those are copies of the corresponding files in the
  35. xhtml/ directory, modified to remove the doctype
  36. declarations in the xsl:output elements. They were also
  37. modified to import from the original xhtml/ directory.
  38. They will produce xhtml output, not HTML5 output.
  39. They are imported by the xhtml5 stylesheet files.
  40. Testing
  41. --------------
  42. The HTML5 output of these stylesheets should pass the
  43. W3C online validator, available here:
  44. http://validator.w3.org/