以下是我的代码,我想在其中提供隐藏变量并为其分配值以供以后访问。
<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 中执行此操作