From: Bob Stayton Date: Thu, 24 Jul 2014 21:06:19 +0000 (+0000) Subject: Added section on customizing epub3 stylesheet. X-Git-Tag: release/1.79.1~6^2~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73e4e99d6c108af5dba09586156f181e6369b007;p=docbook-dsssl Added section on customizing epub3 stylesheet. --- diff --git a/xsl/epub3/README b/xsl/epub3/README index 95aaf2ac1..ca0cf4825 100644 --- a/xsl/epub3/README +++ b/xsl/epub3/README @@ -16,6 +16,9 @@ stylesheets to inherit all the features of the XHTML stylesheets while making the minimum changes for them to produce valid EPUB3. +If you need to customize the epub3 stylesheet, see the section +below titled "Customizing the epub3 stylesheet". + Usage ----------- The general process for creating an EPUB3 ebook is: @@ -139,6 +142,79 @@ Ibis EPUB3 preview version - Handles SVG with external viewer. +Customizing the epub3 stylesheet +--------------------------------- +As with all DocBook stylesheets that generate chunked output, a +customization requires two files: one for chunking behavior and +one for element formatting. Most people only need to customize +element formatting, but you still need the two files to keep the +proper import precedence. See this doc for details about this +issue: + + http://www.sagehill.net/docbookxsl/ChunkingCustomization.html + +Here is an example of the chunking stylesheet, which is the one you +apply to your document when processing: + +custom-epub3-chunk.xsl +-------------------------------------------------------------------- + + + + + + + + + + + + + + + + + + +-------------------------------------------------------------------- + +The following stylesheet file is imported by the above file. + +custom-epub3-elements.xsl +-------------------------------------------------------------------- + + + + + + + + + + + +-------------------------------------------------------------------- + + + EPUB metadata ======================== The info child of the document's root element is used