以下は、非表示の変数を指定し、後でアクセスするための値を割り当てたいコードです。
<xsl:for-each select="//Root/Record">
<xsl:if test="(@CIMtrek_accountlist_customer_number != '') ">
<option style="padding:5px;">
<xsl:attribute name="class">>
<xsl:choose>
<xsl:when test="(position() mod 2) = 0">
AlternateRowOne
</xsl:when>
<xsl:otherwise>
AlternateRowTwo
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
// here i want to set hidden varialble and assign the value for it
<xsl:attribute name="value">
<xsl:value-of
select="@CIMtrek_accountlist_customer_number" /></xsl:attribute>
<xsl:value-select="@CIMtrek_accountlist_customer_number" />
</option>
</xsl:if>
</xsl:for-each>
変数名は次のようになります
<input type="hidden"
name="hdnDialogListCtrlPlaceholder_CIMtrek_DailyshipCo_Destination_"+i
id="hdnDialogListCtrlPlaceholder_CIMtrek_DailyshipCo_Destination_"+i
/>
where i =0
and i++;
name_1
name_2
name_n
使用することは可能ですか:<FieldRef Name="<FieldInternalName>" Explicit="TRUE"/>
xslでこれを行う方法