Digital-Humanities-Quarterly / dhq-journal

DHQ is an open-access, peer-reviewed journal of digital humanities.
http://www.digitalhumanities.org/dhq/
10 stars 5 forks source link

Enable `<ptr>` to go inside `<figure>` #21

Open juliaflanders opened 1 year ago

sydb commented 7 months ago

The only 2 cases of a <figure> that has a <ptr> child are in articles/000652/000652.xml, and in each case there are only 2 children of <figure>: 1st, a <ptr> (with type="dhq-annex-embed") and 2nd a <head>.

So I am planning to change the content model of <figure> to

(
  ( dhq_ptr, dhq_head? )
  |
  ( dhq_head?, ( dhq_figDesc | dhq_model.graphicLike | dhq_figure )* )
)

Note that there are a lot of <ptr> descendants of <figure>, which are all also descendants of the <figure>’s child <head>:

    205  figure/head/ptr
      7  figure/head/note/ptr
      6  figure/head/note/p/ptr
      4  figure/head/cit/ptr
      2  figure/head/list/item/ptr
      2  figure/ptr                  # these are currently invalid, I presume we want them to be valid
      1  figure/head/note/p/cit/ptr
juliaflanders commented 5 months ago

This all sounds good to me!