cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Arbortext AAD 4.4 M090 foTable.xsl stylesheet still missing pica

GregoryMackenzi
12-Amethyst

Arbortext AAD 4.4 M090 foTable.xsl stylesheet still missing pica

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>

0 REPLIES 0
Announcements

Top Tags