Made some progress in preparing the system for the new look:
- Wrote a replacement for
index.xq
calledbiblio.xq
. This creates a TEI document with a<listBibl>
element in the header, containing all the<biblStruct>
and<bibl>
elements, acting as a formal index for the collection. - Added new code to
index.xsl
, to process this data into the TOC. - In the process, discovered a big hole in the metadata: all the documents drawn from Cabinet Satyrique share a single XIncluded file containing a
<listBibl>
with two<biblStructs>
, but naturally this is the metadata for the collection; it doesn't include the title etc. of the extracted document. Using the doca_une_femme_mariee.xml
, I began working on a solution. - This revealed a big flaw in eXist's XInclude code. It ONLY handles fragment identifiers when they're encoded in a way which is explicitly banned by the W3C; it doesn't handle them correctly when they're encoded correctly.
- To get around this, I broke up the
cab_sat_sourceDesc.xml
into three separate little files, and XIncluded each of those in the right place. That now seems to work fora_une_femme_mariee.xml
. - Next I need to port that fix to the other documents that use the XInclude. Adding that as a task.