[PATCH sgml-doctools 2/2] Add support for generating chunked xhtml for DocBooks
Gaetan Nadon
memsize at videotron.ca
Thu Jul 28 18:41:22 PDT 2011
Some large documents will benefit from this feature.
A different docbook xsl file must be imported.
Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
Makefile.am | 1 +
xorg-chunk.xsl | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+), 0 deletions(-)
create mode 100644 xorg-chunk.xsl
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>
--
1.7.4.1
More information about the xorg-devel
mailing list