OK, I managed to get fairly far with a new version. I’ve posted it
here:
http://www.users.muohio.edu/darcusb/files/citeproc.tar.gz
I’ve packaged it with an oXygen project file.
I’m happy with how I’ve handled the bibliographic stuff (in other
words, the bibliography list that gets printed at the end of a
document). It’s all handled in variables apart from the main document,
such that printing it is as simple as:
<div id="bibliography">
<xsl:copy-of select="$formatted-biblist"/>
</div>
… and writing out the raw modsCollection is as easy as:
<xsl:if test="$biboutfile">
<xsl:result-document href="{$biboutfile}">
<xsl:copy-of select="$raw-biblist"/>
</xsl:result-document>
</xsl:if>
The citations currently more-or-less work, but they don’t have the
elegance of the bibliography stuff. David, if you find time, perhaps
you can work out this part? I really don’t know how to handle it.
Also, note the example doc – test.xhtml – has a problem that I don’t
know how to fix either. It results in this:
(Thrift, 1990; Tilly, 2000aTilly, 2002b; Times, 2001)
… which should be:
(Thrift, 1990; Tilly, 2000a, b; Times, 2001)
Note punctuation is wrong, and shortening depending on position within
multi-level grouping doesn’t get switched on (as it did in my earlier
version).
Bruce