Sonnet 1609 tweaks
Posted by mholmes on 11 Aug 2009 in Activity log
Uploaded the latest 1609 Sonnet, and then validated the HTML (not the XML, which is fine). There were three errors, which I worked through and fixed:
- There was a
<fw>
(page number 7) tag inside a<head>
element, which is fine in TEI but ends up generating a<div>
inside an<h2>
in the HTML. I think the page number actually belongs outside the<head>
tag anyway, so I've just moved it one level up into the containing (TEI)<div>
, which solves the problem. - The page 11 number had the same problem, fixed in the same way.
- My decision yesterday to include the
<figure>
element inside the<l>
element to handle a floating image alongside the run of lines resulted in a<div>
inside a<span>
, which is of course silly. Since it's pretty clear that the only place to put the<figure>
tag is inside the<l>
element, because the TEI schema precludes its appearing between line elements in a line-group, and in this case the line-group is clearly coherent (in other words we can't close the<lg>
and open a new one to allow a place for the<figure>
tag), I need to change my rendering code so that the<figure>
tag doesn't come out as a<div>
in this context. I found I had already added a similar exception to handle figure elements inside head tags, so I added another clause to deal with this situation. The HTML now validates, and I've uploaded my changes to the xml file to the server location for LSPW.
This entry was posted by Martin and filed under Activity log.