Hello,
I'm very new to using xsl stylesheets so please bear with me on this, probably, very simple problem.
on the Models line I have 3 models a 328, 335, and 525.
All I'm trying to do is put a comma between the models.
What am I doing wrong?
Thanks in advance.
here is my output:
Make: BMW
Models: 328335525
Year:
here is my xml node:
here is my xsl stylesheet snippet
I'm very new to using xsl stylesheets so please bear with me on this, probably, very simple problem.
on the Models line I have 3 models a 328, 335, and 525.
All I'm trying to do is put a comma between the models.
What am I doing wrong?
Thanks in advance.
here is my output:
Make: BMW
Models: 328335525
Year:
here is my xml node:
Code:
<AutoFilter>
<Make>BMW</Make>
<Trim />
<Year />
<Models>
<Model>328</Model>
<Model>335</Model>
<Model>525</Model>
</Models>
</AutoFilter>
here is my xsl stylesheet snippet
Code:
<xsl:for-each select="CampaignFilter/AutoFilters/AutoFilter">
<tr>
<td>
Make:
<xsl:value-of select="Make" />
</td>
<td>
<img src="../App_Themes/LMP/Images/icon_check.gif"/>
</td>
</tr>
<tr>
<td>
Models:
<xsl:value-of select="Models"/>
<xsl:for-each select="Model">
,
</xsl:for-each>
</td>
<td>
<img src="../App_Themes/LMP/Images/icon_check.gif"/>
</td>
</tr>
<tr>
<td>
Year:
<xsl:value-of select="Year" />
</td>
<td>
<img src="../App_Themes/LMP/Images/icon_check.gif"/>
</td>
</tr>
</xsl:for-each>