]> granicus.if.org Git - docbook-dsssl/commitdiff
Support a chunking ldocbook stylesheet
authorNorman Walsh <ndw@nwalsh.com>
Mon, 12 Nov 2001 21:26:53 +0000 (21:26 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Mon, 12 Nov 2001 21:26:53 +0000 (21:26 +0000)
litprog/html/Makefile
litprog/html/ldocbook.xweb

index 865ee88cb52a865d4227ca26a40c19edf80af4fa..1a606121629fc44f8c9afbc361914b7ea6b64bb0 100644 (file)
@@ -1,6 +1,6 @@
 include ../../cvstools/Makefile.incl
 
-all: ldocbook.xsl
+all: ldocbook.xsl cldocbook.xsl
 
 xml: ldocbook.xml
 
@@ -15,6 +15,9 @@ ldocbook.xml: ldocbook.xweb ../wdocbook.xsl
 ldocbook.xsl: ldocbook.xweb ../xtangle.xsl
        $(XSLT) $< ../xtangle.xsl $@
 
+cldocbook.xsl: ldocbook.xweb ../xtangle.xsl
+       $(XSLT) $< ../xtangle.xsl $@ top=top-chunk
+
 realclean: clean
        rm -f ldocbook.xsl
 
index c84257af16de5c12c5ead334cf8c0514920da67e..b2c3016863b1916e6887b2850dd2a51e7dc37f89 100644 (file)
@@ -68,6 +68,30 @@ DocBook elements handled by the imported stylesheet.</para>
 </src:fragment>
 
 </section>
+
+<section><title>The Chunking HTML Stylesheet</title>
+
+<para>The stylesheet performs some initialization and establishes
+templates for the Literate Programming elements that can appear in
+the documentation. Most of the documentation elements will be
+DocBook elements handled by the imported stylesheet.</para>
+
+<src:fragment id="top-chunk" mundane-result-prefixes="xsl fo verb">
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+                xmlns:verb="com.nwalsh.saxon.Verbatim"
+                exclude-result-prefixes="verb src"
+                version="1.0">
+  <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+
+  <src:fragref linkend="init"/>
+  <src:fragref linkend="proc-html-fragment"/>
+  <src:fragref linkend="proc-html-fragref"/>
+</xsl:stylesheet>
+</src:fragment>
+
+</section>
+
 <section><title>The FO Stylesheet</title>
 
 <para>The stylesheet performs some initialization and establishes