type.rng 3.88 KB
Newer Older
1 2 3 4 5 6 7
<?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>
8 9
    <a:documentation>Changes since last update :
        In order to manage quiz :
10 11 12 13 14
        - 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>
15

16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
    <!-- 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>
                    <value>fill-in-the-blank</value>
                    <value>division</value>
                    <value>grain</value>
                    <value>exercise</value>
                    <value>activity</value>
                    <value>aims</value>
                    <value>synthesis</value>
32 33 34
                    <value>order</value>
                    <value>match</value>
                    <value>group</value>
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
                </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>
51 52 53
                    <value>advice</value>
                    <value>remind</value>
                    <value>method</value>
54 55
                    <!-- quiz management -->
                    <value>question</value>
56 57 58
                    <value>singlechoicequestion</value>
                    <value>choice</value>
                    <value>solution</value>
59 60 61 62 63
                    <value>choice-correct</value>
                    <value>choice-incorrect</value>
                    <value>explanation</value>
                    <value>explanation-choice-correct</value>
                    <value>explanation-choice-incorrect</value>
64 65 66 67 68
                    <value>openQuestion</value>
                    <value>hint</value>
                    <value>gapText</value>
                    <value>label</value>
                    <value>target</value>
69 70 71 72 73 74 75 76 77 78 79 80
                </choice>
            </attribute>
        </optional>
    </define>

    <define name="SpanType">
        <optional>
            <attribute name="data-hdoc-type">
                <choice>
                    <value>syntax</value>
                    <value>latex</value>
                    <!-- quiz management -->
81
                    <value>blank</value>
82 83 84 85
                </choice>
            </attribute>
        </optional>
    </define>
86

87 88
    <define name="ObjectType">
        <attribute name="type">
89
            <choice>
90 91
                <value>application/vnd.oasis.opendocument.graphics </value>
                <value>application/vnd.oasis.opendocument.spreadsheet</value>
92
                <value>application/pdf</value>
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
                <value>application/x-listing</value>
            </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>