【发布时间】:2013-08-03 01:46:22
【问题描述】:
我们需要使用 xslt 转换从 xml 创建一个 html。我们要求生成的 html 锚标记为
<a>
<xsl:attribute name="href">
<xsl:value-of select="Google-Link" />
</xsl:attribute>
</a>
输出 html 在双引号中具有 href 属性值
<a href="http://google.com">google</a>
但我们希望它用单引号
<a href='http://google.com'>google</a>
【问题讨论】: