-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxdiff.xsd
80 lines (64 loc) · 2.42 KB
/
xdiff.xsd
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
<?xml version='1.0' encoding='UTF-8'?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.coremedia.com/2015/xdiff"
xmlns:xdiff="http://www.coremedia.com/2015/xdiff">
<xs:annotation>
<xs:documentation><![CDATA[
This schema document provides attribute declarations and
attribute group, complex type and simple type definitions which can be used
to annotate changes.
]]>
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:element name="span">
<xs:complexType>
<xs:sequence>
<xs:any minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="xdiff:id" use="required"/>
<xs:attribute ref="xdiff:previous" use="optional"/>
<xs:attribute ref="xdiff:next" use="optional"/>
<xs:attribute ref="xdiff:changeType" use="optional"/>
<xs:attribute ref="xdiff:changes" use="optional"/>
</xs:complexType>
</xs:element>
<xs:attribute name="id" type="xdiff:idType"/>
<xs:simpleType name="idType">
<xs:annotation>
<xs:documentation>ID of current diff</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:ID"/>
</xs:simpleType>
<xs:attribute name="class" type="xdiff:classType"/>
<xs:simpleType name="classType">
<xs:annotation>
<xs:documentation>the class of change</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:NMTOKENS"/>
</xs:simpleType>
<xs:attribute name="previous" type="xdiff:previousType"/>
<xs:simpleType name="previousType">
<xs:annotation>
<xs:documentation>ID of previous diff</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:ID"/>
</xs:simpleType>
<xs:attribute name="changeType" type="xdiff:changeTypeType"/>
<xs:simpleType name="changeTypeType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:attribute name="next" type="xdiff:nextType"/>
<xs:simpleType name="nextType">
<xs:annotation>
<xs:documentation>ID of next diff</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:ID"/>
</xs:simpleType>
<xs:attribute name="changes" type="xdiff:changesType"/>
<xs:simpleType name="changesType">
<xs:annotation>
<xs:documentation>descriptive list of changes</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>