-1
인스턴트 메신저가 테이블을 구성하는 xsl 템플릿을 호출합니다. 나는 조건부로 param의 값에 따라 테이블의 색상을 설정하고 싶다. 어떤 제안?xsl 템플릿에 매개 변수 전달
Ex.
<xsl:template match="sometemplate">
<xsl:param name="bgcolor" select="'black'"/>
<table>
<!-- I have to set the background color of this tr depending on the value of bgcolor -->
<tr>
<td>
<!-- Do Something -->
</td>
</tr>
<table>
</xsl:template>
<xsl:template match="callingTemplate">
<xsl:apply-templates select="sometemplate">
<xsl:with-param name="bgcolor" select="'white'"/>
</xsl:apply-templates>
</xsl:template>