我正在尝试将变量值(值很好)显示到模板中
此变量有效:
<xsl:variable name="nomUpper" select="concat(translate(substring(nom/text(),1,1), $smallcase, $uppercase),
substring(nom/text(), 2),
substring(' ', 1 div not(position()=last()))
)" />
此代码有效(进入xsl:for-each):
<h2><xsl:number format="1. " /><xsl:value-of select="$nomUpper" />
</h2>
但是我必须使用模板来显示$ nomUpper值
您能帮我找到方法吗?