【发布时间】:2019-02-22 04:26:06
【问题描述】:
我有以下字符串格式的 xslt 部分:-
<xsl:if test="TestValue3 and TestValue3 != ''">
<xsl:attribute name = "TestDate" >
<xsl:value-of select = "TestValue3" />
</xsl:attribute>
</xsl:if>
我只想从 c# 代码中获取它的属性名称。
Attribuute Name= TestDate
我怎样才能做到这一点?
【问题讨论】:
-
你能展示你输入的样本吗?
-
您提供的 xslt 不足以为您生成答案。所以请提供适当的或完整的 xslt 文件。