On Aug 8, 2004, at 6:45 PM, Michael Kay wrote:
I think you're trying to solve several problems at the same time here.
fails my 10-minute rule: I never spend more than ten minutes answering
question on this list.
Fair enough. Anything to get me pointed in the right direction is
appreciated. Let me just see if I understand the following:
Essentially both the para output and the list of citations are
grouping problems that can be tackled using xsl:for-each-group,
probably using group-adjacent. You may need to write a function that
calculates the grouping key. The suffix "a", "b" etc can be obtained
using xsl:number. It may be simplest to start by generating a copy of
the bibliography in which the list of authors (Doe and Jones) and the
year/serial (1999b) appear as additional computed child elements or
attributes, and then working with this copy.
So something like this to start?
This gives me output like:
<mods xmlns="http://www.loc.gov/mods/v3" ID="three">
The problem is that the author key only captures the first name
element. Is this why you say I may need to "write a function that
calculates the grouping key"? Any further hints on how to do this?