从中<xsl:value-of select="$CashFlowAttach" />
将出现包含数据的 XML 代码,我需要从该值中提取文件名 {例如:值可能是<p xmlns:Utils="cim:Utils"><a href="resources/Attachment/spend plan.123"><image border="0" width="89px" height="47px" src="resources/Content/images/CIMtrek_spend_plan_123.gif"></image></a></p>
} 我需要值是文件名 = 最后花费计划.123。任何条件都可以在 XSL 表单中进行检查
<xsl:choose>
<xsl:when test="string-length($CashFlowAttach)!=0">
<xsl:if test="not(contains($CashFlowAttach,'<p xmlns:Utils="cim:Utils">'))">
<a>
<xsl:attribute name="onclick">ajaxcallingForFileDownload('<xsl:value-of select="$CashFlowAttach" />')
</xsl:attribute>
<xsl:value-of select="$CashFlowAttach" />
</a>
</xsl:if>
</xsl:when>
</xsl:choose>