"Syntax error" after any zotero plugin command - ID D97952544

Hi there,

I just edited my style (no warning in validator) and now, whatever action I try (add/edit citation/bibliography, setting preferences), I instantly get the error "Sntyx error in your document from MacWord.

Any ideas to fix this?

Mac OSX 10.6.8
MacWord 2011
Zotero 2.1.8

Thx!
  • ...update:

    I was able fix this problem with the old copy, paste & reselect style-trick.

    Then I got the message XML tag name mismatch (parent) and now I get the syntax error again :(
  • update2...

    reinstalled macword plugin, restarted computer, word & firefox - no changes
  • Hi Dan,

    I uploaded the style under https://gist.github.com/1099920

    Meanwhile, I copy-pasted my document in a new word document, removed the last citation and added it again and it seems to work now.

    The old file could not be repared by deleting the faulty citation, still claims the syntax error.

    So my problem is fixed, but the question remains :)

    Thx for the quick reply and have a nice weekend!

    Anne
  • edited July 22, 2011
    EDIT Never mind, I can see the error in your debug ID too (although this is not always the case).
  • I didnĀ“t catch what you said before - is there any error in my style I shoul fix? Or can I leave it as it is?

    Thanks in advance
    Anne
  • It was an issue with that particular document, not with the style. I'll see if I can figure out why it happened.
  • It just happened again - first Syntax error, after c+p in new document now it xml tag name mismatch (expected parent) again.

    I have five days left to fix this problem and finish the thesis - trying not to panic....
  • ...ok, c+p again fixed the problem if I do not change windows or klick in the document while zotero tries to edit something, it seems stable.
  • I've got a similar problem.
    my style worked very well but since a couple of month, the following error appears:
    XML tag name mismatch (expected parent).
    It happens with all different files, so it has to be the style. I guess it is due to change of csl 0.8 to csl 1.0. my style was created under csl 0.8 but i tried to change it to the new version.
    if i use it in the test pane (chrome://zotero/content/tools/csledit.xul), a different error appears:
    TypeError: state.fun.decorate[params[0]][params[1]] is not a function

    here is the style: https://gist.github.com/1151234

    i use firefox 5.0.1, zotero 2.1.8, mac wordintegration 3.1.6

    thanks a lot!
  • edited August 17, 2011
    1) the root element cs:style needs to be namespaced, i.e. it should be

    <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
    instead of
    <style class="in-text" version="1.0" demote-non-dropping-particle="sort-only">

    2) in the "locator" macro, there is a line

    <text variable="volume" font-style="italic "/>

    removing the space after "italic" eliminates the error for me. I'm not sure why validator.nu doesn't catch this, though.
  • Thanks a lot, Rintze.
    now. the validator accepts the style.
    but it is similar to before. I can insert citations but when I insert bibliography,
    the following error appears:

    this.dateparts is undefined

    do you know why?

    thanks again
  • I think I found the cause of that error as well. In the "issued" macro, you have the line:

    <date variable="issued"/>

    Presumably, you want to show the whole date here? In that case, replace the line with something like:

    <date variable="issued">
    <date-part name="month" suffix=" "/>
    <date-part name="day" suffix=", "/>
    <date-part name="year"/>
    </date>
  • great.
    now it works.
    thanks

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.