Changeset View
Changeset View
Standalone View
Standalone View
docs/specs/swh.xsd
<?xml version="1.0" encoding="iso-8859-1"?> | <?xml version="1.0" encoding="iso-8859-1"?> | ||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||||
targetNamespace="https://www.softwareheritage.org/schema/2018/deposit" | targetNamespace="https://www.softwareheritage.org/schema/2018/deposit" | ||||
xmlns:swh="https://www.softwareheritage.org/schema/2018/deposit" | xmlns:swh="https://www.softwareheritage.org/schema/2018/deposit" | ||||
elementFormDefault="qualified" | elementFormDefault="qualified" | ||||
> | > | ||||
<xsd:element name="deposit"> | <xsd:element name="deposit"> | ||||
<xsd:complexType> | <xsd:complexType> | ||||
<xsd:choice> | <xsd:choice> | ||||
<!-- code deposit on a new origin --> | <!-- code deposit on a new origin --> | ||||
<xsd:element name="create_origin" > | <xsd:element name="create_origin" > | ||||
<xsd:complexType> | <xsd:complexType> | ||||
<xsd:element ref="swh:origin" /> | <xsd:element ref="swh:origin" /> | ||||
</xsd:complexType> | </xsd:complexType> | ||||
</xsd:element> | </xsd:element> | ||||
<!-- code deposit on an origin already created by a previous deposit --> | |||||
<xsd:element name="add_to_origin" > | |||||
<xsd:complexType> | |||||
<xsd:element ref="swh:origin" /> | |||||
</xsd:complexType> | |||||
</xsd:element> | |||||
<!-- metadata-only deposit --> | <!-- metadata-only deposit --> | ||||
<xsd:element name="reference"> | <xsd:element name="reference"> | ||||
<xsd:complexType> | <xsd:complexType> | ||||
<xsd:choice> | <xsd:choice> | ||||
<xsd:element ref="swh:origin" /> | <xsd:element ref="swh:origin" /> | ||||
<xsd:element ref="swh:object" /> | <xsd:element ref="swh:object" /> | ||||
</xsd:choice> | </xsd:choice> | ||||
</xsd:complexType> | </xsd:complexType> | ||||
Show All 34 Lines |