| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<schema xmlns="http://www.w3.org/2001/XMLSchema" |
| 3 |
elementFormDefault="qualified" |
| 4 |
targetNamespace="http://www.w3.org/2005/Atom" |
| 5 |
xmlns:atom="http://www.w3.org/2005/Atom" version="1.0.0"> |
| 6 |
|
| 7 |
<annotation> |
| 8 |
<appinfo>atom-author-link.xsd 2008-01-23</appinfo> |
| 9 |
<documentation>There is no official atom XSD. This XSD is created based on: |
| 10 |
http://atompub.org/2005/08/17/atom.rnc. A subset of Atom as used in the |
| 11 |
ogckml22.xsd is defined here. </documentation> |
| 12 |
</annotation> |
| 13 |
|
| 14 |
|
| 15 |
<complexType name="atomPersonConstruct"> |
| 16 |
<choice minOccurs="0" maxOccurs="unbounded"> |
| 17 |
<element ref="atom:name"/> |
| 18 |
<element ref="atom:uri"/> |
| 19 |
<element ref="atom:email"/> |
| 20 |
</choice> |
| 21 |
</complexType> |
| 22 |
|
| 23 |
<element name="name" type="string"/> |
| 24 |
<element name="uri" type="string"/> |
| 25 |
<element name="email" type="atom:atomEmailAddress"/> |
| 26 |
|
| 27 |
|
| 28 |
<element name="author" type="atom:atomPersonConstruct"/> |
| 29 |
|
| 30 |
|
| 31 |
<element name="link"> |
| 32 |
<complexType> |
| 33 |
|
| 34 |
<attribute name="href" use="required"/> |
| 35 |
<attribute name="rel"/> |
| 36 |
<attribute name="type" type="atom:atomMediaType"/> |
| 37 |
<attribute name="hreflang" type="atom:atomLanguageTag"/> |
| 38 |
<attribute name="title"/> |
| 39 |
<attribute name="length"/> |
| 40 |
|
| 41 |
</complexType> |
| 42 |
|
| 43 |
</element> |
| 44 |
|
| 45 |
|
| 46 |
<simpleType name="atomMediaType"> |
| 47 |
<restriction base="string"> |
| 48 |
<pattern value=".+/.+"/> |
| 49 |
</restriction> |
| 50 |
</simpleType> |
| 51 |
|
| 52 |
|
| 53 |
<simpleType name="atomLanguageTag"> |
| 54 |
<restriction base="string"> |
| 55 |
<pattern value="[A-Za-z]{1,8}(-[A-Za-z0-9]{1,8})*"/> |
| 56 |
</restriction> |
| 57 |
</simpleType> |
| 58 |
|
| 59 |
|
| 60 |
<simpleType name="atomEmailAddress"> |
| 61 |
<restriction base="string"> |
| 62 |
<pattern value=".+@.+"/> |
| 63 |
</restriction> |
| 64 |
</simpleType> |
| 65 |
|
| 66 |
</schema> |