TEIC / TEI

The Text Encoding Initiative Guidelines
https://www.tei-c.org
Other
269 stars 88 forks source link

abide by “`<content>` has 1 and only 1 child” rule, step 1 #2412

Closed sydb closed 1 year ago

sydb commented 1 year ago

This PR addresses #2411 by wrapping the content of <content> elements that have 2+ child elements in either <rng:div> or <sequence> in Exemplars and a Test/ file that is used by make test.

NOTE: There are still 7 files in Test/ that have 1 or more <content> elements that have 2 or more child elements:

 Test/test-newodd.xml: 10
 Test/testdocbook3.odd: 1
 Test/testdocbook2.odd: 1
 Test/testnym.odd: 1
 Test/testdocbook1.odd: 1
 Test/testdocbook5.odd: 1
 Test/testdocbook4.odd: 3

However, it seems these are not executed by make test, and thus will not affect the build. Thus, for now I have not changed them. If & when this PR is merged & closed the ticket should remain open so that those other files can be repaired.