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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! 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