TypeError: exec is undefined

I modified a style sheet that worked for me so far. I did not use it for last six months. Now it is not working for me anymore. I get a:

TypeError: exec is undefined

when I use the test pane.

My .csl was a modification from one of the Chicago Manual of Style .csl.

I downloaded latest versions of Firefox and Zotero today.

Would appreciate your feedback.
  • Zotero 2.1 is stricter with styles - they need to be valid -
    http://www.zotero.org/support/dev/citation_styles#validation
    if you can't figure out what's wrong, post the style somewhere for us to look at - e.g. a public gist at gist.github.com and post a link here, but as resources are limited, please do try to find the problem yourself, first.
  • I guess mine is not compliant with CSL 1.0. The validator shows only one (uncritical) error with 0.8 and many errors with CSL 1.0.

    I posted it for you to have a look. Here is the link:

    https://gist.github.com/981183
  • 0.8.1 styles work in Zotero 2.1 but they need to validate properly (to the 0.8.1 schema) - I don't know why you think this:
    Error: Element choose from namespace http://purl.org/net/xbiblio/csl is missing a required instance of child element if.
    From line 284, column 5; to line 284, column 13
    ose>↩↩ </choose>

    is an "uncritical" error? Have a look at that part of the style, should be pretty obvious what's wrong there.
  • I guess I did not explain well. The error codes I mentioned (like the one you picked) was from validator.nu with CSL 1.0. These are critical and there are quite a few.

    However, with CSL 0.8, validator.nu reports only one error which did not seem that serious to me.
  • that error report is from the 0.8 validation - fix it and your style will likely work.
Sign In or Register to comment.