Created
September 11, 2012 14:47
-
-
Save eddies/3699296 to your computer and use it in GitHub Desktop.
Sample schema for rightsMetadata (not authoritative)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1" xmlns:v1="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1"> | |
<xs:element name="rightsMetadata"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="v1:copyright"/> | |
<xs:element maxOccurs="unbounded" ref="v1:access"/> | |
<xs:element ref="v1:use"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="copyright"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element maxOccurs="unbounded" ref="v1:human"/> | |
<xs:element ref="v1:machine"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="access"> | |
<xs:complexType> | |
<xs:sequence minOccurs="0"> | |
<xs:element ref="v1:human"/> | |
<xs:element ref="v1:machine"/> | |
</xs:sequence> | |
<xs:attribute name="type" use="required" type="xs:NCName"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="use"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="v1:human"/> | |
<xs:element ref="v1:machine"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="human"> | |
<xs:complexType mixed="true"> | |
<xs:attribute name="type" type="xs:NCName"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="machine"> | |
<xs:complexType mixed="true"> | |
<xs:choice minOccurs="0" maxOccurs="unbounded"> | |
<xs:element ref="v1:a"/> | |
<xs:element ref="v1:br"/> | |
<xs:element ref="v1:group"/> | |
<xs:element ref="v1:person"/> | |
<xs:element ref="v1:policy"/> | |
<xs:element ref="v1:span"/> | |
</xs:choice> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="a"> | |
<xs:complexType mixed="true"> | |
<xs:sequence> | |
<xs:element minOccurs="0" maxOccurs="unbounded" ref="v1:img"/> | |
</xs:sequence> | |
<xs:attribute name="href" use="required" type="xs:anyURI"/> | |
<xs:attribute name="rel" use="required" type="xs:NCName"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="img"> | |
<xs:complexType> | |
<xs:attribute name="alt" use="required"/> | |
<xs:attribute name="src" use="required" type="xs:anyURI"/> | |
<xs:attribute name="style" use="required" type="xs:NMTOKEN"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="br"> | |
<xs:complexType/> | |
</xs:element> | |
<xs:element name="group" type="xs:NCName"/> | |
<xs:element name="person" type="xs:NCName"/> | |
<xs:element name="policy" type="xs:NMTOKEN"/> | |
<xs:element name="span"> | |
<xs:complexType> | |
<xs:simpleContent> | |
<xs:extension base="xs:NCName"> | |
<xs:attribute name="href" use="required" type="xs:anyURI"/> | |
<xs:attribute name="rel" use="required" type="xs:NMTOKEN"/> | |
</xs:extension> | |
</xs:simpleContent> | |
</xs:complexType> | |
</xs:element> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment