【发布时间】:2013-08-27 07:08:08
【问题描述】:
我想在 MSWORD 2013 中创建自定义书目样式,我使用 this style。 我使用 IEEE_Reference.XSL 并应用了所需的更改。没关系。
但我的文章有多种语言参考。我希望本地化我的书目样式,就像 Microsoft word 默认书目样式一样。
我知道我应该为此使用 LCID,
我的部分代码是这样的:
<source type="Book">
<column id="1">
<halign>right</halign>
<valign>top</valign>
<format>{[%RefOrder%]}</format>
</column>
<column id="2">
<halign>left</halign>
<valign>top</valign>
<format >{%Author:1|Editor:2%, }{<i>%Title%</i>{, %Edition:o% ed.}}{, %Editor:2%}.{ %City|StateProvince|CountryRegion%}{, %StateProvince|CountryRegion%}{, %CountryRegion%}{: %Publisher%}{,{ %Month:s%} %Year%}{, vol. %Volume%}{, %Comments%}.{ [Online]. %URL:l%}</format>
</column>
<sortkey></sortkey>
</source>
我的目标是这样的代码:
xsl:choose>
<xsl:when test="b:LCID='1033'">
--ENGILSH FORMAT
</xsl:when>
<xsl:otherwise>
--PERSIAN FORMAT
</xsl:otherwise>
</xsl:choose>
但它不起作用,总是选择 xsl:otherwise 。
有人可以帮我做这个条件吗? 谢谢,
【问题讨论】:
标签: xslt ms-word xslt-1.0 xslt-2.0 bibliography