TOC processing and multi-text files
Posted by mholmes on 04 Sep 2012 in Activity log
I've rewritten the TOC code so that it can cope with both the old <group>
structure and a simpler setup based on <div>
nesting. I've also converted all of the files in /info/
that were using multiple <text>
elements so that they use only one <text>
with nested <div>
s. All of these are now rendering OK, and the old <group>
-based pages elsewhere are also still rendering with TOCs while the team decides what to do about them. We can leave any pages that actually need multiple <text>
elements alone if we want to, but any we do change will now get working TOCs.
I also have a handy XSLT tranformation that can turn a <group>
-based document into a single-<text>
document automatically, so conversions don't have to be done manually.
div[@type='placeInfo']/head
from the rendering of the locations pages, so those pages are only getting one title, and it's taken from teiHeader/fileDesc/titleStmt/title
. CB having some problems with those <head>
elements at one point.