Modifying style: why is an error?

Hy,
I'm trying to modify APA style (CSL schema updated). But when I want to eliminate paranthesis, the style doesn't work. Why? Is there a connection that i don't know?

Example:
...
</macro>
<citation>
<option name="et-al-min" value="6"/>
<option name="et-al-use-first" value="6"/>
<option name="et-al-subsequent-min" value="6"/>
<option name="et-al-subsequent-use-first" value="1"/>

<-- HERE THE PARANTHESIS ARE. WHY CAN'T I ELIMINATE THEM??? --!>
<layout prefix="(" suffix=")" delimiter="; ">

<choose>
<if position="first">
<text macro="author"/>
<text macro="title"/>
<text macro="publisher" prefix=", "/>
<date variable="issued" prefix=", ">
<date-part name="year"/>
</date>
<text variable="locator" prefix="; "/>
</if>
<else>
<text macro="author"/>
<text macro="title"/>
<text variable="locator" prefix=": "/>
</else>
</choose>
</layout>
</citation>
<bibliography>
...

Thank you very much!

Mihai
  • How are you trying to remove them? You should be able to remove the prefix and suffix attributes without a problem.
  • I don't think that file is valid against the new schema.
  • Yes, the file is valid (verified with Oxygen 8.2).
    Yes, i've tried to remove prefix and suffix.
    I propose a test: take the APA style for new schema and remove prefix and sufix with 2 paranthesis. The style don't work!!!
    I waiting for another style (new schema), Chicago with bibliography... It is more similar with my desires.

    I'm very proud of your work at Zotero,

    Thank you,
    Mihai
  • I propose a test: take the APA style for new schema and remove prefix and sufix with 2 paranthesis.
    I did, and it worked for me in csledit.xul, at least. Unless we're looking at different things.
  • Excuse me, friends,
    my fault! It works!!!!
    Excuse me and thank you very much!

    Mihai
  • Hi,

    I've found the error! I want to have a footnote: Autor, Title, Year. When in APA style (new schema) I introduce title, the paranthesis reapear: (Autor, Title, Year) !!!

    Example:

    <citation>
    <option name="et-al-min" value="6"/>
    <option name="et-al-use-first" value="6"/>
    <option name="et-al-subsequent-min" value="6"/>
    <option name="et-al-subsequent-use-first" value="1"/>
    <option name="disambiguate-add-year-suffix" value="true"/>
    <option name="disambiguate-add-names" value="true"/>
    <option name="disambiguate-add-givenname" value="true"/>
    <layout>
    <text macro="author-short"/>
    <text macro="title"/> !!!!!!!!!!!!!!! THIS PUT 2 paranthesis!!!
    <date variable="issued" prefix=", ">
    <date-part name="year"/>
    </date>
    <text variable="locator" prefix=": "/>
    </layout>
    </citation>

    If you want to see the macros for author and title:

    <macro name="editor-translator">
    <names variable="editor translator" prefix="(" suffix=")" delimiter=", ">
    <name and="symbol" initialize-with="." delimiter=", "/>
    <label form="short" prefix=", " text-transform="capitalize" suffix="."/>
    </names>
    </macro>
    <macro name="author">
    <names variable="author" font-variant="small-caps">
    <name name-as-sort-order="all" and="symbol" sort-separator=", "
    delimiter=", " delimiter-precedes-last="never"/>
    <label form="short" prefix=" (" suffix=".)" text-transform="capitalize"/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <text macro="title"/>
    </substitute>
    </names>
    </macro>
    <macro name="author-short">
    <names variable="author" font-variant="small-caps">
    <name form="long" and="symbol" delimiter=", "/>
    <substitute>
    <names variable="editor"/>
    <names variable="translator"/>
    <choose>
    <if type="book">
    <text variable="title" font-style="italic"/>
    </if>
    <else>
    <text variable="title" quotes="true"/>
    </else>
    </choose>
    </substitute>
    </names>
    </macro>
    .........................................................................
    <macro name="title">
    <choose>
    <if type="book">
    <text variable="title" font-style="italic"/>
    </if>
    <else>
    <text variable="title"/>
    </else>
    </choose>
    </macro>
    ......................

    Question: how can I put the title in the footnote, WITHOUT the 2 paranthesis?

    Thanks a lot,
    Mihai
  • It works with <text variable="title">!
    Mihai
  • If all of that is right, then it looks to me there's a bug in the implementation of macros. I can't see anything that would cause the title macro to add the parentheses.
Sign In or Register to comment.