[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hello,
I'm trying to figure out a way to sort by one of multiple elements, with descending priority. I'm working with a TEI bibliography, and there's no single element that all the entries have. Ideally, I'd like to sort by monogr/author; but when that's not possible, by analytic/author; if not that, monogr/editor; then monogr/title; and so on down the line.
Doing a series of sorts, one after another, doesn't work because it groups together all the entries with a monogr/author, then all the ones with an analytic/author. I need all the entries integrated together into one single A-Z list-- where the entry's place is determined by the first of the above elements that it has. I can't do "monogr/author | analytic/author" because some entries have both.
Here's what a complete (for this purpose) entry looks like-- most entries are missing one or many of these elements:
<biblStruct>
<analytic>
<author>Author Name</author>
<title>Article Name</title>
</analytic>
<monogr>
<author>Other Author Name</author>
<title>Journal Title</title>
<editor>Editor Name</editor>
</monogr>
</biblStruct>
Any help would be wonderful. Thanks!
~Quinn
[xsl] Integrated sort using different elements
Subject: [xsl] Integrated sort using different elements From: Quinn Dombrowski <qdombrow@xxxxxxxx> Date: Thu, 19 Feb 2009 09:09:07 -0600 |
Hello,
I'm trying to figure out a way to sort by one of multiple elements, with descending priority. I'm working with a TEI bibliography, and there's no single element that all the entries have. Ideally, I'd like to sort by monogr/author; but when that's not possible, by analytic/author; if not that, monogr/editor; then monogr/title; and so on down the line.
Doing a series of sorts, one after another, doesn't work because it groups together all the entries with a monogr/author, then all the ones with an analytic/author. I need all the entries integrated together into one single A-Z list-- where the entry's place is determined by the first of the above elements that it has. I can't do "monogr/author | analytic/author" because some entries have both.
Here's what a complete (for this purpose) entry looks like-- most entries are missing one or many of these elements:
<biblStruct>
<analytic>
<author>Author Name</author>
<title>Article Name</title>
</analytic>
<monogr>
<author>Other Author Name</author>
<title>Journal Title</title>
<editor>Editor Name</editor>
</monogr>
</biblStruct>
Any help would be wonderful. Thanks!
~Quinn
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL-FO: Background text s, Tony Graham | Thread | Re: [xsl] Integrated sort using dif, G. Ken Holman |
Re: [xsl] XSL-FO: Background text s, G. Ken Holman | Date | Re: [xsl] Integrated sort using dif, G. Ken Holman |
Month |
Keywords