Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124000
D7241.id26300.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D7241.id26300.diff
View Options
diff --git a/docs/specs/swh.xsd b/docs/specs/swh.xsd
--- a/docs/specs/swh.xsd
+++ b/docs/specs/swh.xsd
@@ -6,48 +6,54 @@
>
<xsd:element name="deposit">
<xsd:complexType>
- <xsd:sequence>
- <xsd:complexType>
- <xsd:choice>
- <!-- code deposit on a new origin -->
- <xsd:element name="create_origin" >
- <xsd:complexType>
- <xsd:element ref="swh:origin" />
- </xsd:complexType>
- </xsd:element>
+ <xsd:all>
+ <!-- note that "create_origin", "add_to_origin", and "reference" are
+ mutually exclusive -->
- <!-- 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>
+ <!-- code deposit on a new origin -->
+ <xsd:element name="create_origin" minOccurs="0">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element ref="swh:origin" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
- <!-- metadata-only deposit -->
- <xsd:element name="reference">
- <xsd:complexType>
- <xsd:choice>
- <xsd:element ref="swh:origin" />
- <xsd:element ref="swh:object" />
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
+ <!-- code deposit on an origin already created by a previous deposit -->
+ <xsd:element name="add_to_origin" minOccurs="0">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element ref="swh:origin" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
- </xsd:choice>
- </xsd:complexType>
+ <!-- metadata-only deposit -->
+ <xsd:element name="reference" minOccurs="0">
+ <xsd:complexType>
+ <xsd:choice>
+ <xsd:element ref="swh:origin" />
+ <xsd:element ref="swh:object" />
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
- <xsd:element name="metadata-provenance" minOccurs="0" maxOccurs="1" >
- <xsd:any />
+ <xsd:element name="metadata-provenance" minOccurs="0">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
+ </xsd:sequence>
+ </xsd:complexType>
</xsd:element>
- </xsd:sequence>
+ </xsd:all>
</xsd:complexType>
</xsd:element>
<!-- references a SWHID -->
<xsd:element name="object">
<xsd:complexType>
- <xsd:attribute type="xsd:string" name="swhid"/>
+ <xsd:attribute type="xsd:string" name="swhid"/>
</xsd:complexType>
</xsd:element>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 20 2024, 8:58 AM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221075
Attached To
D7241: Fix swh.xsd
Event Timeline
Log In to Comment