Style invalide – Votre style ne peut pas fonctionner correctement en 1.0.1
Bonjour,
Je suis un néophyte avec Zotero et le code, et je suis péniblement parvenu à écrire un style qui correspond parfaitement à mes besoins.
J'ai bidouillé ci et là le code à partir du Visual CSL Editor (notamment la partie "Citation", que je vais utiliser pour des renvois de note de bas de page), mais, surprise, quand j'ai installé mon style sur Zotero, il m'indique : "[nom de mon style] n'est pas un style CSL 1.0.1 valide, et peut ne pas fonctionner correctement avec Zotero."
CSL Validator me dit que j'ai un problème ligne 186 :
Line 186: Element “text” from namespace “http://purl.org/net/xbiblio/csl” not allowed as child of element “style” from namespace “http://purl.org/net/xbiblio/csl” in this context. (Suppressing further errors from this subtree.)
/macro>
<text variable="locator"/>
<ma
Vous pouvez trouver le code ici : https://github.com/Ph15/https-github.com-Ph15-Zotero/blob/master/Personal-Zotero-CSL
J'en ai besoin pour un mémoire, donc je voudrais juste être sûr de partir du bon pied.
Merci par avance pour votre aide et vos conseils !
Je suis un néophyte avec Zotero et le code, et je suis péniblement parvenu à écrire un style qui correspond parfaitement à mes besoins.
J'ai bidouillé ci et là le code à partir du Visual CSL Editor (notamment la partie "Citation", que je vais utiliser pour des renvois de note de bas de page), mais, surprise, quand j'ai installé mon style sur Zotero, il m'indique : "[nom de mon style] n'est pas un style CSL 1.0.1 valide, et peut ne pas fonctionner correctement avec Zotero."
CSL Validator me dit que j'ai un problème ligne 186 :
Line 186: Element “text” from namespace “http://purl.org/net/xbiblio/csl” not allowed as child of element “style” from namespace “http://purl.org/net/xbiblio/csl” in this context. (Suppressing further errors from this subtree.)
/macro>
<text variable="locator"/>
<ma
Vous pouvez trouver le code ici : https://github.com/Ph15/https-github.com-Ph15-Zotero/blob/master/Personal-Zotero-CSL
J'en ai besoin pour un mémoire, donc je voudrais juste être sûr de partir du bon pied.
Merci par avance pour votre aide et vos conseils !
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
<text variable="locator"/>
in between two macros in line 185, kind of in CSL no-mans-land. You probably just want to delete it.
I didn't take a close look at the style, but noticed you do a lot of this:
<choose>
<if variable="publisher">
<text variable="publisher"/>
</if>
</choose>
There is no need to test for a variable before using it. This is exactly equivalent to just <text variable="publisher"/>
And thanks for the "variable" tip!