followup; need comments

OK, before checking this in, here’s what I ended up with for the new
model; this the core of the APA example. See in particular the first
(book) definition, which shows what I’ve done. This is to account for
more historical texts that get republished. I added the new group
element to group arbitrary variables. The label attribute is
uncontrolled, and I’m thinking I may use to pass through the process
(to add a class attribute there, for example).

Thoughts?

Bruce

   <item-layout>
      <reftype name="book">
         <name type="author" alternate="name-editor"/>
         <group label="publication date">
            <prefix> (</prefix>
            <date form="year"/>
            <date type="original" form="year">
               <prefix> [</prefix>
               <suffix>]</suffix>
            </date>
            <suffix>) </suffix>
         </group>
         <title font-style="italic">
            <suffix>.</suffix>
         </title>
         <name type="editor"/>
         <group label="publisher">
            <place type="publisher">
               <prefix>&#160;</prefix>
            </place>
            <name type="publisher">
               <prefix>:</prefix>
            </name>
            <place type="publisher">
               <prefix> [</prefix>
            </place>
            <name type="publisher">
               <prefix>:</prefix>
               <suffix>]</suffix>
            </name>
         </group>
         <url>
            <prefix>, &#160;</prefix>
         </url>
         <date type="access">
            <prefix> [accessed on </prefix>
            <suffix>]</suffix>
         </date>
      </reftype>
      <reftype name="chapter">
         <name type="author"/>
         <date form="year">
            <prefix> (</prefix>
            <suffix>) </suffix>
         </date>
         <title/>
         <title type="container" font-style="italic">
            <prefix>, In </prefix>
            <suffix>.</suffix>
         </title>
         <title type="series">
            <suffix>.</suffix>
         </title>
         <place type="publisher">
            <prefix>&#160;</prefix>
         </place>
         <name type="publisher">
            <prefix>:</prefix>
         </name>
         <url>
            <prefix>, &#160;</prefix>
         </url>
         <date type="access">
            <prefix> [accessed on </prefix>
            <suffix>]</suffix>
         </date>
         <number type="pages">
            <prefix>, </prefix>
         </number>
      </reftype>
      <reftype name="article">
         <name type="author" alternate="container-title"/>
         <date>
            <prefix> (</prefix>
            <suffix>) </suffix>
         </date>
         <title/>
         <title type="container" font-style="italic">
            <prefix>&#160;</prefix>
            <suffix>, </suffix>
         </title>
         <title type="series">
            <suffix>, </suffix>
         </title>
         <number type="volume"/>
         <number type="issue">
            <prefix>(</prefix>
            <suffix>)</suffix>
         </number>
         <url>
            <prefix>, &#160;</prefix>
         </url>
         <date type="access">
            <prefix> [accessed on </prefix>
            <suffix>]</suffix>
         </date>
         <number type="pages">
            <prefix>, </prefix>
         </number>
      </reftype>
      <reftype name="legal case">
         <title/>
         <date form="year">
            <prefix> (</prefix>
            <suffix>) </suffix>
         </date>
         <title type="container" font-style="italic">
            <suffix>, </suffix>
         </title>
         <date form="month-day"/>
         <number type="volume">
            <prefix>, </prefix>
         </number>
         <number type="issue">
            <prefix>(</prefix>
            <suffix>)</suffix>
         </number>
         <number type="pages"/>
      </reftype>
      <reftype name="paper-conference">
         <name type="author"/>
         <date form="year">
            <prefix> (</prefix>
            <suffix>) </suffix>
         </date>
         <title/>
         <title type="event">
            <prefix>, presented at</prefix>
            <suffix>, </suffix>
         </title>
         <place type="event">
            <prefix>, </prefix>
         </place>
      </reftype>
   </item-layout>

This is the problem; it’s hard to know how well it’ll work until trying
it with real world styles. OTOH, it’s hard to make the changes (in the
code, schema, etc.) to make it “operational”!

I’m now experimenting with trying to move the more complicated
conditional stuff (mostly for the historians!) to a general config
option, a la:

<general>
   <names and-as="and" et-al="et al." sort-separator=", ">
     <rule type="print-original-script" scope="bibliography" 

position=“after”>





[
]



(
.)







This is hard!

BTW, decided to go to an approach on the templates that’s sort of a
hybrid of the two options. Example:

      <reftype name="article">
         <contributor type="author" alternate="editor">
            <name/>
            <role>
               <prefix> (</prefix>
               <suffix>)</suffix>
            </role>
         </contributor>
         <date>
            <prefix> (</prefix>
            <suffix>) </suffix>
         </date>
         <title/>
         <title type="container" font-style="italic">
            <prefix>&#160;</prefix>
            <suffix>, </suffix>
         </title>
         <number type="volume"/>
         <number type="issue">
            <prefix>(</prefix>
            <suffix>)</suffix>
         </number>
         <access>
            <url>
               <prefix>, &#160;</prefix>
            </url>
            <date>
               <prefix> [accessed on </prefix>
               <suffix>]</suffix>
            </date>
         </access>
         <number type="pages">
            <prefix>, </prefix>
         </number>
      </reftype>

Bruce