This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] sorting a bibliography


On Wed, Dec 10, 2003 at 09:54:13AM -0800, Bob Stayton wrote:
> The problem was selection and context.  Try this one:

Thanks, that works! (Almost)

One of the sections is still not being correctly sorted though.
The output is:
   Linux Documentation Project (LDP) FAQ 
   CVS .
   CVS--Concurrent Versions System .
   CVS: Project Management . 
   Learning About CVS . 

But the markup is identical to the other bibliodivs...
	http://xtrinsic.com/geek/articles/output.html#bibliography (warning:
	250K!)
	http://xtrinsic.com/geek/articles/references.xml (it's only a fragment
	of the much, much longer document)
to sample the weirdness. It's especially a problem in the longer 
bibliodivs.

> In this version, it selects the non-biblioentry children
> of the bibliodiv to process first,
> so your bibliodiv title doesn't get sorted.  Then it selects the
> biblioentry elements for sorting.  For the sort, the context is
> each biblioentry element, so specify its child "title" in the
> select attribute.  

It'll take me a number of readings to understand this. I'm generally good
with the DOM and SQL select statements, but I don't grok that paragraph
yet. It's ok though, I understand what it's doing, I just don't understand
the language yet.

> And I think you want order="ascending", right?

D'oh! Yes. :)

emma

-- 
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]