RTF模板属性动态值

问题描述:

我正在尝试为xml发布者创建一个rtf模板。在我的表格中列出了一些不同的组。我想给每组提供特殊的背景颜色。颜色信息将来自xml和'GROUP_COLOR'标签。RTF模板属性动态值

通常这个代码完全在我的模板:

<xsl:attribute xdofo:ctx="block" name="background-color">#FF420E</xsl:attribute> 

当尝试从XML获得色彩值象下面给出了错误:

<xsl:attribute xdofo:ctx="block" name="background-color"><?GROUP_COLOR?></xsl:attribute> 

我怎样才能解决这个问题?

我找到的解决方案如下图所示:

<xsl:attribute xdofo:ctx="block" name="background-color"> 
    <xsl:value-of select="GROUP_COLOR"/> 
</xsl:attribute>