Style validation change?
Hi,
I created my own citation stye a few years back which has been working fine. However today firefox has decided it isn't valid - has something changed?
What is going to be the easiest way to fix it?
I remember it took me a longggggg time to work out the coding to get that far - I'm not in any way experienced with CSL, so go gently with me!
Thanks!
I created my own citation stye a few years back which has been working fine. However today firefox has decided it isn't valid - has something changed?
What is going to be the easiest way to fix it?
I remember it took me a longggggg time to work out the coding to get that far - I'm not in any way experienced with CSL, so go gently with me!
Thanks!
Any ideas?
I have saved both original (from 2012) style and the emended and validated version (which still does'nt work).
Thanks
Using the Firefox-Plugin, it is not accepted, since yesterday.
BUT when I install the Standalone-Version and use the Chrome-Connector all works fine.
I guess, that the trouble has to do with the Firefox Update 45.0.2.
The question is, if the error occurs because of an error on the side of Firefox - or if they are the first to implement some new "rules", which would mean, that with a future Chrome-Update, we will have the same problem also there?
Does anybody have any ideas or information on this?
<macro name="contributors">
<names variable="author">
<name and="text" name-as-sort-order="first" sort-separator=", " delimiter=", " delimiter-precedes-last="never">
<name-part name="family" font-variant="small-caps"/>
<name-part name="given" />
</name>
<label form="verb-short" prefix=", " suffix="." text-case="lowercase" strip-periods="true"/>
<substitute>
<text macro="editor"/>
<text macro="translator"/>
</substitute>
</names>
<text macro="anon"/>
<text macro="recipient" prefix=" @ "/>
<text macro="contributors"/>
</macro>
The second but last line here causes an infinite loop. Zotero is right to refuse to select that style. Remove that line and I think this should work. I'm not sure where in the code this was implemented, to be honest, but it's good to see it.
Thanks anyhow!
Just tried it out. It works on Standalone using Chrome-Connector, still not working using Firefox-Plugin.
https://gist.github.com/anonymous/773010662584a52a7d792caefdd00323
I also downgraded Firefox to 45.0 - no success either.
The one i customize (ERSAM-Histoire et sources anciennes) : https://gist.github.com/anonymous/5677263cff4c1f5d404f79b082137504
Tapuscrit : https://www.zotero.org/styles/le-tapuscrit-note?source=1
Another custom style (base on Elsevier - Harvard) : https://gist.github.com/anonymous/f357c8553cc9fa0477283cfc115545ae
in both case i have this message in french : "Une erreur s'est produite lors de la création de votre bibliographie. Veuillez réessayer."
It's mean, error happened when creating your bibliography, you should try again...
If there are other problems, we'd want to handle those separately.
in fact, some csl style can't be add (zotero said he is not valid) and use (it say that an error happened).
Other csl style can be add but not use (it say that an error happened). So don't talk about these you are right.
The style "ERSAM-Histoire et sources anciennes" can't be add because he is not valid : https://gist.github.com/anonymous/5677263cff4c1f5d404f79b082137504 (and can't be use anymore)
The style "ERSAM-Histoire et sources anciennes-sansColl" who is a minor fork of the one before, can be add, but can't be use also : https://gist.github.com/anonymous/c5575be03687e9808178ac9bd2949c40
The translation of the German error message I get in LibreOffice is:
"The chosen style seems not to be valid. If you have created the style yourself please make sure that it passes the valdidation at http://zotero.org/support/dev/citation_styles. Otherwise please select another style."
1. in first style missing xmlns on line 2: <style xmlns="http://purl.org/net/xbiblio/csl" class="note" default-locale="fr-FR" version="1.0" page-range-format="expanded">
2. Attribute “demote-non-dropping-particle” not allowed on element “name” (line 48, 60, 71, 79, 88, 97, 106)
3. Element “text” not allowed as child of element “date” (line 205, 294) - copy code in line 205 behind 206 and code in line 294 behind line 295 respectively lines 185 and 274 in second style.
<style xmlns="http://purl.org/net/xbiblio/csl" ...>
fixes the errorError parsing style:
TypeError: Zotero.Utilities.xpathText(...) is null
in the "ERSAM-Histoire et sources anciennes" style. (although the other errors highlighted by LiborA should be fixed as well)
Q: Why this style sort bibliography twice by the author?
It was sorted by type of contribution and author before. Then I delete the first criterion. Thus the doubling is some kind of relict. :) Thanks for the hint!
https://gist.github.com/adam3smith/0681ae2b8bd3faf3cceffbb8ee9674f1
only change is the presence of a rel="self" link.
The only change is to use http:// for id and self link
@all -- so yeah, make sure id and self link are both present and in a valid format ("valid" only in terms of syntax; there still doesn't need to be a file at that URL).
But i style have the same problem as abeyhorn with my style (i made all correction to pass the CSL Validator as you can see) :
https://gist.github.com/anonymous/2a8aa9afeeb72d23c618309fa8c65a51