prof3.rng 2.39 KB
Newer Older
cazenave's avatar
cazenave committed
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
<?xml version='1.0' encoding='utf-8' standalone='no'?>
<rng:grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
  xmlns:rng="http://relaxng.org/ns/structure/1.0"
  xmlns:seda="fr:gouv:culture:archivesdefrance:seda:v2.1" xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="fr:gouv:culture:archivesdefrance:seda:v2.1"
  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
  ns="fr:gouv:culture:archivesdefrance:seda:v2.1">
  <rng:start>
    <rng:element name="ArchiveTransfer">

      <rng:optional>
        <rng:attribute name="id">
          <rng:data type="ID"/>
        </rng:attribute>
      </rng:optional>    
      <rng:zeroOrMore>
        <rng:element name="ArchiveUnit">
          <rng:attribute name="id" seda:profid="id294404">
            <rng:data type="ID"/>
          </rng:attribute>
              <rng:element name="ArchiveUnitRefId" a:defaultValue="id386134">
                <rng:data type="NCName"/>
              </rng:element>
        </rng:element>
      </rng:zeroOrMore>


      <!-- ArchiveTransfer / ArchivalAgency -->
      <rng:element name="ArchivalAgency">
        <rng:element name="Identifier">
          <rng:value>Identifier4</rng:value>
        </rng:element>
      </rng:element>
      <!-- ArchiveTransfer /TransferringAgency -->
      <rng:element name="TransferringAgency">
        <rng:element name="Identifier">
          <rng:value>Identifier5</rng:value>
        </rng:element>
      </rng:element>
    </rng:element>
  </rng:start>


  <rng:define name="any_content">
    <rng:interleave>
      <rng:zeroOrMore>
        <rng:ref name="any_element"/>
      </rng:zeroOrMore>
      <rng:text/>
    </rng:interleave>
  </rng:define>
  <rng:define name="any_element">
    <rng:element>
      <rng:anyName/>
      <rng:ref name="any_attributes"/>
      
      <rng:zeroOrMore>
        <rng:ref name="any_content"/>
      </rng:zeroOrMore>
    </rng:element>
  </rng:define>
  <rng:define name="any_attributes">
    <rng:zeroOrMore>
      <rng:attribute>
        <rng:anyName/>
      </rng:attribute>
    </rng:zeroOrMore>
  </rng:define>

  <rng:define name="OpenType">
    <rng:zeroOrMore>
      <rng:element>
        <rng:anyName/>
        <rng:zeroOrMore>
          <rng:attribute>
            <rng:anyName/>
          </rng:attribute>
        </rng:zeroOrMore>
      </rng:element>
    </rng:zeroOrMore>
  </rng:define>
</rng:grammar>