projectLEMDO / lemdoIssues

Repository for LEMDO issue tracking and related documents.
MIT License
1 stars 0 forks source link

Need to look closely at how blockquotes are processed #185

Open martindholmes opened 1 year ago

martindholmes commented 1 year ago

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 be quote[parent::cit].

martindholmes commented 3 weeks 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.

martindholmes commented 3 weeks ago

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.