csl mods, take 2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

csl mods, take 2

Bruce D'Arcus-3
OK, I've made further changes to CSL, including:

        - renaming cs:layout to cs:item-layout, and cs:organization to  
cs:list-layout
        - removed cs:terms wrapper, but added a more general cs:general wrapper
        - removed all the child wrappers there (cs:locators, etc.)
        - moved cs:et_al to be a child of cs:names

Am still contemplating making the cs:dates element much more compact;  
perhaps just a single cs:months element there.

My intention is that this cover all the features we'd need for a 1.0  
release. The big addition, of course, is the multibib-like support for  
grouping in the reference list.

Thoughts?  Here's a minimal example (missing most of the meat, but  
showing the structure):

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen  
RNGSchema="file:/Users/darcusb/projects/citeproc/schemas/
citationstyle.rnc" type="compact"?>
<citationstyle xmlns="http://purl.org/NET/xbiblio/csl"  
class="author-year">
    <info>
       <title>Some Title</title>
    </info>
    <content>
       <general>
          <names and-as="and">
             <et_al renderas="et al."/>
          </names>
          <dates>
             <months>
                <month/>
             </months>
          </dates>
          <locator type="page" renderas-single="p"  
renderas-multiple="pp"/>
          <genre type="letter" renderas="letter"/>
          <medium type="CD" renderas="CD"/>
       </general>
       <citation delimiter=";" prefix="(" suffix=")">
          <use-et_al min-authors="4" use-first="3"/>
          <item-layout>
             <creator/>
          </item-layout>
       </citation>
       <bibliography author-as-sort-order="first-author"  
author-shorten-with="———.">
          <use-et_al min-authors="4" use-first="3"/>
          <list-layout>
             <heading>References</heading>
             <section group-by="named group" group-name="primary">
                <heading>Primary Sources</heading>
                <subsection>
                   <heading>Published Sources</heading>
                </subsection>
                <subsection group-by="named group"  
group-name="unpublished">
                   <heading>Unpublished Sources</heading>
                </subsection>
             </section>
             <section>
                <heading>Secondary Sources</heading>
             </section>
          </list-layout>
          <item-layout>
             <reftype name="book">
                <title capitalize="title case"/>
             </reftype>
          </item-layout>
       </bibliography>
    </content>
</citationstyle>