diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2010-08-05 23:03:11 +1200 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2010-08-05 23:03:11 +1200 |
commit | 3142a24c7df3dd654e58c49236dc4556bf845df9 (patch) | |
tree | 9a9fee2e44f4b2cfef2968dfdecf84a2d96eb907 | |
parent | 2578d14f813f8147810a14c6479ce13992b5a0b7 (diff) | |
download | asciidoc-3142a24c7df3dd654e58c49236dc4556bf845df9.tar.gz |
- Chunking for a2x EPUB and HTML outputs set to a per chapter basis; first
chapter separate from preceding contents.
- Changed dates format in example books to suppress EPUB validation error.
-rw-r--r-- | doc/book-multi.txt | 2 | ||||
-rw-r--r-- | doc/book.txt | 2 | ||||
-rw-r--r-- | docbook-xsl/chunked.xsl | 4 | ||||
-rw-r--r-- | docbook-xsl/epub.xsl | 6 |
4 files changed, 12 insertions, 2 deletions
diff --git a/doc/book-multi.txt b/doc/book-multi.txt index a4bfec0..c562877 100644 --- a/doc/book-multi.txt +++ b/doc/book-multi.txt @@ -1,7 +1,7 @@ Multi-Part Book Title Goes Here
===============================
Author's Name
-v1.0, Dec 2003
+v1.0, 2003-12
[dedication]
diff --git a/doc/book.txt b/doc/book.txt index 249aa5f..f635e9c 100644 --- a/doc/book.txt +++ b/doc/book.txt @@ -1,7 +1,7 @@ Book Title Goes Here
====================
Author's Name
-v1.0, Dec 2003
+v1.0, 2003-12
[dedication]
diff --git a/docbook-xsl/chunked.xsl b/docbook-xsl/chunked.xsl index 940bec2..cf00ba7 100644 --- a/docbook-xsl/chunked.xsl +++ b/docbook-xsl/chunked.xsl @@ -11,6 +11,10 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
<xsl:import href="common.xsl"/>
+<!-- Separate the first chapter from preceding content. -->
+<xsl:param name="chunk.first.sections" select="1"/>
+<!-- Chunk on a chapter by chapter basis (no sub-section chunks. -->
+<xsl:param name="chunk.section.depth" select="0"/>
<xsl:param name="navig.graphics.path">images/icons/</xsl:param>
<xsl:param name="admon.graphics.path">images/icons/</xsl:param>
<xsl:param name="callout.graphics.path" select="'images/icons/callouts/'"/>
diff --git a/docbook-xsl/epub.xsl b/docbook-xsl/epub.xsl index b589aa1..a300c23 100644 --- a/docbook-xsl/epub.xsl +++ b/docbook-xsl/epub.xsl @@ -12,6 +12,12 @@ <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/epub/docbook.xsl"/>
<xsl:import href="common.xsl"/>
+<!-- Separate the first chapter from preceding content. -->
+<xsl:param name="chunk.first.sections" select="1"/>
+
+<!-- Chunk on a chapter by chapter basis (no sub-section chunks. -->
+<xsl:param name="chunk.section.depth" select="0"/>
+
<!--
DocBook XSL 1.75.2: Nav headers are invalid XHTML (table width element)
-->
|