name-partsmall-caps

Hello! Some help needed here : I would like the surname of the authors to be set into small caps, but it seems not to work...

Can anybody gimme some advice?

My code :(btw if you notice some flaws, just tell me!)

<?xml version="1.0" encoding="UTF-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" xml:lang="en">
<info>
<title>Swiss Law</title>
<id>http://www.zotero.org/styles/swiss-law</id>;
<author>
<name></name>
<email></email>
</author>
<category term="author-date"/>
<category term="law"/>
<updated>2012-11-18</updated>
<summary>Swiss Law</summary>
</info>
<!-- macros -->

<!-- mise en forme citation -->
<macro name="cite">
<group delimiter=", ">
<names variable="author">
<name font-weight="normal" delimiter="/" delimiter-precedes-last="always"/>
</names>
</group>
</macro>

<!-- mise en forme bibliographie -->
<macro name="bibl">
<group delimiter="">
<names variable="author">
<name>
<name-part name="family" font-variant="small-caps" />
</name>
</names>
<text variable="title" font-style="normal" prefix=", "/>
<text variable="publisher-place" prefix=", "/>
<text macro="date" prefix=" "/>
</group>
</macro>

<macro name="date">
<date variable="issued">
<date-part name="year"/>
</date>
</macro>

<macro name="biblifshortname">
<choose>
<if variable="issued">
<date variable="issued" form="numeric"/>
</if>
<else>
<text term="no date"/>
</else>
</choose>
</macro>



<!-- citation -->

<citation>
<option name="et-al-min" value="2"/>
<option name="et-al-use-first" value="1"/>
<option name="name-as-sort-order" value="all"/>
<layout prefix="" suffix= ", ">
<text macro="cite"/>
</layout>
</citation>

<!-- bibliographie -->

<bibliography>
<sort>
<key variable="author" sort="ascending"/>
<key variable="issued" sort="descending"/>
</sort>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/>
<option name="name-as-sort-order" value="all"/>
<layout>
<text macro="bibl"/>
</layout>
</bibliography>
</style>
Sign In or Register to comment.