Skip to content

Content Model of TEI element #240

@dasch124

Description

@dasch124

The problem reported in issue #66 has popped up for us again: With the quite lax definition/polymorphy of the <TEI> element's content model, we run into generating non-deterministic XSD schemas again:

 <xs:element name="TEI">
      <xs:complexType>
         <xs:sequence>
            <xs:element ref="tei:teiHeader"/>
            <xs:choice>
               <xs:sequence>
                  <xs:element maxOccurs="unbounded" ref="tei:model.resource"/>
                  <xs:element minOccurs="0" maxOccurs="unbounded" ref="tei:TEI"/>
               </xs:sequence>
               <xs:element maxOccurs="unbounded" ref="tei:TEI"/>
            </xs:choice>
    ... 
</xs:element>

While I understand the need for great flexibility for TEI All, I wonder whether Lex0 shouldn't strive to enforce a more coherent macro structure across its instances? If not (and if it's important to keep the definition in line with TEI All), then we can easily restrict this on our side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions