Problem with selecting a style
I edited FEBS csl file to fit my requirements and installed it, but it doesn't work in word processors.
In both Word and Writer the style can't be selected, in Word it shows a VBA error.
I tested it on two different computers, using Zotero 1.0.9.
I'm affraid there could be some mistake in the file itself, made during editing, but can't find a way to check it. Can anyone tell me where is the problem?
The file:
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>CMLS</title>
<id></id>
<link href=""/>
<author>
<name>JK</name>
<uri></uri>
</author>
<updated></updated>
<summary>Style for Cellular and Molecular Life Sciences</summary>
<category term="numeric"/>
<category term="biology"/>
</info>
<macro name="editor">
<names variable="editor" prefix="(" suffix=")" delimiter=", ">
<name and="text" initialize-with=". " delimiter=", " sort-separator=", " />
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=", " initialize-with=". "
delimiter=", " delimiter-precedes-last="always" and="text" />
<label form="short" prefix=" (" suffix=".)" text-case="lowercase"/>
<substitute>
<names variable="editor"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter=",">
<text variable="citation-number" />
</layout>
</citation>
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="entry-spacing" value="0"/>
<layout>
<text variable="citation-number" suffix=" "/>
<text macro="author" suffix=" "/>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
</date>
<choose>
<if type="book">
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="edition" prefix=", "/>
<text macro="editor" prefix=" "/>
<text prefix=" " macro="publisher"/>
</group>
</if>
<else-if type="chapter">
<text macro="title" prefix=" " suffix="."/>
<group class="container" prefix=" " suffix=".">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" prefix=" " font-style="italic"/>
<names variable="editor" prefix=" (" suffix=")," delimiter=", ">
<name name-as-sort-order="all" and="symbol" sort-separator=" " initialize-with=""/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
<group prefix=" " suffix="." delimiter=", ">
<text macro="edition"/>
<group>
<label variable="page" form="short" suffix=". "/>
<text variable="page" />
</group>
</group>
<text macro="publisher" prefix=" "/>
</group>
</else-if>
<else>
<group class="container" prefix=" " suffix=".">
<text macro="title" suffix=". "/>
<text variable="container-title" form="short" />
<group prefix=" ">
<text variable="volume" />
</group>
<group prefix=", ">
<text variable="page"/>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
In both Word and Writer the style can't be selected, in Word it shows a VBA error.
I tested it on two different computers, using Zotero 1.0.9.
I'm affraid there could be some mistake in the file itself, made during editing, but can't find a way to check it. Can anyone tell me where is the problem?
The file:
<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>CMLS</title>
<id></id>
<link href=""/>
<author>
<name>JK</name>
<uri></uri>
</author>
<updated></updated>
<summary>Style for Cellular and Molecular Life Sciences</summary>
<category term="numeric"/>
<category term="biology"/>
</info>
<macro name="editor">
<names variable="editor" prefix="(" suffix=")" delimiter=", ">
<name and="text" initialize-with=". " delimiter=", " sort-separator=", " />
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=", " initialize-with=". "
delimiter=", " delimiter-precedes-last="always" and="text" />
<label form="short" prefix=" (" suffix=".)" text-case="lowercase"/>
<substitute>
<names variable="editor"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="."/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<citation>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter=",">
<text variable="citation-number" />
</layout>
</citation>
<bibliography>
<option name="hanging-indent" value="true"/>
<option name="entry-spacing" value="0"/>
<layout>
<text variable="citation-number" suffix=" "/>
<text macro="author" suffix=" "/>
<date variable="issued" prefix="(" suffix=")">
<date-part name="year"/>
</date>
<choose>
<if type="book">
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="edition" prefix=", "/>
<text macro="editor" prefix=" "/>
<text prefix=" " macro="publisher"/>
</group>
</if>
<else-if type="chapter">
<text macro="title" prefix=" " suffix="."/>
<group class="container" prefix=" " suffix=".">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" prefix=" " font-style="italic"/>
<names variable="editor" prefix=" (" suffix=")," delimiter=", ">
<name name-as-sort-order="all" and="symbol" sort-separator=" " initialize-with=""/>
<label form="short" prefix=", " text-case="lowercase"/>
</names>
<group prefix=" " suffix="." delimiter=", ">
<text macro="edition"/>
<group>
<label variable="page" form="short" suffix=". "/>
<text variable="page" />
</group>
</group>
<text macro="publisher" prefix=" "/>
</group>
</else-if>
<else>
<group class="container" prefix=" " suffix=".">
<text macro="title" suffix=". "/>
<text variable="container-title" form="short" />
<group prefix=" ">
<text variable="volume" />
</group>
<group prefix=", ">
<text variable="page"/>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
-
Rintzeedited January 9, 2009I didn't check the style with a XML validator (which you could do yourself, see http://www.zotero.org/support/dev/creating_citation_styles), so there may be additional issues with your style. Looking at it by eye I can tell you that you really have to give the style an ID. This is the string with which the style is identified by Zotero, so an empty ID-tag will confuse the program.
-
JanKThank you very much, adding ID-tag solved the problem.