chiark / gitweb /
Move XSL parameters in specific files.
authordebacle <debacle@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Mon, 11 Feb 2008 23:53:24 +0000 (23:53 +0000)
committerdebacle <debacle@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Mon, 11 Feb 2008 23:53:24 +0000 (23:53 +0000)
Only one TOC in text output, not one per chapter.

git-svn-id: svn://anonscm.debian.org/ddp/developers-reference/trunk@4935 313b444b-1b9f-4f58-a734-7bb04f332e8d

Makefile
fop.xsl [deleted file]
html.xsl [new file with mode: 0644]
txt.xsl [new file with mode: 0644]

index 230bd6479705dfbe7617df028ce2af59022068ff..2d70910d5af8abde15cec83531e8161a54a4a5ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,14 +32,10 @@ TRANSLATE=po4a-translate --format docbook --keep 0
 # XSL files and parameters
 # note: the URL is used as identifier, no HTTP is used!
 DOCBOOK_XSL=http://docbook.sourceforge.net/release/xsl/current
-# one file per chapter
-DBK2HTML=--stringparam chunk.section.depth 0 \
-    --stringparam section.autolabel 1 \
-    --stringparam use.id.as.filename 1 \
-    $(DOCBOOK_XSL)/xhtml/chunk.xsl
-# all in one file
-DBK2HTML1=--stringparam section.autolabel 1 \
-    $(DOCBOOK_XSL)/xhtml/docbook.xsl
+# for HTML output
+DBK2HTML=$(PWD)/html.xsl
+# all in one file for text output
+DBK2HTML1=$(PWD)/txt.xsl
 
 .PHONY:        all
 all:    $(TARGETS)
diff --git a/fop.xsl b/fop.xsl
deleted file mode 100644 (file)
index 72b8d44..0000000
--- a/fop.xsl
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                version="1.0">
-  <xsl:import
-    href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
-  <xsl:param name="double.sided" select="'1'"/>
-  <xsl:param name="draft.mode" select="'no'"/>
-  <xsl:param name="fop.extensions" select="'0'"/>
-  <xsl:param name="fop1.extensions" select="'1'"/>
-  <xsl:param name="paper.type" select="'A4'"/>
-  <xsl:template match="*" mode="fop.outline"/>
-</xsl:stylesheet>
diff --git a/html.xsl b/html.xsl
new file mode 100644 (file)
index 0000000..bf75cf8
--- /dev/null
+++ b/html.xsl
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<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:param name="chunk.section.depth">0</xsl:param>
+  <xsl:param name="section.autolabel">1</xsl:param>
+  <xsl:param name="section.label.includes.component.label">1</xsl:param>
+  <xsl:param name="use.id.as.filename">1</xsl:param>
+</xsl:stylesheet>
diff --git a/txt.xsl b/txt.xsl
new file mode 100644 (file)
index 0000000..227d812
--- /dev/null
+++ b/txt.xsl
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<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/docbook.xsl"/>
+  <xsl:param name="section.autolabel">1</xsl:param>
+  <xsl:param name="section.label.includes.component.label">1</xsl:param>
+  <xsl:param name="generate.toc">
+  appendix  title
+  article/appendix  nop
+  article   toc,title
+  book      toc,title,figure,table,example,equation
+  chapter   title
+  part      toc,title
+  preface   toc,title
+  qandadiv  toc
+  qandaset  toc
+  reference toc,title
+  sect1     toc
+  sect2     toc
+  sect3     toc
+  sect4     toc
+  sect5     toc
+  section   toc
+  set       toc,title
+  </xsl:param>
+</xsl:stylesheet>