In this xslt I am try to get the count of how many th
I am making. Because I need to know how many <input type="radio"></input>
I need to make. I created this variable set
But it looks like it is out of scope? is there any other way to do this?
<xsl:for-each select="MeetingPollingParts/MeetingPollingParts">
<table class="table" style="width:100%;border-color:gray">
<xsl:choose>
<xsl:when test="MeetingPollingPartsTypeId = 3">
<thead>
<tr>
<xsl:for-each select="MeetingPollingPartsValues/MeetingPollingPartsValues">
<xsl:variable name="set" select="MeetingPollingPartsValues/MeetingPollingPartsValues" />
<th>
<xsl:value-of select="QuestionValue" disable-output-escaping="yes"/>
</th>
</xsl:for-each>
</tr>
</thead>
</xsl:when>
<xsl:when test="MeetingPollingPartsTypeId = 5">
<tbody>
<xsl:for-each select="MeetingPollingPartsValues/MeetingPollingPartsValues">
<tr>
<td style="padding: 8px;line-height: 1.42857143;vertical-align: top;border-top: 1px solid #ddd;">
<xsl:value-of select="QuestionValue" disable-output-escaping="yes"/>
</td>
<td style="padding: 8px;line-height: 1.42857143;vertical-align: top;border-top: 1px solid #ddd;">
<input type="radio"></input>
</td>
</tr>
</xsl:for-each>
</tbody>
</xsl:when>
</xsl:choose>
</table>
</xsl:for-each>
OutPut