diff options
author | Peter Jentsch <pjotr@guineapics.de> | 2012-11-25 23:21:19 +0100 |
---|---|---|
committer | Peter Jentsch <pjotr@guineapics.de> | 2012-11-25 23:21:19 +0100 |
commit | 2a9c7f044f03533604e34216d5b8f6e217609832 (patch) | |
tree | 8560d6fb9a9f8ad147cbc4c13373e143780bda0b /filter | |
parent | c8836e0b6d67ff7f4be04fe72ca9834fc5b5b0b7 (diff) |
fix fdo#56595 - FILESAVE: ToC links broken in xhtml export
Change-Id: Ic79d4356902570084e024d8891307668b17d97f3
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xslt/odf2xhtml/export/common/body.xsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/common/body.xsl b/filter/source/xslt/odf2xhtml/export/common/body.xsl index 618b84245c3e..895bb41caf1c 100644 --- a/filter/source/xslt/odf2xhtml/export/common/body.xsl +++ b/filter/source/xslt/odf2xhtml/export/common/body.xsl @@ -358,6 +358,10 @@ <xsl:value-of select="concat($href, $optionalURLSuffix)"/>
</xsl:when>
<!-- for relative URLs -->
+ <xsl:when test="starts-with($href, '#')"> + <!-- intra document ref --> + <xsl:value-of select="$href"/> + </xsl:when> <xsl:otherwise>
<xsl:value-of select="concat($sourceBaseURL, $href, $optionalURLSuffix)"/>
</xsl:otherwise>
|