[Libreoffice-commits] .: filter/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 29 14:24:33 PST 2012


 filter/source/xslt/odf2xhtml/export/common/body.xsl |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 60ce4dc080c2b0da2a9d5776176755d97a1b161d
Author: Peter Jentsch <pjotr at guineapics.de>
Date:   Thu Nov 29 23:15:15 2012 +0100

    fix fdo#57647 intradocument xrefs broken in xhtml
    
    Change-Id: Idce1f295dbf74eb3f02da1f32f290c20126c516b

diff --git a/filter/source/xslt/odf2xhtml/export/common/body.xsl b/filter/source/xslt/odf2xhtml/export/common/body.xsl
index 37a8afa..3196fac 100644
--- a/filter/source/xslt/odf2xhtml/export/common/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/common/body.xsl
@@ -130,8 +130,9 @@
 	<!-- *** References  *** -->
 	<!-- ******************* -->
 
-	<xsl:template match="text:reference-ref | text:sequence-ref">
+	<xsl:template match="text:reference-ref | text:sequence-ref | text:bookmark-ref">
 		<xsl:param name="globalData"/>
+		<xsl:if test="*|text()">
 		<xsl:element namespace="{$namespace}" name="a">
 			<xsl:attribute name="href">
 				<xsl:text>#</xsl:text>
@@ -150,7 +151,9 @@
 			<xsl:apply-templates select="@* | node()">
 				<xsl:with-param name="globalData" select="$globalData"/>
 			</xsl:apply-templates>
+				
 		</xsl:element>
+		</xsl:if>
 	</xsl:template>
 
     <xsl:template match="@text:name">


More information about the Libreoffice-commits mailing list