File: atom.xsd

package info (click to toggle)
quantum 2012.1-5%2Bdeb70u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,028 kB
  • sloc: python: 19,594; xml: 2,611; sh: 485; makefile: 105
file content (105 lines) | stat: -rw-r--r-- 4,477 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../xslt/schema.xslt"?>

<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified"
           targetNamespace="http://www.w3.org/2005/Atom"
           xmlns:html="http://www.w3.org/1999/xhtml"
           xmlns:atom="http://www.w3.org/2005/Atom"
           xmlns:xsdxt="http://docs.rackspacecloud.com/xsd-ext/v1.0"
           xmlns:xml="http://www.w3.org/XML/1998/namespace"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xsdxt:base="../..">

    <xs:annotation>
        <xs:appinfo
            xml:lang="EN"
            xmlns="http://www.w3.org/1999/xhtml">
            <xsdxt:title>Atom Link</xsdxt:title>
        </xs:appinfo>
        <xs:documentation
            xml:lang="EN"
            xmlns="http://www.w3.org/1999/xhtml">
            <p>
                This schema file simple defines an atom link according
                to <a
                href="http://tools.ietf.org/html/rfc4287">RFC4287</a>
            </p>
        </xs:documentation>
    </xs:annotation>

    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>

    <!-- Common Link Relations -->
    <xs:simpleType name="relation">
        <xs:restriction base="xs:string">
            <xs:enumeration value="alternate" />
            <xs:enumeration value="appendix" />
            <xs:enumeration value="archives" />
            <xs:enumeration value="author" />
            <xs:enumeration value="bookmark" />
            <xs:enumeration value="chapter" />
            <xs:enumeration value="contents" />
            <xs:enumeration value="copyright" />
            <xs:enumeration value="current" />
            <xs:enumeration value="describedby" />
            <xs:enumeration value="edit" />
            <xs:enumeration value="edit-media" />
            <xs:enumeration value="first" />
            <xs:enumeration value="glossary" />
            <xs:enumeration value="help" />
            <xs:enumeration value="hub" />
            <xs:enumeration value="icon" />
            <xs:enumeration value="index" />
            <xs:enumeration value="last" />
            <xs:enumeration value="latest-version" />
            <xs:enumeration value="license" />
            <xs:enumeration value="monitor" />
            <xs:enumeration value="monitor-group" />
            <xs:enumeration value="next" />
            <xs:enumeration value="next-arvhice" />
            <xs:enumeration value="nofollow" />
            <xs:enumeration value="payment" />
            <xs:enumeration value="predecessor-version" />
            <xs:enumeration value="prefetch" />
            <xs:enumeration value="prev" />
            <xs:enumeration value="previous" />
            <xs:enumeration value="prev-archive" />
            <xs:enumeration value="replies" />
            <xs:enumeration value="search" />
            <xs:enumeration value="section" />
            <xs:enumeration value="self" />
            <xs:enumeration value="service" />
            <xs:enumeration value="start" />
            <xs:enumeration value="stylesheet" />
            <xs:enumeration value="subsection" />
            <xs:enumeration value="successor-version" />
            <xs:enumeration value="up" />
            <xs:enumeration value="version-history" />
            <xs:enumeration value="via" />
            <xs:enumeration value="working-copy" />
            <xs:enumeration value="working-copy-of" />
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="extRelation">
        <xs:union memberTypes="atom:relation xs:string"/>
    </xs:simpleType>

    <xs:element name="link" type="atom:link" />

    <xs:complexType name="link">
        <xs:annotation>
            <xs:documentation>
                <html:p>See section 3.4 of the ATOM RFC <html:a href="http://tools.ietf.org/html/rfc4287">RFC4287</html:a></html:p>
            </xs:documentation>
        </xs:annotation>

        <xs:attribute name="rel" use="required" type="atom:extRelation" />
        <xs:attribute name="type" use="optional" type="xs:string" />
        <xs:attribute name="href" use="required" type="xs:anyURI" />
        <xs:attribute name="hreflang" use="optional" type="xs:NMTOKEN" />
        <xs:attribute name="title" use="optional" type="xs:string" />
        <xs:attribute ref="xml:base" />
        <xs:attribute ref="xml:lang" />
    </xs:complexType>
</xs:schema>