Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/xsd/codemeta.xsd
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||||
targetNamespace="https://doi.org/10.5063/SCHEMA/CODEMETA-2.0" | targetNamespace="https://doi.org/10.5063/SCHEMA/CODEMETA-2.0" | ||||
xmlns:codemeta="https://doi.org/10.5063/SCHEMA/CODEMETA-2.0" | xmlns:codemeta="https://doi.org/10.5063/SCHEMA/CODEMETA-2.0" | ||||
elementFormDefault="qualified" | elementFormDefault="qualified" | ||||
> | > | ||||
<!-- This is a non-exhaustive schema used to find likely errors in XML-encoded | <!-- This is a non-exhaustive schema used to find likely errors in XML-encoded | ||||
Codemeta documents --> | Codemeta documents --> | ||||
<!-- technically, only Date is allowed for datePublished; but we allow DateTime | |||||
for backward compatibility with old swh-deposit versions --> | |||||
<xsd:element name="datePublished" type="codemeta:DateOrDateTime" /> | <xsd:element name="datePublished" type="codemeta:DateOrDateTime" /> | ||||
<xsd:element name="dateCreated" type="codemeta:DateOrDateTime" /> | <xsd:element name="dateCreated" type="codemeta:DateOrDateTime" /> | ||||
<xsd:element name="dateModified" type="codemeta:DateOrDateTime" /> | |||||
<xsd:simpleType name="DateOrDateTime"> | <xsd:simpleType name="DateOrDateTime"> | ||||
<xsd:union memberTypes="xsd:date xsd:dateTime"/> | <xsd:union memberTypes="xsd:date xsd:dateTime"/> | ||||
</xsd:simpleType> | </xsd:simpleType> | ||||
</xsd:schema> | </xsd:schema> |