0
왜 이것이 작동하지 않는지 설명 할 수 있습니까?XSL-FO는 동적으로 속성을 사용합니다.
속성 :
<xsl:attribute-set name="dark-red">
<xsl:attribute name="color">red</xsl:attribute>
</xsl:attribute-set>
템플릿 :
<xsl:template name="myTemplate"> <fo:block-container xsl:use-attribute-sets="dark-red"> <fo:block>Red</fo:block> </fo:block-container> </xsl:template>
는 특정 거기 : 변수/매개 변수를 사용하지 않을 경우
<xsl:template name="myTemplate">
<xsl:param name="style">dark-red</xsl:param>
<fo:block-container xsl:use-attribute-sets="{$style}">
<fo:block>Not Red</fo:block>
</fo:block-container>
</xsl:template>
그러나 작동하는 것 같다 이것에 대한 이유 또는 주위에 방법이 있습니까?