type.rng 3.81 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
    xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
    ns="http://www.utc.fr/ics/hdoc/xhtml">

    <a:documentation>Last update : 2014-12-04</a:documentation>
    <a:documentation>Changes since last update : 
        In order to manage quiz : 
        - Adding multiple-choice-question and fill-in-the-blank to section
        - Adding question, choice-correct, choice-uncorrect and explanation to div
        - Adding blank to span
        - Externalizing ObjectType and VideoType from main schema
    </a:documentation>
    
    <!-- Type Microdata -->
    <define name="SectionType">
        <optional>
            <attribute name="data-hdoc-type">
                <choice>
                    <value>introduction</value>
                    <value>conclusion</value>
                    <value>unit-of-content</value>
                    <value>multiple-choice-question</value>
Esquilax76's avatar
Esquilax76 committed
25
26
27
28
29
30
31
                    <value>fill-in-the-blank</value>
                    <value>division</value>
                    <value>grain</value>
                    <value>exercise</value>
                    <value>activity</value>
                    <value>aims</value>
                    <value>synthesis</value>
Neveux Anais's avatar
Neveux Anais committed
32
                    <value>order</value>
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
                </choice>
            </attribute>
        </optional>
    </define>

    <define name="DivType">
        <optional>
            <attribute name="data-hdoc-type">
                <choice>
                    <!-- block management -->
                    <value>emphasis</value>
                    <value>complement</value>
                    <value>definition</value>
                    <value>example</value>
                    <value>remark</value>
                    <value>warning</value>
                    <value>advice</value> 
50
51
                    <value>remind</value>
                    <value>method</value>
52
53
                    <!-- quiz management -->
                    <value>question</value>
54
55
56
                    <value>singlechoicequestion</value>
                    <value>choice</value>
                    <value>solution</value>
57
58
59
                    <value>choice-correct</value>
                    <value>choice-incorrect</value>
                    <value>explanation</value>
60
61
                    <value>explanation-choice-correct</value>
                    <value>explanation-choice-incorrect</value>
62
63
                    <value>openQuestion</value>
                    <value>hint</value>
Neveux Anais's avatar
Neveux Anais committed
64
                    <value>gapText</value>
Neveux Anais's avatar
Neveux Anais committed
65
                    <value>label</value>
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
                </choice>
            </attribute>
        </optional>
    </define>

    <define name="SpanType">
        <optional>
            <attribute name="data-hdoc-type">
                <choice>
                    <value>syntax</value>
                    <value>latex</value>
                    <!-- quiz management -->
                    <value>blank</value>                    
                </choice>
            </attribute>
        </optional>
    </define>
    
    <define name="ObjectType">
        <attribute name="type">
            <choice>                    
                <value>application/vnd.oasis.opendocument.graphics </value>
                <value>application/vnd.oasis.opendocument.spreadsheet</value>
89
90
                <value>application/pdf</value> 
                <value>application/x-listing</value>
91
92
93
94
95
96
97
98
99
100
101
102
103
104
            </choice>
        </attribute>
    </define>

    <define name="VideoType">
        <attribute name="type">
            <choice>
                <value>video/mp4</value>
                <value>video/ogg</value>
                <value>video/webm</value>
            </choice>
        </attribute>
    </define>
</grammar>