Open martindholmes opened 1 year ago
In rev 19422 I've added a fix so that we're now correctly handling quote elements that are descendants of cits but are not direct children of cits. This handles the problem cases I was able to find, so this may be all we need to do, but we should look out for any unexpected fallout for a little while.
We now have a problem with the structure cit/quote/quote, where the lowest level quote includes block elements. We need a mechanism for handling this oddity.
It's possible to generate bad HTML by nesting a quote inside a cit, and then nesting a note containing a quote inside that. The sequence is not unreasonable, so we should be able to handle it; look at the templates around ll. 1358ff in xhtml5_templates_tei_module.xsl to see if we can do a better job of this. There are rather too many instances of
quote[ancestor::cit]
that should perhaps bequote[parent::cit]
.