From: debacle Date: Mon, 11 Feb 2008 23:53:24 +0000 (+0000) Subject: Move XSL parameters in specific files. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=developers-reference.git;a=commitdiff_plain;h=9bbd6d39bc5e3b85d9dc97872d8bef40ca8a1687;ds=sidebyside Move XSL parameters in specific files. 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 --- diff --git a/Makefile b/Makefile index 230bd64..2d70910 100644 --- 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 index 72b8d44..0000000 --- a/fop.xsl +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - diff --git a/html.xsl b/html.xsl new file mode 100644 index 0000000..bf75cf8 --- /dev/null +++ b/html.xsl @@ -0,0 +1,10 @@ + + + + 0 + 1 + 1 + 1 + diff --git a/txt.xsl b/txt.xsl new file mode 100644 index 0000000..227d812 --- /dev/null +++ b/txt.xsl @@ -0,0 +1,27 @@ + + + + 1 + 1 + + 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 + +