A style created for a journal.

Have created a style for a journal. What are the steps for it to be uploaded into zotero styles repository for many to benefit?
Thanks.
  • just to say that the gist method is still an option, happy to upload for you.
    Also, if you're on (debian based) Linux, the svn client for nautilus is now called Rabbit VCS
  • Thanks Rintze for the link but I can not still figure it out.
    I think I will consider posting for adamsmith who has offered to upload it. Hope to learn how to do it from anyone out there in future.
    Thanks.
  • Thanks adams for offering to upload the style for me.
    The address is this http://gist.github.com/278898
    Thanks.
  • hey,
    I uploaded the style - thanks a lot for contributing!
    some comments - the style did not validate, I needed to change a couple of things (there is no "hobby" section under author, the term "no date" is without hyphen, "no-author" doesn't exists as a term - it's "anonymous", there is no variable="year" - you need to use issued or a macro - those were the main ones.)
    Do validate your styles to prevent these things:
    http://www.zotero.org/support/dev/creating_citation_styles#xml_validation

    Also I didn't look at this carefully, but some of the things you did still looked a little rough - e.g. it's a good idea to keep the bibliography section clean and mainly call macros and do most of your if loops in those parts - check e.g. the APA style for an example.
    But that's all small stuff, my first styles were much worse, so once again thanks for contributing.
  • Thanks a lot for the good work done. Will look at it again for the validation.
    All the best and have a nice time.
  • Hello. How do I view the uploaded style. I tried doing that at the style repository but could not see it.
  • sometimes it takes a while until styles show up in the repository
  • I attempted to validate the style and the error messages are as below. How do I go about it since most of the errors seem to come from between the declaration and info sections.

    #

    Error: Saw <?. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML.)

    At line 1, column 2

    <?xml v
    #

    Error: Start tag seen without seeing a doctype first. Expected <!DOCTYPE html>.

    From line 1, column 39; to line 2, column 77

    ="UTF-8"?>↩<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">↩ <in
    #

    Error: Bad value http://purl.org/net/xbiblio/csl for the attribute xmlns (only http://www.w3.org/1999/xhtml permitted here).

    From line 1, column 39; to line 2, column 77

    ="UTF-8"?>↩<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">↩ <in
    #

    Warning: Attribute xmlns is not serializable as XML 1.0.

    From line 1, column 39; to line 2, column 77

    ="UTF-8"?>↩<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">↩ <in
    #

    Error: When the attribute xml:lang in no namespace is specified, the element must also have the attribute lang present with the same value.

    From line 1, column 39; to line 2, column 77

    ="UTF-8"?>↩<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">↩ <in
    #

    Error: Required children missing from element head.

    At line 214, column 9

    >↩</style>↩
  • a lot of these errors are because the validator treats this as html not as xml -
    there are some options you can check to make this work, but more easily you could just upload the csl file instead of pasting it into the text field (which is what I suppose you did)
  • Yes, you are perfectly right. I pasted it into the text field using validator.nu. However upon using the URL, the messages are as below. Does it mean that I have to make some changes before the style validates? What's your opinion/suggestion?

    1.

    Warning: text/* type without a charset parameter seen. Defaulting to US-ASCII per section 3.1 of RFC 3023.

    http://www.zotero.org/styles/applied-clay-science/dev
    2.

    Info: The Content-Type was text/xml. Using the XML parser (not resolving external entities).
    3.

    Warning: Overriding document character encoding from US-ASCII to UTF-8.
    4.

    Schema Error: Cannot find preset schema for namespace: http://purl.org/net/xbiblio/csl.

    The result cannot be determined due to a non-document-error.
    Source

    1. <?xml version="1.0" encoding="UTF-8"?>↩
    2. <style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text">↩
    3. <
  • you need to have
    http://xbiblio.svn.sourceforge.net/viewvc/xbiblio/csl/schema/tags/0.8/csl.rnc
    in the schema box.
    You need to check "Be lax about http content".
    The desired output you'll get is below. The warnings are OK:

    1.

    Warning: Being lax about non-RNC Content-Type: text/plain

    http://xbiblio.svn.sourceforge.net/viewvc/xbiblio/csl/schema/tags/0.8/csl.rnc
    2.

    Warning: text/* type without a charset parameter seen. Would have defaulted to US-ASCII had the lax option not been chosen.

    http://www.zotero.org/styles/applied-clay-science/dev
    3.

    Info: The Content-Type was text/xml. Using the XML parser (not resolving external entities).

    The document validates according to the specified schema(s).
  • I have replaced applied-clay-science with a dependent style, based on elsevier-harvard.csl
Sign In or Register to comment.