# 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)
+++ /dev/null
-<?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>
--- /dev/null
+<?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>
--- /dev/null
+<?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>