Citation Style does not work with update

I just updated to zotero 2.1.6 and Firefox 4.0. the citation style that I have created (a modified Chicago) no longer works. The error I receive when I attempt to add a new citation to the text is

"Zotero experienced an error updating your document. this.style is undefined"

I get the same error for both old and new documents. (I wonder if this refers to the fact the the code that I originally edited and call in in my edited version has been renamed or doesn't exist - but this is just a guess).

My code begins:

<!--
This Citation style is modified from the Chicago Manual of style.
-->

<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >
<info>
<title>Chicago Manual of Style (Author-Date format) Modified </title>
<id>http://www.zotero.org/styles/chicago-author-date-modified-for-2-et-al</id>;
<link href="http://www.zotero.org/styles/chicago-author-date"/>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
</author>
<category term="author-date"/>
<category term="generic-base"/>
<updated>2008-09-30T15:22:36+00:00</updated>
<summary>The author-date variant of the Chicago style</summary>
<link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
</info>

any thoughts?

Thanks. -Jill
  • Zotero 2.1.x converts citation styles. That doesn't work if/when they're not valid csl.
    Validate your citation style (which is in csl 0.8.1.):
    http://www.zotero.org/support/dev/citation_styles#validation
    if you don't understand the validation errors, post a copy of the style as a public gist to gist.github.com and post a link here and we can have a look.
  • Thanks. The error that I receive is

    IO Error: HTTP resource not retrievable. The HTTP status from the remote server was: 404.

    looks like my hunch was correct (if I understand this correctly). is there another address I could use - or another way that I can call on this file? thanks, jill
  • No that's probably because bitbucket has been acting up and the validator can't read the csl schema, just try another couple of times it will work eventually.
    The type of errors you want to see will point to specific lines in the code of the style. And no, your hunch likely isn't right, the style is still there, it just doesn't convert so Zotero calls it undefined.
  • Thanks again. The validation identifies one error:

    <?xml version="1.0" encoding="UTF-8"?>

    -Jill
  • please post the style to gist.github.com
  • Done.

    Public Clone URL: git://gist.github.com/959547.git
  • try deleting the comments at the beginning of the style - I'm pretty sure the xml definition needs to be in the first line of the file - you can put those comments in the summary field of the info section instead. It validates for me then.
  • Thanks again. I still get a bunch of errors - appear to be related to the html:

    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 e.g. <!DOCTYPE html>.

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

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

    Error: Unknown element html not allowed.

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

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

    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 78

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

    Warning: Attribute xmlns is not serializable as XML 1.0.

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

    ="UTF-8"?>↩<style xmlns="http://purl.org/net/xbiblio/csl" xml:lang="en" class="in-text" >↩↩ <i
  • Never mind. Event though I received these errors in the verifier - the style works (and as it had in the previous zotero version) in my document. Thanks!
  • no, the style without the comments validates, you need to follow the instructions on my link above closely - in your case you likely didn't select the parser (which should be XML - don't load...)
  • great, glad that worked.

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