From 73e4e99d6c108af5dba09586156f181e6369b007 Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Thu, 24 Jul 2014 21:06:19 +0000 Subject: [PATCH] Added section on customizing epub3 stylesheet. --- xsl/epub3/README | 76 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) 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 -- 2.50.1