value-of within the HTML element attribute
How do you include value-of within the HTML element attribute, without causing an error? Please see the bold code for an example of what I am trying to do.
<xsl:template match="topics">
<li class="off"><a href="#"><xsl:value-of select="@type" /></a>[list]
<xsl:apply-templates select="child::topic" />
</ul></li>
</xsl:template>
<xsl:template match="topic">
<li><a href="<xsl:value-of select="url" />"><xsl:value-of select="title" /></a></li>
</xsl:template>
|