git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197148
13f79535-47bb-0310-9956-
ffa450edef68
<xsl:param name="lrtb"/>
<xsl:param name="rltb"/>
<xsl:param name="tbrl"/>
- <xsl:text>propertyList.wmMap(Constants.PR_</xsl:text>
+ <xsl:choose>
+ <xsl:when test="parwmrel2abs">
+ <xsl:text>parentFO.propertyList</xsl:text>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text>propertyList</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>.wmMap(Constants.PR_</xsl:text>
<xsl:apply-templates mode="x">
<xsl:with-param name="dir" select='$lrtb'/>
</xsl:apply-templates>
public int wmMap(int lrtb, int rltb, int tbrl) {
switch (writingMode) {
case WritingMode.LR_TB: return lrtb;
- case WritingMode.RL_TB: return lrtb;
- case WritingMode.TB_RL: return lrtb;
+ case WritingMode.RL_TB: return rltb;
+ case WritingMode.TB_RL: return tbrl;
}
return -1;
}