This is handy when you're checking whether your XSLT handles all the elements your documents happen to use:
distinct-values(//*/descendant-or-self::*/name(.))This is handy when you're checking whether your XSLT handles all the elements your documents happen to use:
distinct-values(//*/descendant-or-self::*/name(.))Met with Simon again to go over further questions on data structuring for Bailey database. We will make the execution, respite and pardon fields pointers to tables to accommodate the complexities of each of those three fields of data. Simon will provide me lists of the possible values for each of the fields in each of the tables.
We also worked out how to integrate trials in which the sentence/charge is respited (reconsidered by the review panel) and to distinguish those from trials in which the punishment (as recommended by the trial judge) is respited.
Considering how two structure the trial records - may go with fields like "finding of trial judge", "modification by panel", "outcome". In most cases, the outcome will be identical to either the finding of the trial judge or the final modification of the panel. Now I'm not sure if multiple entries in the current respite and pardon fields reflect behaviour of the trial judge or the panel - will have to ask Simon.
Ended up staying late, unplanned, because I had to do a couple of things for drop-in people at the end of the day.
Helped Angela get some documents scanned and some Windows media files ported over to her drive. Also, we spent some time discussing backup; I'm a bit concerned at the fragility of all her data, on a single USB drive, so I think we should spend some time putting some of it on the HDs of machines in R&D, pending the arrangement of proper storage on the SAN.
Spent half an hour in this meeting talking about XML formats for bibliography.
Started working through the basic structure of the XHTML output. The headings (APA stuff) were a bit tricky, but I've figured it out; headings are always h2 down to h6 in XHTML tag terms, but they also get a class attribute which is based on the level they're at and the number of levels, so we can style them appropriately. Lists, tables and quotes are handled, as are names and abbreviations. There are still titles, figures, graphics, notes, mentioned/soCalled/term etc., and the dreaded bibliography to do. There's also the wrinkle that appendices may have nested headings, and those headings are styled based on THEIR nesting level, not the levels in the main text. However, I think it's reasonable to assume no more than three levels in appendix headers, so we can avoid a lot of calculation that way.
We have a slightly interesting dilemma which is the result of some oddities in the APA style. Articles may have multiple levels of header in them, if they're divided into sections (both the articles I've worked on so far have two levels of header). APA, rather strangely, chooses to style headers based on the number of levels that happen to be present in the article; so, for example, where there are two or three levels, the second level is aligned left, but where there are four levels, the second level is centred, and the third level is left-aligned instead. For full details, see the APA Style Guide section 3.32.
Quite frankly, I think this is astoundingly silly, and so does everyone else I've shown it to. it means that the second level heading in one article may well be styled differently from the second level heading in another article. When we get to five levels, it gets even sillier; an ugly all-caps header is inserted at the top level, pushing all the other levels down, and making that particular article look radically different from others which use fewer levels of heading.
I've never really worked seriously with APA before, so this is new to me. Chicago and MLA seem to have nothing to say about it, other than Chicago's pragmatic assertion that levels of heading are "differentiated by type style and placement" (1.74). It makes for an interesting problem for XSLT and CSS, to say the least!