]> Git — Sourcephile - haskell/symantic-xml.git/blob - test/Golden/RelaxNG/Commoning/0002.xml.write
Rewrite to categorical symantic
[haskell/symantic-xml.git] / test / Golden / RelaxNG / Commoning / 0002.xml.write
1 <ns1:commoning xmlns:ns1="2018/commoning.rnc">
2 <ns1:persons>
3 <ns1:person id="julm"/>
4 <ns1:person id="john"/>
5 </ns1:persons>
6 <ns1:opinions>
7 <ns1:grades id="Adhésion">
8 <ns1:grade abbrev="FC" color="black" name="Fortement Contre"/>
9 <ns1:grade abbrev="C" color="red" name="Contre"/>
10 <ns1:grade abbrev="PC" color="orange" name="Plutôt Contre"/>
11 <ns1:grade abbrev="p" color="#888" name="Partagé·e"/>
12 <ns1:grade abbrev="PP" color="#FFD700" name="Plutôt Pour"/>
13 <ns1:grade abbrev="P" color="green" name="Pour"/>
14 <ns1:grade abbrev="FP" color="blue" name="Fortement Pour"/>
15 </ns1:grades>
16 <ns1:grades id="Qualité">
17 <ns1:grade abbrev="TM" color="black" name="Très Mauvais"/>
18 <ns1:grade abbrev="M" color="red" name="Mauvais"/>
19 <ns1:grade abbrev="PM" color="orange" name="Plutôt Mauvais"/>
20 <ns1:grade abbrev="m" color="#888" name="Moyen"/>
21 <ns1:grade abbrev="PB" color="#FFD700" name="Plutôt Bon"/>
22 <ns1:grade abbrev="B" color="green" name="Bon"/>
23 <ns1:grade abbrev="TB" color="blue" name="Très Bon"/>
24 </ns1:grades>
25 <ns1:grades id="Réglementation">
26 <ns1:grade abbrev="NE-PEUT-PAS" color="black" name="Ne peut pas"/>
27 <ns1:grade abbrev="NE-DOIT-PAS" color="red" name="Ne doit pas"/>
28 <ns1:grade abbrev="NE-DEVRAIT-PAS" color="orange" name="Ne devrait pas"/>
29 <ns1:grade abbrev="NON-RÉGLEMENTÉ" color="#888" name="Non-réglementé"/>
30 <ns1:grade abbrev="PEUT" color="#FFD700" name="Peut"/>
31 <ns1:grade abbrev="DEVRAIT" color="green" name="Devrait"/>
32 <ns1:grade abbrev="DOIT" color="blue" name="Doit"/>
33 </ns1:grades>
34 </ns1:opinions>
35 <ns1:groups>
36 <ns1:group id="Public"/>
37 <ns1:group id="Assemblée" name="Assemblée Générale">
38 <ns1:group id="Infra" name="Infrastructure"/>
39 <ns1:group id="Modo" name="Modération"/>
40 </ns1:group>
41 </ns1:groups>
42 <ns1:operations>
43 <ns1:operation id="Écrire">
44 <ns1:operation id="Lire"/>
45 <ns1:operation id="Commenter"/>
46 <ns1:operation id="Proposer"/>
47 <ns1:operation id="Ajouter"/>
48 <ns1:operation id="Modifier"/>
49 <ns1:operation id="Supprimer"/>
50 </ns1:operation>
51 <ns1:operation id="Exécuter"/>
52 <ns1:operation id="Support"/>
53 <ns1:operation id="Modérer"/>
54 </ns1:operations>
55 <ns1:resources>
56 <ns1:resource name="Financières">
57 <ns1:resource name="Compte courant">
58 <ns1:policy by="Finances" operation="Lire">
59 <ns1:rule grade="DOIT" grades="Règlementation"/>
60 </ns1:policy>
61 <ns1:policy by="Administration" operation="Lire">
62 <ns1:rule gradeMin="PEUT" grades="Règlementation"/>
63 </ns1:policy>
64 </ns1:resource>
65 </ns1:resource>
66 <ns1:resource name="Informatique">
67 <ns1:policy by="Infra" operation="Support">
68 <ns1:rule grade="DOIT" grades="Règlementation"/>
69 </ns1:policy>
70 <ns1:resource name="Ordinateurs"/>
71 <ns1:resource name="Service">
72 <ns1:policy by="Infra" operation="AdminSys">
73 <ns1:rule grade="DOIT" grades="Règlementation"/>
74 </ns1:policy>
75 <ns1:policy by="Modo" operation="Modérer">
76 <ns1:rule grade="DOIT" grades="Règlementation"/>
77 </ns1:policy>
78 <ns1:resource name="DNS">
79 <ns1:policy by="Public" operation="Lire">
80 <ns1:rule grade="PEUT" grades="Règlementation"/>
81 </ns1:policy>
82 <ns1:resource name="example.coop"/>
83 </ns1:resource>
84 </ns1:resource>
85 <ns1:resource name="Logiciels">
86 <ns1:policy by="Public" operation="Lire">
87 <ns1:rule grade="PEUT" grades="Règlementation"/>
88 </ns1:policy>
89 <ns1:policy by="Public" operation="Commenter">
90 <ns1:rule grade="PEUT" grades="Règlementation"/>
91 </ns1:policy>
92 </ns1:resource>
93 </ns1:resource>
94 </ns1:resources>
95 </ns1:commoning>