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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. 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')<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>


0 REPLIES 0
Announcements

Top Tags