plazi / ggxml2taxpub

Conversion of GoldenGATE XML to JATS/TaxPub at treatment level
0 stars 1 forks source link

section headings causing errors in article conversion #54

Closed tcatapano closed 1 year ago

tcatapano commented 1 year ago

In JATS the <sec> element must start with a <label> or a <title> element. The markup for headings in the ggxml is sometimes complex, so its likely to cause errors on output, especially if there is no heading at all under a paragraph.

myrmoteras commented 1 year ago

There are in fact many <Sec> in out treatments without a <label> because they vary depending on the semantics of each paragraph. However, each of the <sec> has a <type> attribute that could be use to create such a <label>?

tcatapano commented 1 year ago

This has been fixed in https://github.com/plazi/ggxml2taxpub/commit/fa60f64f9f2143f41b250967d57ea645a1ca7ac2 Closing.