Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

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

GREEN
closed-wont-fix
Lou Burnard
None
5
2012-09-06
2012-06-04
Sebastian Rahtz
No

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

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.

Discussion

  • 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
     
  • 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.

     
    • status: open-wont-fix --> closed-wont-fix