Posting time spent interviewing potential workstudy candidates, and time going on a committee meeting this afternoon.
Eventually figured out that I had a corrupted exist-jars.xml file; after starting again from scratch, I got eXist and Cocoon to build. Then I followed these instructions to add Saxon (using the single-file SaxonHE release) and my own two jars, and to set up utf-8 handling. After that, Cocoon seemed to be running fine, but eXist is still MIA. Another note from WM instructed me to copy the ws-commons-util-1.0.2.jar from EXIST_HOME/lib/core into the generated COCOON/build/webapp/WEB-INF/lib. After doing that, I was able to get to the eXist admin web page, and create a collection; but the jars are still unsigned, so the webstart client won't run (although that also fails on a sitemap error before the signing error even happens), and trying to connect from a local admin client also fails. So nothing is usable yet.
I need to figure out how to sign the jars -- I think this requires a key, which I don't have, and I don't know what kind of key it is, or how to get one or generate one. If I can do that, then an alternative approach is available: I could use the repackaging strategy on eXist 1.2 with Cocoon 2.1.11, to get a working system with eXist 1.2. This would at least be a big step forward. 1.4 could wait on WM having the time to finish it.
WM reported that he'd made some changes in the source tree of eXist 1.4 to enable us to build Cocoon with it, and sent some instructions, which I tried to follow. It looks promising, but it's not quite working yet. Here are the steps I followed using Cocoon 2.1.11 and eXist 1.4rc:
- Replaced the build.xml, exist-gump.xsl and exist-jars.xsl with the ones from here:
http://exist.svn.sourceforge.net/viewvc/exist?view=rev&revision=10205 - Downloaded a fresh Cocoon 2.1.11.
- Patched the Cocoon blocks.properties with a local.blocks.properties which disables Lucene and querybean, per WM's instructions.
- Tried to run the eXist build.sh:
./build.sh -f build/scripts/cocoon/build.xml
I got several errors caused by 503s from the W3C server, which doesn't really want to deliver the XHTML 1.0 Transitional DTD which is referenced by theexist-jars.xslfile. This appears to be a standard response from the W3C servers, to avoid excessive traffic on those files. - Edited that file to point to a local copy of the DTD, and downloaded the DTD and .ent files into the same folder as the XSL file.
- Tried to run a build again; this time it failed on a missing
jars.xmlfile in the Cocoon tree, which I realized had been deleted by the previous attempt to build. I think it's initially read and removed, then replaced at the end of the process, but if the build dies in the middle you have to replace it. - Restored the Cocoon tree to its original state (leaving the
local.blocks.propertiesin place). - Successfully built eXist.
- Tried to build Cocoon, but it failed with this error:
Warning! [ERROR] File core/avalon-framework-api-4.3.jar appears in the lib/ directory, but is not declared in lib/jars.xml. Please update the lib/jars.xml file to include the core/avalon-framework-api-4.3.jar file together with a description. : Fatal Error! Stylesheet directed termination home/mholmes/cocoon_with_exist/cocoon-2.1.11/tools/src/check-jars.xsl:161:40: Fatal Error! Fatal error during transformation Cause: Fatal error during transformation Failed to process /home/mholmes/cocoon_with_exist/cocoon-2.1.11/lib/jars.xml BUILD FAILED /home/mholmes/cocoon_with_exist/cocoon-2.1.11/tools/targets/validate-build.xml:72: Fatal error during transformation
Reported back to WM. I think we'll get there eventually, and I think this work is actually necessary in order to give us a Cocoon/eXist block with 1.4 (one of the standard distro formats).
This is similar to the errors I was getting previously. The file seems to be a standard part of Cocoon 2.1.11.
I've now marked up 27 items in the bibliography, and the patterns of markup are pretty much set. I've written a quick XQuery file to spit out the biblio from the db in XML format, with three sort options so far (date, author, and original order -- in the last, the original division headings are maintained). I need to add title sorting, which is going to require building in the link to my own Java sort library, and after that I can get into the rendering (which might just be automatic, using index.xsl, but will probably require one or two tweaks).
The DH 2010 CfP is out, and my initial submission will be using text-analysis on some of the Coldesp texts. I've spent the morning reading through the text I originally wrote and filling in some gaps (not finished yet, but it's well over 2,000 words already, so it will need some condensing at the end). I've also started preparing to re-run the analyses I did in June, and discovered that the CraigZeta spreadsheet (latest version, which is Excel 2007) actually seems to work on OpenOffice Calc, which is a relief (you have to make sure that VB macros are turned on in the Tools / Options / Load/Save / VBA Properties / Executable code). I've also confirmed that the Intelligent Archiver Java app works OK; and I already purchased a copy of Minitab (although for that I'll have to switch to Windows, unfortunately).
The next stage is to repeat the original analyses; then it would be a good idea to extract similar text for Douglas corresponding with Lytton's successor. There are 470 Newcastle-to-Douglas documents and 768 Douglas-to-Newcastle. These are far larger datasets, and might be even more interesting.
A lot of detail changes to several articles. Still working on this; some are problematic (author's preference for order of biblio components is different from our norm, for instance).
I began doing the markup of the bibliography using the approach I've previously used in journal article markup, using <biblStruct> tags and a highly formalized structure. However, after getting a little way into the process, I've re-thought it, and decided to go instead with a simple <bibl> for each entry. The immediate advantage is that I'm now able to leave the order of elements exactly as they are, and include all the punctuation between and inside them without worrying about generating it. At the same time, the component items are retrievable for any purposes we want. I'm still working out the exact details, but this is a sample entry:
<bibl type="book" subtype="bibliography" xml:id="mercier_2005"> <author><name><surname>Mercier</surname>, <forename>Alain</forename></name></author>, <title level="m">Le tombeau de la mélancolie : littérature et facétie sous Louis XIII : avec une bibliographie critique des éditions facétieuses parues de 1610 à 1643</title>, <biblScope type="vols">2 vols.</biblScope>, <pubPlace>Paris</pubPlace>, <publisher>Champion</publisher>, <date when="2005">2005</date>. </bibl>
I'm still working out details of how to handle series volumes, because the <series> element doesn't allow <publisher>, <pubPlace> or <date> inside it, for some reason.