[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Integrated sort using different elements

Subject: Integrated sort using different elements
From: Quinn Dombrowski <qdombrow@xxxxxxxx>
Date: Thu, 19 Feb 2009 09:09:07 -0600
 Integrated sort using different elements
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.