|
From: Dan M. <d-...@uc...> - 2001-09-27 06:44:29
|
On Tue, 18 Sep 2001, David Merrill wrote: > Hi, > > What is the recommended way to get a list of documents? The contents > list and extended contents list are not a list of documents -- the > same document is often listed more than once in separate sections. > > I'm trying to generate all my web pages with xslt, so I'm looking for > a way to extract a list of documents, sorted, and write out html. I'm > doing okay so far learning xslt, but there doesn't seem to be a way to > do this without a clever hack, and I would rather find a more > straightforward way. Hmm.. We don't have any files containing each document exactly once which is exported for use by other applications. I hadn't thought of a need for it before you suggested this one. You could work around it by extracting a unique list from the contents list. It sounds like this is what you are doing. The alternate would be to modify ScrollKeeper to keep this data in another XML file and then export the information. If we think many applications will need the list, then this is the better approach. If you actually want to use it soon, this would mean churning out a 0.2.1 release. It would not need too much changing to roll it into 0.3.0. If you'd like a really dirty hack, you could just snoop on the internal ScrollKeeper file: `scrollkeeper-config --pkglocalstatedir`/scrollkeeper_docs This may make things easier for playing around in the short term, but should not be used for any real releases since this file is not meant to be exported. Dan |