Stylesheet

Hello,

I have created a stylesheet using the CSL style editor.
I am trying to finalize my stylesheet. However when I submit the sheet on CSL Validator, it seems that my stylesheet contains 15 errors...
I don't have much knowledge in CSL, so I can't correct my errors. Would it be possible for you to check and correct the errors on my stylesheet or at least help me to understand how to correct it.

How can I submit the style sheet to you?

Thanks in advance,
  • pastebin.com and share the link here.

    Otherwise, if this style is for a journal/uni and fits the requirement for the repository, you can submit there and we review/fix on GitHub. (https://github.com/citation-style-language/styles/blob/master/CONTRIBUTING.md)
  • Thanks for your quick answer.
    I submitted the code of the stylesheet on GitHub: Create Turcica.csl

    Thanks again,
  • that hasn't come through yet. It should be on the top here: https://github.com/citation-style-language/styles/pulls
    I assume you only added the style to your local branch and not submitted a PR.
  • If you're struggling with this for more than 5min, probably easier for you to just share the code via pastebin.com and then I'll fix the style up and submit. ;)
  • Yes, it's my fault, I hadn't created a request.
    I created a query 2 hours ago.
    My account name is: LucasCDF
    A user has already started to answer my request.
    The user name is : POBrien333
    Is it you?

    Thanks again,
  • edited 14 days ago
    Yes.
    Let's continue there.
  • Very well, I will modify my file taking into account your remarks on github. And I'll send the file back once the modifications are done
  • edited 14 days ago
    I send you back the style sheet, I managed to make some changes but there are still some errors.
    Here is the new corrected style sheet (hoping I didn't add any new errors) :

    <?xml version="1.0" encoding="utf-8"?>
    <style class="note" version="1.0" demote-non-dropping-particle="sort-only" xmlns="http://purl.org/net/xbiblio/csl">; <!-- This style was edited with the Visual CSL Editor (https://editor.citationstyles.org/visualEditor/) -->
    <info>
    <title>turcica.csl </title>
    <title-short>turcica.csl </title-short>
    <id>http://www.zotero.org/styles/revue-turcica</id>;
    <link rel="self" href="http://www.zotero.org/styles/revue-turcica"/>;
    <contributor>
    <name>Hélène Morlier </name>
    <email>helene.morlier@college-de-france.fr</email>
    </contributor>
    <contributor>
    <name>Lucas Equinoxe</name>
    <email>lucas.equinoxe@college-de-france.fr</email>
    </contributor>
    <issn>0082-6847</issn>
    <eissn>1783-1822</eissn>
    <updated>2022-09-23T07:46:36+00:00</updated>
    </info>
    <macro name="short-author">
    <names variable="author" suffix=", ">
    <name form="short" sort-separator=","/>
    </names>
    </macro>
    <macro name="author">
    <names variable="author" suffix=", ">
    <name suffix=")" initialize="false" name-as-sort-order="all" sort-separator=" ("/>
    </names>
    </macro>
    <macro name="first-name"/>
    <macro name="editor"/>
    <macro name="year-date">
    <choose>
    <if type="book" match="any">
    <date date-parts="year" form="numeric" variable="issued" suffix="."/>
    </if>
    </choose>
    </macro>
    <macro name="locators">
    <label prefix=", " variable="locator" form="symbol"/>
    <text variable="locator" form="short" prefix=" "/>
    </macro>
    <macro name="page">
    <choose>
    <if type="article article-journal article-magazine article-newspaper" match="any">
    <group>
    <choose>
    <if match="any" variable="locator">
    <text variable="locator" prefix=", p. "/>
    </if>
    </choose>
    </group>
    </if>
    <else-if type="article article-journal article-magazine article-newspaper" match="none">
    <text variable="page" prefix=", p. "/>
    </else-if>
    </choose>
    </macro>
    <macro name="collection">
    <group prefix="(" suffix=") ">
    <text variable="collection-title"/>
    <text variable="collection-number" prefix=", "/>
    </group>
    </macro>
    <macro name="title">
    <choose>
    <if type="book" match="any">
    <text variable="title" form="short" font-style="italic"/>
    </if>
    <else-if type="article" match="none">
    <text variable="title" form="short" quotes="true"/>
    </else-if>
    </choose>
    </macro>
    <macro name="translator">
    <names>
    <name suffix=" trad, " initialize="false" name-as-sort-order="all" sort-separator=" ("/>
    </names>
    </macro>
    <macro name="page-bibliography">
    <choose>
    <if type="article article-journal article-magazine article-newspaper chapter" match="any">
    <text variable="page" prefix="p. "/>
    </if>
    </choose>
    </macro>
    <macro name="Title-bibliograpphy">
    <choose>
    <if type="chapter" match="all">
    <group>
    <text term="in" font-style="italic" prefix=", " suffix=" "/>
    <group>
    <names variable="editor">
    <name suffix=")" initialize="false" name-as-sort-order="all" sort-separator=" ("/>
    <label form="short" prefix=" " suffix=", "/>
    </names>
    <group>
    <text variable="container-title" font-style="italic" suffix=", "/>
    <text variable="publisher-place" suffix=", "/>
    <text variable="publisher" suffix=", "/>
    </group>
    </group>
    </group>
    </if>
    </choose>
    </macro>
    <macro name="publisher-place"/>
    <macro name="publisher-place">
    <choose>
    <if type="book" match="any">
    <text variable="publisher-place"/>
    </if>
    </choose>
    </macro>
    <macro name="publisher">
    <choose>
    <if type="book" match="any">
    <text variable="publisher" form="short" suffix=", "/>
    </if>
    </choose>
    </macro>
    <macro name="publisher-place">
    <choose>
    <if type="book" match="any">
    <text variable="publisher-place" prefix=", "/>
    </if>
    </choose>
    </macro>
    <macro name="container-title">
    <choose>
    <if type="article article-journal article-magazine article-newspaper" match="any">
    <text variable="container-title" font-style="italic" prefix=", " suffix=" "/>
    <text variable="volume" form="short" suffix=" "/>
    <date date-parts="year" form="text" variable="issued" prefix="(" suffix="), "/>
    </if>
    </choose>
    </macro>
    <macro name="URL">
    <choose>
    <if match="any" variable="URL">
    <text variable="URL" prefix=" URL : " suffix="."/>
    </if>
    <else-if match="none" variable="URL">
    <text variable="DOI" prefix=" DOI : " suffix="."/>
    </else-if>
    </choose>
    </macro>
    <citation>
    <layout font-variant="normal" font-weight="normal" delimiter="; " suffix=".">
    <text macro="short-author"/>
    <text macro="title"/>
    <choose>
    <if match="any" variable="locator">
    <text macro="locators"/>
    </if>
    <else-if match="none" variable="locator">
    <text macro="page"/>
    </else-if>
    </choose>
    </layout>
    </citation>
    <bibliography>
    <sort>
    <key macro="author"/>
    <key variable="issued"/>
    </sort>
    <layout>
    <text macro="author"/>
    <text macro="title"/>
    <text macro="container-title"/>
    <text macro="Title-bibliograpphy"/>
    <text macro="translator"/>
    <text macro="publisher-place" suffix=", "/>
    <text macro="publisher"/>
    <text macro="year-date"/>
    <text macro="collection"/>
    <text macro="page-bibliography" suffix="."/>
    <text macro="URL"/>
    </layout>
    </bibliography>
    </style>
  • edited 14 days ago
    Please edit your file in your Pull Request on GitHub. Let's also keep the discussion there, as mentioned.
Sign In or Register to comment.