diff options
author | Peter Jentsch <pjotr@guineapics.de> | 2012-11-28 00:33:01 +0100 |
---|---|---|
committer | Peter Jentsch <pjotr@guineapics.de> | 2012-11-28 00:33:01 +0100 |
commit | b75e9576bfaf9f95532f2a9d6917cffbf37a57e0 (patch) | |
tree | e3bc32a9bd891a86b7b43518bdf30a40fee1d936 /filter | |
parent | 9a00c7fd817508ad02901fa374dc63b63b535f96 (diff) |
fix fdo#40097 - Cross-references and TOC links broken in XHTML export
Change-Id: I90bd2a8d5f788350f8f2bc8c443776e6598624b4
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xslt/odf2xhtml/export/common/body.xsl | 2 | ||||
-rw-r--r-- | filter/source/xslt/odf2xhtml/export/xhtml/body.xsl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/common/body.xsl b/filter/source/xslt/odf2xhtml/export/common/body.xsl index 895bb41caf1c..37a8afa02b5f 100644 --- a/filter/source/xslt/odf2xhtml/export/common/body.xsl +++ b/filter/source/xslt/odf2xhtml/export/common/body.xsl @@ -317,7 +317,7 @@ <xsl:choose>
<!-- internal OOo URL used in content tables -->
- <xsl:when test="contains($href, '%7Coutline')">
+ <xsl:when test="contains($href, '%7Coutline') or contains($href, '|outline')">
<!-- the simple workaround for content tables in a single document is to create create an anchor from every heading element
work-around downside: Multiple identical headings won't refer always to the first.
-->
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl index 6189629f9f5b..d9de0e9ba322 100644 --- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl +++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl @@ -1243,7 +1243,7 @@ <!-- REFERENCE HANDLING - ANCHOR --> <xsl:element namespace="{$namespace}" name="a"> <xsl:attribute name="id"> - <xsl:value-of select="translate(concat('a_',$headingNumber, '_', normalize-space($title)), '
&<>.,;: %()[]/\+', '___________________________')"/> + <xsl:value-of select="translate(concat('a_',normalize-space($headingNumber), '_', normalize-space($title)), '
&<>.,;: %()[]/\+', '___________________________')"/> </xsl:attribute> <xsl:element name="span"> |