SOLVED: Style does not appear to be valid: libre office

edited 22 days ago
Hi,

I've edited a style and it passes the csl validator at https://validator.citationstyles.org/.
I can import it into zotero, however, once I try to use it in LibreOffice, I get an error:

>The style you have selected does not appear to be valid. If you have created this style yourself, please ensure that it passes validation as described at https://github.com/citation-style-language/styles/wiki/Validation. Alternatively, try selecting another style.

The code can be seen here: https://pastebin.com/wh7eKPbm

I would be grateful if anyone could take a quick look at the admittedly messy code, or tell me how to approach debugging. Probably the cause is logged somewhere? But where?

  • edited 22 days ago
    Line 199.
    "Attribute “variable” not allowed on element “else” "
    You can either have JUST or an that tests for a specific parameter. In your case you're mixing both.
  • edited 22 days ago
    Thanks, I must have changed that when messing around trying to get it to work. I've edited out that mistake and I'm still getting the error in libreoffice.

    Style preview in Zotero works fine.
  • edited 22 days ago
    You will need to reinstall that style. Just changing the file on your hard disc won't do anything. Double click and Zotero should pick it up. Otherwise just set to open .csl files via "open with..." to Zotero.
    Also, not sure why you don't have a self-link in the info section. Just modify the template style, not delete things that are necessary.
  • I did reload the style in Zotero before. I re-added the self-link and now the style works as expected.

    Damnation, thank you!
Sign In or Register to comment.