| 1 |
Index: filter/source/docbook/sofftodocbookheadings.xsl
|
| 2 |
===================================================================
|
| 3 |
--- filter/source/docbook/sofftodocbookheadings.xsl (revision 270724)
|
| 4 |
+++ filter/source/docbook/sofftodocbookheadings.xsl (working copy)
|
| 5 |
@@ -73,11 +73,6 @@
|
| 6 |
match="text:h"
|
| 7 |
use="generate-id(preceding::text:h[@text:level < current()/@text:level][1])"/>
|
| 8 |
|
| 9 |
- <!-- All those headings have not the lowest outline level (mapped to section1), but come before the first heading mapped to section1 -->
|
| 10 |
- <xsl:key name="preludingHeadings"
|
| 11 |
- match="text:h"
|
| 12 |
- use="generate-id(following::text:h[@text:level = $section1_OutlineLevel][1])"/>
|
| 13 |
-
|
| 14 |
<!-- The key function "getHeadingsByOutline" returns all headings of a certain outline level -->
|
| 15 |
<xsl:key name="getHeadingsByOutline"
|
| 16 |
match="text:h"
|
| 17 |
@@ -175,7 +170,7 @@
|
| 18 |
<xsl:text disable-output-escaping="yes"><sect1></xsl:text>
|
| 19 |
<title></title>
|
| 20 |
<!-- create sections for all the first section1 preluding headings -->
|
| 21 |
- <xsl:for-each select="key('preludingHeadings', generate-id())">
|
| 22 |
+ <xsl:for-each select="key('getHeadingsByOutline', $section1_OutlineLevel)[1]/preceding::text:h">
|
| 23 |
<xsl:call-template name="make-section">
|
| 24 |
<xsl:with-param name="previousSectionLevel" select="$section1_OutlineLevel"/>
|
| 25 |
<xsl:with-param name="currentSectionLevel">
|
| 26 |
@@ -1186,4 +1181,4 @@
|
| 27 |
<xsl:with-param name="whitespaces" select="8"/>
|
| 28 |
</xsl:call-template>
|
| 29 |
</xsl:template>
|
| 30 |
-</xsl:stylesheet>
|
| 31 |
\ No newline at end of file
|
| 32 |
+</xsl:stylesheet>
|