From the schema, the order is strict:

    <xs:complexType name="workCT">

        <xs:sequence>

            <xs:element name="title" type="titleCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="contributor" type="contributorCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="creator" type="creatorCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="subject" type="subjectCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="date" type="dateCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="description" type="descriptionCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="publisher" type="publisherCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="type" type="typeCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="format" type="formatCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="identifier" type="identifierCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="source" type="sourceCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="language" type="languageCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="relation" type="relationCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="coverage" type="coverageCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="rights" type="rightsCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="scope" type="scopeCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="castList" type="castListCT" minOccurs="0" maxOccurs="unbounded"/>

            <xs:element name="teiHeader" type="teiHeaderCT" minOccurs="0"/>

            <xs:element name="refSystem" type="refSystemCT" minOccurs="0" maxOccurs="unbounded"/>

        </xs:sequence>

        <xs:attribute name="osisWork" type="osisWorkType" use="required"/>

        <xs:attributeGroup ref="globalWithType"/>

    </xs:complexType>

David


On 6/2/2018 1:22 PM, Peter von Kaehne wrote:
On Sat, 2018-06-02 at 18:13 +0100, Peter von Kaehne wrote:
According to the OSIS handbook <date> is a valid tag within a work
section within the header of an OSIS file. And yet validating an OSIS
file with a date element will fail. Is there something wrong with our
scheme?
I just realised that the actual order of elements in the header is of
relevance. Re-jigging the order will make the file validate.

Thanks!

Peter


_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to