From: Norman Walsh Date: Thu, 7 Feb 2002 18:01:42 +0000 (+0000) Subject: Added experimental manual TOC processing for chunking and TOC generation X-Git-Tag: release/1.79.1~6^2~5934 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=922f4a412e355e5f60708bf1feebd167a6d2663d;p=docbook-dsssl Added experimental manual TOC processing for chunking and TOC generation --- diff --git a/xsl/html/autotoc.xsl b/xsl/html/autotoc.xsl index 57540c97a..d05b0d8f6 100644 --- a/xsl/html/autotoc.xsl +++ b/xsl/html/autotoc.xsl @@ -36,9 +36,52 @@ - - -
+ +

+ + + TableofContents + + +

+
+ + + + + + + + + +
+ + + + + + +
+
+
+ + + + +
+ + + + +
+
+
+
+ + + + +

@@ -46,67 +89,49 @@

- - - -
-
-
+ - - - - -
-

- - - TableofContents - - -

- - - -
-
+ + + + + + + + +
+ + + + + + +
+
+
+ + + +
+ + + + +
+
+
+
- - -
-

- - - TableofContents - - -

- - - -
-
-
-
- - - - -
+

@@ -114,76 +139,97 @@

- - - -
-
-
- - - - - - - - - - - + - - - + + + + + + + +
+ + + + + + +
+
- - - + + +
+ + + + +
+
+ +
+ + + +

+ + + TableofContents + + +

- - - - - - - - - - - - - - - - - - - - - + + + + + + + + +
+ + + + + + +
+
+
+ + + +
+ + + + +
+
+
+
- - + + + + - + @@ -215,279 +261,71 @@ + and $toc.section.depth>0 and count($nodes)>0"> + and $toc.section.depth>0 and count($nodes)>0"> - - - - - - + + + + + - - - - - - - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - @@ -502,73 +340,32 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - + - - - - - - - - + - - - - - - - - + @@ -614,5 +411,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/chunk-common.xsl b/xsl/html/chunk-common.xsl new file mode 100644 index 000000000..0d9eaca50 --- /dev/null +++ b/xsl/html/chunk-common.xsl @@ -0,0 +1,738 @@ + + + + + + + + + + + + + + + 1 + + + 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + + + + + + + + bk + + + + + + + + + + + + + + ar + + + + + + + + + + + + + pr + + + + + + + + + + + + + ch + + + + + + + + + + + + + ap + + + + + + + + + + + + + pt + + + + + + + + + + + + + rn + + + + + + + + + + + + + re + + + + + + + + + + + + + co + + + + + + + + + + + s + + + + + + + + + + + s + + + + + + + + + + + + + bi + + + + + + + + + + + + + go + + + + + + + + + + + + + ix + + + + + + + + si + + + + + + + + chunk-filename-error- + + + + + + + + + + + + + + + + + + + + + + + # + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + xxx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/chunk.xsl b/xsl/html/chunk.xsl index c8de36c4b..6c1715324 100644 --- a/xsl/html/chunk.xsl +++ b/xsl/html/chunk.xsl @@ -4,702 +4,7 @@ exclude-result-prefixes="doc"> - - - - - - - - - - - - - 1 - - - 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - / - - - - - - - - - - - - - bk - - - - - - - - - - - - - - ar - - - - - - - - - - - - - pr - - - - - - - - - - - - - ch - - - - - - - - - - - - - ap - - - - - - - - - - - - - pt - - - - - - - - - - - - - rn - - - - - - - - - - - - - re - - - - - - - - - - - - - co - - - - - - - - - - - s - - - - - - - - - - - s - - - - - - - - - - - - - bi - - - - - - - - - - - - - go - - - - - - - - - - - - - ix - - - - - - - - si - - - - - - - - chunk-filename-error- - - - - - - - - - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - xxx - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -1024,43 +329,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/xsl/html/chunktoc.xsl b/xsl/html/chunktoc.xsl new file mode 100644 index 000000000..f136eccca --- /dev/null +++ b/xsl/html/chunktoc.xsl @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + 1 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The chunk.toc file is not set. + + + + + + + + ID ' + + ' not found in document. + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/maketoc.xsl b/xsl/html/maketoc.xsl new file mode 100644 index 000000000..baa283851 --- /dev/null +++ b/xsl/html/maketoc.xsl @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + filename=" + + " + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index 3c37c5c5f..a3592a2c3 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -24,6 +24,7 @@ + @@ -86,6 +87,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 4113ab96c..d18a09435 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -108,6 +108,7 @@ to be incomplete. Don't forget to read the source, too :-) &process.source.toc; &process.empty.source.toc; &bridgehead.in.toc; +&manual.toc; Extensions @@ -234,6 +235,7 @@ to be incomplete. Don't forget to read the source, too :-) &html.ext; &root.filename; &base.dir; +&chunk.toc; &chunk.section.depth; &chunk.first.sections; &saxon.character.representation; @@ -311,6 +313,7 @@ around all these parameters. + @@ -373,6 +376,7 @@ around all these parameters. + diff --git a/xsl/params/chunk.toc.xml b/xsl/params/chunk.toc.xml new file mode 100644 index 000000000..279b1c2cc --- /dev/null +++ b/xsl/params/chunk.toc.xml @@ -0,0 +1,25 @@ + + +chunk.toc +string + + +chunk.toc +An explicit TOC to be used for chunking + + + + + + + + +Description + +The chunk.toc identifies an explicit TOC that +will be used for chunking. This parameter is only used by the +chunktoc.xsl stylesheet (and customization layers built +from it). + + + diff --git a/xsl/params/manual.toc.xml b/xsl/params/manual.toc.xml new file mode 100644 index 000000000..760e612cb --- /dev/null +++ b/xsl/params/manual.toc.xml @@ -0,0 +1,24 @@ + + +manual.toc +string + + +manual.toc +An explicit TOC to be used for the TOC + + + + + + + + +Description + +The manual.toc identifies an explicit TOC that +will be used for building the printed TOC. + + + +