TypeError: myxml

I have been developing a variation of Chicago style for the CBA, and have run into a problem. I completed my CSL and validated it; but when I open it in the Zotero test pane, I get the following error:

Error parsing style:
TypeError: myxml is undefined

I have validated at http://validator.nu/?schema=https%3A%2F%2Fgithub.com%2Fcitation-style-language%2Fschema%2Fraw%2Fv1.0%2Fcsl.rnc&parser=xml&laxtype=yes.

It validated with no errors at all. I know that there are two other forum posts about this problem, but neither one seems to actually have posted the solution to the problem! Can anyone help?

-N. Lamontagne
  • I have posted the code for my CSL style at:
    git://gist.github.com/1452262.git

    Any help would be greatly appreciated.
  • l. 104 -
    you're using a macro (container-contributors-short) that isn't defined. I don't know why the test panel isn't throwing a better error here - validation doesn't check whether macros are defined.
  • Thank you, Adam. That one missing macro completely solved the problem. Moral of the story: if you get the "myxml is undefined" error, you have a syntax problem.
  • at one point the test panel had a specific error for this (something like "macro 'contributor' not defined") which was super useful - I don't know why that disappeared again - Dan, Frank - ideas?
Sign In or Register to comment.