I'm iterating through a node group using the following:
<xsl:for-each select="NewDataSet/VehicleDetail/Options/Option">
<xsl:choose>
<xsl:when test="string-length(.) > 40">
<div class="large">
<xsl:value-of select="."/>
</div>
</xsl:when>
<xsl:otherwise>
<div class="small">
<xsl:value-of select="."/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
What I would like to be able to do is group the large items (40 chars +) and the small items (40 chars and less) something like this:
<div class="largeItems">
<div class="large">Large Item</div>
<div class="large">Large Item</div>
<div class="large">Large Item</div>
<div class="large">Large Item</div>
<div class="large">Large Item</div>
</div>
<div class="smallItems">
<div class="small">Small Item</div>
<div class="small">Small Item</div>
<div class="small">Small Item</div>
<div class="small">Small Item</div>
<div class="small">Small Item</div>
</div>
Thanks.