2017-10-16 12 views
0

xml 게시자 용 rtf 템플릿을 만들려고합니다. 내 테이블에는 다른 그룹이 있습니다. 나는 각 그룹에 특별한 배경색을주고 싶다. 색상 정보는 'GROUP_COLOR'태그가있는 XML에서 가져옵니다.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> 

가 어떻게이 문제를 극복 할 수

?

답변

0

난 솔루션 등을 검색 할 수 있습니다 :

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