Custom citations styles not installing properly ...

I've created a custom citation style for Biomed Central journals. I've tested it by pasting it into the CSL edit page:
chrome://zotero/content/tools/csledit.xul

It looks okay at this point.

Next, I install it using drag-and-drop. It asks me if I want to install, and says that it installs successfully.

After installing, I refresh the CSL, and can select "BioMed Central Journals" in the pulldown box.

The box reads:
"false"

That's it. And the style dosen't work from documents.

Any ideas what I am doing wrong?

Thanks very much!
Charles Danko

The custom CSL file I am trying to install is here:
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>BioMed Central Journals</title>
<author>
<name>Charles Danko</name>
<email>dankoc@gmail.com</email>
</author>
<category term="biology"/>
<category term="numeric"/>
<updated>2008-11-03T02:05:41+00:00</updated>
</info>
<macro name="author">
<names variable="author">
<name sort-separator=" " delimiter=", " initialize-with="" delimiter-precedes-last="yes" name-as-sort-order="all" suffix=":"/>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name initialize-with="." delimiter=", " and="text" name-as-sort-order="all"/>
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
</names>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="bold"/>
</if>
<else>
<text variable="title" font-weight="bold"/>
</else>
</choose>
</macro>
<macro name="publisher">
<text variable="publisher" font-style="italic" suffix=" "/>
<date variable="issued">
<date-part name="year" suffix=", "/>
</date>
<text variable="volume"/>
</macro>
<macro name="access">
<text variable="URL"/>
</macro>
<macro name="page">
<group>
<text variable="page"/>
</group>
</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="et-al-min" value="100"/>
<option name="et-al-use-first" value="1"/>
<option name="second-field-align" value="true"/>
<layout suffix=".">
<text variable="citation-number" prefix="" suffix="."/>
<text macro="author" prefix=" " suffix=", "/>
<choose>
<if type="book">
<group delimiter=" ">
<text macro="title"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter">
<group delimiter=" ">
<text macro="title"/>
<text variable="container-title" font-style="italic"/>
<text macro="editor"/>
<text macro="publisher"/>
<text macro="page"/>
</group>
</else-if>
<else>
<group delimiter=" ">
<text macro="title" suffix="."/>
<text variable="container-title" font-style="italic"/>
<date variable="issued" suffix=",">
<date-part name="year"/>
</date>
<text variable="issue" font-weight="bold" suffix=":"/>
<text macro="page"/>
</group>
</else>
</choose>
<text macro="access" prefix="; "/>
</layout>
</bibliography>
</style>
  • It actually seems to work from the preview pane: chrome://zotero/content/tools/cslpreview.xul

    Just not the edit pane...
  • edited November 4, 2008
    Your style does not seem to validate.
  • Thanks for the quick response. Downloading Jaxe now. Thought it wouldn't load if I did something wrong.
  • edited November 4, 2008
    I checked -- it seems to validate fine for me.

    Both here:
    http://validator.w3.org/check

    And with Jaxe.

    What did you use to check validation?

    Any other suggestions?
  • You have to validate against the (compact) RelaxNG schema. I don't think the tools you mentioned are able to do that.

    I used RNV. The commercial oXygen XML editor is quite good or you can use emacs nXml mode.
  • edited November 4, 2008
    A run through RNV gives the following errors:

    You're missing a style id in the info section.
    "delimiter-precedes-last" should have the value "always" instead of "yes".
    To get bold text, use "font-weight" instead of "font-style".

    For more info on how to validate and how to write correct styles:

    http://dev.zotero.org/creating_citation_styles
Sign In or Register to comment.