XSLT: "xsl: value-of" inside an attribute
I donβt understand how to place the refentrytitle value in the crev attribute of the seealso tag in the template.
Just put your expression in braces (this is called Attribute Attribute Templates or just AVT syntax) as follows:
<seealso cref="{refentrytitle}"/> You can do it:
<xsl:for-each select="refsect1[@id = 'seealso']/para/citerefentry"> /// <xsl:element name="seealso"> <xsl:attribute name="cref"> <xsl:value-of select="refentrytitle" /> </xsl:attribute> </xsl:element> </xsl:for-each> Or you could just do this:
<xsl:for-each select="refsect1[@id = 'seealso']/para/citerefentry"> /// <seealso cref="{refentrytitle}" /> </xsl:for-each>