#408 div content model does not permit just figure and closer


in EEBO A02519, there is a plausible-looking <div> like this:
<div type="frontispiece">
<figure rend="block">....

but this is illegal, because <div> mandates at least one member of model.common once you get started.

Fixing this will be hard, because of non-deterministic content model issues in DTD and XSD, but I can't see any reason why this should be not allowed.


  • Sebastian Rahtz

    Sebastian Rahtz - 2012-06-04

    Fixing this will be well hard, I realize, because of element which occur in both top and bottom of a div. Without some forced intermediate elements, the top and bottom elements fight with each other. Ugh.

  • James Cummings

    James Cummings - 2012-06-29
    • assigned_to: nobody --> louburnard
  • Lou Burnard

    Lou Burnard - 2012-07-05

    This is not just "well hard" , it's unsolvable without either revising the content model of <div> to allow promiscuity of divtop, divbot, and common elements. or moving figure out of model.global and into model.common. Neither of these seems desirable. I suggest that <figure rend="block"> ... </figure> should really be encoded as <ab><figure> .. </figure></ab>

  • Lou Burnard

    Lou Burnard - 2012-07-05
    • status: open --> open-wont-fix
  • Lou Burnard

    Lou Burnard - 2012-09-05
    • milestone: --> GREEN
  • Sebastian Rahtz

    Sebastian Rahtz - 2012-09-06

    I am closing this. I agree, its too hard, and its just as easy to bang an <ab> or <p> around the figure for the few occasions this happens.

  • Sebastian Rahtz

    Sebastian Rahtz - 2012-09-06
    • status: open-wont-fix --> closed-wont-fix