Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下代码为我提供了适当的字符串,但我不知道如何将值放入 html img 标记:
<xsl:value-of select="MT[@N = 'tag']/@V" />
我试过这个:
<img src="<xsl:value-of select="MT[@N = 'tag']/@V" />
和几个变化。
谢谢。
使用属性值模板 ( AVT )
<img src="{MT[@N = 'tag']/@V}" />