I was taking a look at the default Variants In Tables Condensed package, and noticed that what I think the functinoality it intends for variant descriptions isn't happening.
The logic for creating a column (td) for the variant description looks like this:
Assume that $ShowDescriptionsInTablesCondensed is true.<xsl:if test="($ShowDescriptionInTableCondensed='true' or string-length($ShowDescriptionInTableCondensed)=0) and $SomeVariantsHaveDescriptions > 0">
<td>
<xsl:value-of select="aspdnsf:StringResource('showproduct.aspx.3 2', $LocaleSetting)" disable-output-escaping="yes" />
</td>
</xsl:if>
However, $SomeVariantsHavedescriptions is given the wrong value. The count, below, returns the number of variants, regardless of whether the description is empty:
The description column is created every time, even if the variant has no description, because it will always be 1 or more.<xsl:param name="SomeVariantsHaveDescriptions" select="count(/root/Variants/Variant/VariantDescription)" />
How would one actually check to simply see if any of the variants had non-null variant descriptions? Some of my variants of descriptions, some don't, and it looks weird to have the description column show when the variant has none.