Print

Print


Thanks to those who have posted ideas on tackling this problem.  A
couple of suggestions involved using keys based on the first occurence
of each unique <origination>, but I think my sample data may have
inadvertently confused things -- my apologies!!  I put the sample data
in alpha order by <unittitle> for my own convenience, but I need the
code to work regardless of whether the original document is in alpha
order by unittitle or not.  In other words, the document-order first
occurrence of <origination>Picasso</origination> is not necessarily
associated with the alphabetical-order first <unittitle>.  Herewith the
revised sample data:

<c0x>...<unittitle>Horse, still
life</unittitle><origination>Picasso</origination>...</c0x>
<c0x>...<unittitle>Apple, still
life</unittitle><origination>Picasso</origination>...</c0x>
<c0x>...<unittitle>Giraffe, still
life</unittitle><origination>Holbein</origination>...</c0x>
<c0x>...<unittitle>Baby, still life</unittitle><origination>Fra
Angelico</origination>...</c0x> 
<c0x>...<unittitle>Frog, still
life</unittitle><origination>Michelangelo</origination>...</c0x>
<c0x>...<unittitle>Elephant, still
life</unittitle><origination>Holbein</origination>...</c0x>
<c0x>...<unittitle>Chair, still
life</unittitle><origination>Picasso</origination>...</c0x>
<c0x>...<unittitle>Duck, still
life</unittitle><origination>Michelangelo</origination>...</c0x>

Michele

+-----+-----+-----+-----+-----+-----+
Michele Combs.
Librarian for Manuscripts and Archives Processing.
Special Collections Research Center.
Syracuse University Library.
222 Waverly Avenue.
Syracuse, NY   13244
+-----+-----+-----+-----+-----+-----+