Skip to content

Commit 09a2b47

Browse files
Merge pull request #90 from AntennaHouse/issue-2019-04-10
Fix #89
2 parents affecfb + 3068095 commit 09a2b47

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

com.antennahouse.pdf5.ml/build_transform_template.xml

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@
177177
<dita:extension id="com.antennahouse.pdf5.ml.param" behavior="org.dita.dost.platform.InsertAction"/>
178178
<sysproperty key="com.innodata.i18n.home" value="${i18n.home}"/>
179179
<sysproperty key="use.i18n.index.lib" value="${use.i18n.index.lib}"/>
180+
<sysproperty key="ot.version" value="${otversion}"/>
180181
</xslt>
181182
</target>
182183

@@ -237,6 +238,7 @@
237238
<dita:extension id="com.antennahouse.pdf5.ml.saxon.param" behavior="org.dita.dost.platform.InsertAction"/>
238239
<sysproperty key="com.innodata.i18n.home" value="${i18n.home}"/>
239240
<sysproperty key="use.i18n.index.lib" value="${use.i18n.index.lib}"/>
241+
<sysproperty key="ot.version" value="${otversion}"/>
240242
</java>
241243
</target>
242244

com.antennahouse.pdf5.ml/xsl/dita2fo_glossaryrelatedelements.xsl

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ E-mail : [email protected]
5252
<xsl:number select="."
5353
level="any"
5454
count="*[contains(@class,' abbrev-d/abbreviated-form ')][string(@href) eq $href]"
55-
from="$root"/>
55+
from="/*" use-when="starts-with(system-property('ot.version'),'2') or starts-with(system-property('ot.version'),'1')"/>
56+
<xsl:number select="."
57+
level="any"
58+
count="*[contains(@class,' abbrev-d/abbreviated-form ')][string(@href) eq $href]"
59+
from="$root" use-when="not(starts-with(system-property('ot.version'),'2') or starts-with(system-property('ot.version'),'1'))"/>
5660
</xsl:variable>
5761
<xsl:variable name="topicElement" as="element()?" select="ahf:getTopicFromHref(substring-after($href, '#'))"/>
5862

com.antennahouse.pdf5.ml/xsl/dita2fo_main.xsl

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ E-mail : [email protected]
5656
<!--xsl:call-template name="dumpFootnoteMap"/-->
5757
<!--xsl:call-template name="outputEquationCountMap"/-->
5858
<xsl:template match="/">
59-
<xsl:call-template name="dumpFigureMap"/>
6059
<xsl:if test="$pDebugStyle">
6160
<xsl:call-template name="stlyeDump"/>
6261
</xsl:if>

com.antennahouse.pdf5.ml/xsl/dita2fo_style_get.xsl

+5-1
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@
398398
parameter: prmAttr: attribute()?
399399
notes: See font-size definition on XSL1.1
400400
https://www.w3.org/TR/xsl11/#font-size
401+
Support DITA-OT 2.x and 3.x both.
401402
-->
402403
<xsl:function name="ahf:isRelativeFontSizeAttr" as="xs:boolean">
403404
<xsl:param name="prmAttr" as="attribute()?"/>
@@ -409,7 +410,10 @@
409410
<xsl:when test="name($prmAttr) ne 'font-size'">
410411
<xsl:sequence select="false()"/>
411412
</xsl:when>
412-
<xsl:when test="matches($attVal,'larger|smaller|\d+(?:\.\d+)?em|\d+(?:\.\d+)?%')">
413+
<xsl:when test="matches($attVal,'larger|smaller|\d+(\.\d+)?em|\d+(\.\d+)?%')" use-when="starts-with(system-property('ot.version'),'2') or starts-with(system-property('ot.version'),'1')">
414+
<xsl:sequence select="true()"/>
415+
</xsl:when>
416+
<xsl:when test="matches($attVal,'larger|smaller|\d+(?:\.\d+)?em|\d+(?:\.\d+)?%')" use-when="not(starts-with(system-property('ot.version'),'2') or starts-with(system-property('ot.version'),'1'))">
413417
<xsl:sequence select="true()"/>
414418
</xsl:when>
415419
<xsl:otherwise>

0 commit comments

Comments
 (0)