#61 <figure> should be allowed inside <trailer>


Converting these EEBO Holinshed texts throws up what I think is a bug.

They have a paragraph, which ends, followed by a <trailer>FINIS</trailer> followed by a:
<figure rend="block">
<figDesc>printer's or publisher's device</figDesc>

But <figure> is not allowed inside <trailer>. <graphic/> is allowed, but provides no way to supply a description. (Why doesn't <graphic/> allow a <desc> child? Presumably because in those cases you should use <figure>?)

<trailer> allows macro.phraseSeq which doesn't contain model.inter which is what provides <figure> to the likes of a <p> since model.inter is allowed in macro.paraContent. Sebastian notes that <table> may suffer from the same problem, and that if <formula> is allowed, then <table> should be since one could use a table in a phrase-level context.

Suggested solution:

1) Change content model of <trailer> to be macro.paraContent, or explicitly allow <figure> inside it. Another possibility would be to change figure to make it model.graphicLike so it would appear anywhere a graphic could...but that might have other unforeseen effects. Maybe needs more thinking out, but one should be able to provide a figure with a figDesc in or after a trailer.
2) Allow a <desc/> child of <graphic>. One should never be able to provide a graphic without the possibility of something from which to generate @alt text in HTML.



  • Lou Burnard

    Lou Burnard - 2008-12-09
    • milestone: --> 871214
  • Lou Burnard

    Lou Burnard - 2009-03-14

    See also #2607768 -- clearly the distinction between <figure> and <graphic> needs more discussion.

  • Lou Burnard

    Lou Burnard - 2009-03-22

    I am closing this because once #2607768 is implemented, figure will be globally available, and therefore also available inside <trailer>

  • Lou Burnard

    Lou Burnard - 2009-03-22
    • milestone: 871214 --> GREEN
    • status: open --> closed