Mariage bugfixes
Fixed a couple of issues in the Nuptial mentioned by LSPW in the previous post -- it turns out that the layoutDesc had specified a default setting for text-indent in paragraphs, and although it was correctly being overridden, it turns out that the layoutDesc setting was being inserted into a @style attribute rather than being a class, which and it was being added AFTER the local style information. It strikes me that the layoutDesc data should actually be done with a CSS class, in an inline stylesheet, so that it would always be overridden by the local CSS; I'll have to do that, but for the moment I've just reversed the insertion sequence so that the local style comes later, and therefore overrides the preceding one from layoutDesc.
The bug with the Daumas reference was a problematic one, and puzzling too. The issue was this:
I never anticipated that the footnotes in documents would be calling out to references which are in the central bibliography; the biblio was originally set up for the editorial articles. However, a <note> element in the Sonnet now refers to an item in the biblio. The XQuery is correctly retrieving the biblio item and adding it in a one-item bibliography in a div in the back element (all correct, and what we want); but the XSLT was failing to convert this to output. It was just coming out as plain text, when it should have come out as a bibliographic list containing a single item with an appropriate @xml:id and styling.
I've taken the code which was handling bibliographical items in the editorial articles (in article_p5_to_xhtml.xsl) and adapted it for use in text_p5_to_xhtml.xsl. It took a while to get this working, but now it does -- I was fooled by the @mode="textDoc" setting, which had to be added to the initial template to start the processing of back/div[@type="bibliography" or @type='biblioCentral']. Seems to be working OK now.