Journal style validation

Hello,
I would like to add my CSL style for Malacologica Bohemoslovaca journal to the Zotero Style Repository https://www.zotero.org/styles
I think it meets all style requirement per https://github.com/citation-style-language/styles/wiki/Style-Requirements except of validation against the CSL 1.0.1 schema.
http://validator.citationstyles.org/?url=http://mollusca.sav.sk/malacologica-bohemoslovaca.csl&version=1.0.1
What is the problem with the terms element in my style?
  • The two errors are
    1) The order of locale and terms is reversed
    2) there is no "language" variable in CSL: http://docs.citationstyles.org/en/stable/specification.html#appendix-iv-variables
  • Switch lines 17 and 18.
    Line 297: language is just not a variable. What are you trying to do here?

    This could generally be better like this (although I don't know what the language thing is meant to do):

    <group delimiter=" " prefix=" (" suffix").">
    <text term="in"/>
    <text variable="language" />
    </group>
  • Thank you. That partly resolved the problem.

    The only problem is that the "language" is not specified as variable in CSL 1.0.1, while it is specified as variable in Zotero:
    https://github.com/citation-style-language/schema/issues/55
    so the row
    <text variable="language" />
    is not valid.

    When the reference is in English, the CSL will write "(in English)." at the end of the reference. When the reference is in Russian, it will add "(in Russian)." to the end, and so on. It works all right (although it is necessary to have exact language name; the value "eng" produces "(in eng).").
  • yeah, sorry, but we can't make exceptions to this in CSL -- to make sure that the styles work for all >20 applications that use them, we strictly enforce validation.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.