1
我需要使用Diazo清單參數來修改某些樣式顏色。如何使用Diazo清單參數(XSL)設置背景顏色
我的想法是做這樣的事情:
<after css:theme-children="html body">
<style>
body {
background-color:<xsl:value-of select="$body_background_color" />;
}
</style>
</after>
它返回此錯誤:
runtime error, element 'variable' [190:0]
XSLT-variable: Redefinition of variable 'tag_text'. [0:0]
我可以得到它沒有變量工作:
<after css:theme-children="html body">
<style>
body {
background-color:red;
}
</style>
</after>
而且我可以在類似的情況下使用變量:
<after css:theme-children="html body">
<div style="background-color:{$body_background_color};">
blah
</div>
</after>
但我不能把它放在一起。
任何人都可以幫助錯誤或指向另一個解決方案嗎?
這似乎是重氮中的一個錯誤。 – malthe