| 1 |
Index: filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
|
| 2 |
===================================================================
|
| 3 |
--- filter/source/xslt/odf2xhtml/export/xhtml/body.xsl (revision 276736)
|
| 4 |
+++ filter/source/xslt/odf2xhtml/export/xhtml/body.xsl (working copy)
|
| 5 |
@@ -106,8 +144,8 @@
|
| 6 |
</xsl:when>
|
| 7 |
<xsl:otherwise>
|
| 8 |
<!-- As CSS writing-mode is not implemented by all browsers, a heuristic is done -->
|
| 9 |
- <xsl:variable name="writingMode" select="key('writingModeStyles', 'test')"/>
|
| 10 |
- <xsl:if test="contains($writingMode, 'rl')">
|
| 11 |
+ <xsl:variable name="writingModeTest" select="key('writingModeStyles', 'test')"/>
|
| 12 |
+ <xsl:if test="contains($writingModeTest, 'rl')">
|
| 13 |
<xsl:attribute name="dir">rtl</xsl:attribute>
|
| 14 |
</xsl:if>
|
| 15 |
</xsl:otherwise>
|
| 16 |
@@ -564,13 +602,13 @@
|
| 17 |
</xsl:variable>
|
| 18 |
<xsl:choose>
|
| 19 |
<xsl:when test="$tabIndent='NaN'">
|
| 20 |
- <xsl:variable name="tabPosition">
|
| 21 |
+ <xsl:variable name="tabPositionTmp">
|
| 22 |
<xsl:call-template name="convert2cm">
|
| 23 |
<xsl:with-param name="value" select="$tabStops/style:tab-stop[last()]/@style:position"/>
|
| 24 |
</xsl:call-template>
|
| 25 |
</xsl:variable>
|
| 26 |
<!-- Heuristic: for every tab that is more than specified give a further 1 cm -->
|
| 27 |
- <xsl:value-of select="$parentMarginLeft + $tabPosition + count($tabStops/style:tab-stop) - $tabCount"/>
|
| 28 |
+ <xsl:value-of select="$parentMarginLeft + $tabPositionTmp + count($tabStops/style:tab-stop) - $tabCount"/>
|
| 29 |
</xsl:when>
|
| 30 |
<xsl:otherwise>
|
| 31 |
<xsl:value-of select="$tabIndent"/>
|
| 32 |
diff -ru filter.orig/source/xslt/export/spreadsheetml/formular.xsl filter/source/xslt/export/spreadsheetml/formular.xsl
|
| 33 |
--- filter.orig/source/xslt/export/spreadsheetml/formular.xsl 2009-04-24 09:31:14.000000000 +0100
|
| 34 |
+++ filter/source/xslt/export/spreadsheetml/formular.xsl 2009-04-24 09:31:57.000000000 +0100
|
| 35 |
@@ -381,7 +381,7 @@
|
| 36 |
</xsl:when>
|
| 37 |
<xsl:otherwise>
|
| 38 |
<xsl:value-of select="$earlierCandidate" />
|
| 39 |
- <xsl:variable name="parameterCandidate">
|
| 40 |
+ <xsl:variable name="parameterCandidate2">
|
| 41 |
<xsl:variable name="formularAfterCandidate" select="substring-after($expressionSuffix, $earlierCandidate)" />
|
| 42 |
<xsl:variable name="parameterTillBracket" select="concat(substring-before($formularAfterCandidate,')'),')')" />
|
| 43 |
<xsl:variable name="parameterTillComma" select="substring-before(substring-after($expressionSuffix, $parameterTillBracket),',')" />
|
| 44 |
@@ -405,8 +405,8 @@
|
| 45 |
<xsl:call-template name="getParameter">
|
| 46 |
<xsl:with-param name="closingBracketCount" select="$closingBracketCount" />
|
| 47 |
<xsl:with-param name="openingBracketCount" select="$openingBracketCount" />
|
| 48 |
- <xsl:with-param name="parameterCandidate" select="$parameterCandidate" />
|
| 49 |
- <xsl:with-param name="earlierCandidate" select="$parameterCandidate" />
|
| 50 |
+ <xsl:with-param name="parameterCandidate" select="$parameterCandidate2" />
|
| 51 |
+ <xsl:with-param name="earlierCandidate" select="$parameterCandidate2" />
|
| 52 |
<xsl:with-param name="expressionSuffix" select="$expressionSuffix" />
|
| 53 |
</xsl:call-template>
|
| 54 |
</xsl:otherwise>
|
| 55 |
diff -ru filter.orig/source/xslt/export/uof/odf2uof_text.xsl filter/source/xslt/export/uof/odf2uof_text.xsl
|
| 56 |
--- filter.orig/source/xslt/export/uof/odf2uof_text.xsl 2009-04-24 09:31:14.000000000 +0100
|
| 57 |
+++ filter/source/xslt/export/uof/odf2uof_text.xsl 2009-04-24 09:32:29.000000000 +0100
|
| 58 |
@@ -4029,13 +4029,7 @@
|
| 59 |
<xsl:element name="字:文本串">
|
| 60 |
<xsl:attribute name="uof:locID">t0109</xsl:attribute>
|
| 61 |
<xsl:attribute name="uof:attrList">标识符</xsl:attribute>
|
| 62 |
- <xsl:variable name="stt">
|
| 63 |
- <xsl:value-of select="./text:a"/>
|
| 64 |
- </xsl:variable>
|
| 65 |
- <xsl:variable name="end">
|
| 66 |
- <xsl:value-of select="."/>
|
| 67 |
- </xsl:variable>
|
| 68 |
- <xsl:value-of select="substring-after($end,$stt)"/>
|
| 69 |
+ <xsl:value-of select="$bijiao"/>
|
| 70 |
</xsl:element>
|
| 71 |
</xsl:if>
|
| 72 |
</字:句>
|