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
  • 388 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')<br="/>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')&quot;=">

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

</xsl:when>

<xsl:when test="contains($pValue," 'pi')=" or=" contains($pvalue,=" 'pi')&quot;=">

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

</xsl:when>