我有以下XSL转换:
<xsl:for-each select="refsect1[@id = 'seealso']/para/citerefentry">
/// <seealso cref=""/>
<xsl:value-of select="refentrytitle" />
</xsl:for-each>
Run Code Online (Sandbox Code Playgroud)
我怎样才能把价值refentrytitle中的CREF属性seealso模板标签?
我不明白如何将refentrytitle的值放在模板中seealso标记的cref属性中.
只需将表达式放在大括号内(这称为属性值模板或简称AVT语法),如下所示:
<seealso cref="{refentrytitle}"/>
Run Code Online (Sandbox Code Playgroud)