Skip to main content
1-Visitor
August 5, 2014
Question

Arbortext AAD 4.4 M090 foTable.xsl stylesheet still missing pica

  • August 5, 2014
  • 0 replies
  • 801 views

foTable.xsl still does not contain picas and the translate portion is still missing a conversion statement. Without this statement the column widths for tables with measurements in picas are incorrect in the output. I added the following pica related code in two tests:

<xsl:when test="(contains(@colwidth,'*') or not(contains(@colwidth,'*'))) and not(contains(@colwidth,'cm') or contains(@colwidth,'CM') or contains(@colwidth,'mm') or contains(@colwidth,'MM') or contains(@colwidth,'pi') or contains(@colwidth,'PI')

And this to the coversion template:

<xsl:template name="T_ConvertToMilliMetres">

<xsl:param name="pValue"/>

<xsl:choose>

<xsl:when test="contains($pValue, 'mm') or contains($pValue, 'MM')">

<xsl:value-of select="number(translate($pValue,'mmMM',''))"/>

</xsl:when>

<xsl:when test="contains($pValue, 'pi') or contains($pValue, 'PI')">

<xsl:value-of select="round(number(translate($pValue,'piPI','') * 4.2175176))"/>

</xsl:when>