如何把xsl变量赋值给web控件的属性?
想把如下xsl变量<xsl:variable name="link" select="substring-before(@WorkflowLink, ', ')"></xsl:variable>
赋值如下控件的xmllocation属性
<Controls:XmlFormView runat="server" Title="XmlFormView" XmlLocation="http://localhost:8080/travel request/chengdu.xml" EditingStatus="Editing" ID="XmlFormView1" ShowHeader="False" XsnLocation="" AllowEdit="False" PrintWindow="False" SaveLocation="" ShowFooter="False" WebPart="true" __WebPartId="{063015d6-63a9-4dc5-a752-00224451b449}" __MarkupType="vsattributemarkup" __designer:IsClosed="false">
</Controls:XmlFormView>
如何实现? --------------------编程问答-------------------- http://msdn.microsoft.com/zh-cn/library/ms950787.aspx --------------------编程问答-------------------- <xsl:element name="XmlFormView ">
<xsl:attribute name="runat">server</xsl:attribute>
<xsl:attribute name="Title">XmlFormView</xsl:attribute>
<xsl:attribute name="XmlLocation">
<xsl:variable name="link" select="substring-before(@WorkflowLink, ', ')"/>
</xsl:attribute>
......
</xsl:element>
--------------------编程问答-------------------- 学习
补充:.NET技术 , ASP.NET