summaryrefslogtreecommitdiff
path: root/filter/source/docbook
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@openoffice.org>2010-07-21 08:20:11 +0200
committerDavid Tardon <dtardon@openoffice.org>2010-07-21 08:20:11 +0200
commited9e2ed6b65fab12f79323e875b4e4fe7ba41b9b (patch)
tree0935704d6c6e17969d075fe1db064af41cd3cbbf /filter/source/docbook
parent378ebc051f58dd6585a2103a16756c8a2f179cec (diff)
dtardon03: #i101355# variable reference in key violates XSLT 1.0
Diffstat (limited to 'filter/source/docbook')
-rw-r--r--filter/source/docbook/sofftodocbookheadings.xsl9
1 files changed, 2 insertions, 7 deletions
diff --git a/filter/source/docbook/sofftodocbookheadings.xsl b/filter/source/docbook/sofftodocbookheadings.xsl
index bc9b67a9a340..cfddf901b2d4 100644
--- a/filter/source/docbook/sofftodocbookheadings.xsl
+++ b/filter/source/docbook/sofftodocbookheadings.xsl
@@ -69,11 +69,6 @@
match="text:h"
use="generate-id(preceding::text:h[@text:level &lt; current()/@text:level][1])"/>
- <!-- All those headings have not the lowest outline level (mapped to section1), but come before the first heading mapped to section1 -->
- <xsl:key name="preludingHeadings"
- match="text:h"
- use="generate-id(following::text:h[@text:level = $section1_OutlineLevel][1])"/>
-
<!-- The key function "getHeadingsByOutline" returns all headings of a certain outline level -->
<xsl:key name="getHeadingsByOutline"
match="text:h"
@@ -171,7 +166,7 @@
<xsl:text disable-output-escaping="yes">&lt;sect1&gt;</xsl:text>
<title></title>
<!-- create sections for all the first section1 preluding headings -->
- <xsl:for-each select="key('preludingHeadings', generate-id())">
+ <xsl:for-each select="key('getHeadingsByOutline', $section1_OutlineLevel)[1]/preceding::text:h">
<xsl:call-template name="make-section">
<xsl:with-param name="previousSectionLevel" select="$section1_OutlineLevel"/>
<xsl:with-param name="currentSectionLevel">
@@ -1182,4 +1177,4 @@
<xsl:with-param name="whitespaces" select="8"/>
</xsl:call-template>
</xsl:template>
-</xsl:stylesheet> \ No newline at end of file
+</xsl:stylesheet>