summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-07-27 18:16:27 -0400
committerGaetan Nadon <memsize@videotron.ca>2011-07-28 20:44:54 -0400
commitc31f1709205a62a3c91a9012c2ac7e3b3d98884a (patch)
tree8f1ae15cb3b1ed335f35f0a84a68aaa84625a2d1
parentc1beb2dbf5e0cf27fe1c7d5b7d8ee97b5a9a990b (diff)
Add support for generating chunked xhtml for DocBooks
Some large documents will benefit from this feature. A different docbook xsl file must be imported. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--Makefile.am1
-rw-r--r--xorg-chunk.xsl59
2 files changed, 60 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 74fe5cb..8ae8ed8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,6 +25,7 @@ dist_sgmlx11_DATA = \
defs.ent xorg.css \
xorg.xsl \
xorg-xhtml.xsl \
+ xorg-chunk.xsl \
xorg-fo.xsl
pkgconfigdir = $(datadir)/pkgconfig
diff --git a/xorg-chunk.xsl b/xorg-chunk.xsl
new file mode 100644
index 0000000..3d85c6f
--- /dev/null
+++ b/xorg-chunk.xsl
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ X.Org DocBook/XML customization
+
+ DocBook XSL Stylesheets HTML Parameters
+ http://docbook.sourceforge.net/release/xsl/current/doc/html/
+-->
+
+<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"/>
+
+ <!-- Reference Pages HTML/FO Parameters -->
+
+ <!-- The formatting of a function element will include generated parentheses -->
+ <xsl:param name="function.parens" select="1"/>
+
+ <!-- ANSI-style function synopses are generated for a funcsynopsis element -->
+ <xsl:param name="funcsynopsis.style" select="ansi"/>
+
+ <!-- Miscellaneous HTML/FO Parameters-->
+
+ <!-- SVG will be considered an acceptable image format -->
+ <xsl:param name="use.svg" select="1"/>
+
+ <!-- Pagination and General Styles HTML/FO Parameters -->
+ <!--
+ Speed up ps & pdf creation by not creating pages with "draft" image,
+ thus not needing to wait for http fetch of draft.png from docbook website.
+ -->
+ <xsl:param name="draft.mode" select="no"/>
+
+ <!-- ToC/LoT/Index Generation HTML Parameters -->
+
+ <!-- Index links should point to indexterm location, not start of section -->
+ <xsl:param name="index.links.to.section" select="0"/>
+
+ <!-- HTML Parameters -->
+
+ <!-- Uses XSLT Extension to provide more valid and better formatted elements-->
+ <xsl:param name="html.cleanup" select="1"/>
+
+ <!-- Chunking HTML Parameters -->
+
+ <!-- Use ID value of chunk elements as the filename -->
+ <xsl:param name="use.id.as.filename" select="1"></xsl:param>
+
+ <!-- Chunk the first top-level section -->
+ <xsl:param name="chunk.first.sections" select="1"></xsl:param>
+
+ <!-- Meta/*Info and Titlepages HTML Parameters-->
+
+ <!-- Suppress abstract on title pages -->
+ <xsl:param name="abstract.notitle.enabled" select="1"/>
+
+ <!-- Lists HTML Parameters-->
+ <xsl:param name="variablelist.as.table" select="1"/>
+
+</xsl:stylesheet>