forked from unicode-org/message-format-wg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
registry.dtd
72 lines (61 loc) · 1.76 KB
/
registry.dtd
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
<!--
This DTD is not part of the LDML45 Tech Preview of MessageFormat 2.
Comments on this DTD are welcome.
-->
<!ELEMENT registry (function|validationRule)*>
<!ATTLIST registry
xml:lang NMTOKEN #IMPLIED
>
<!ELEMENT function (description+,(formatSignature|matchSignature|alias)+)>
<!ATTLIST function
name NMTOKEN #REQUIRED
>
<!ELEMENT description (#PCDATA)>
<!ATTLIST description
xml:lang NMTOKEN #IMPLIED
>
<!ELEMENT validationRule EMPTY>
<!ATTLIST validationRule
id ID #REQUIRED
regex CDATA #REQUIRED
>
<!ELEMENT formatSignature (input?,option*,override*)>
<!ATTLIST formatSignature
position (open|close|standalone) "standalone"
>
<!ELEMENT matchSignature (input?,option*,match*,override*)>
<!ELEMENT input (description*)>
<!ATTLIST input
values NMTOKENS #IMPLIED
validationRule IDREF #IMPLIED
readonly (true|false) "false"
>
<!ELEMENT option (description*)>
<!ATTLIST option
name NMTOKEN #REQUIRED
values NMTOKENS #IMPLIED
default NMTOKEN #IMPLIED
validationRule IDREF #IMPLIED
required (true|false) "false"
readonly (true|false) "false"
>
<!ELEMENT match EMPTY>
<!ATTLIST match
locales NMTOKENS #IMPLIED
values NMTOKENS #IMPLIED
validationRule IDREF #IMPLIED
>
<!ELEMENT override (input?,option*)>
<!ATTLIST override
locales NMTOKENS #REQUIRED
>
<!ELEMENT alias (description,setOption*,override*)>
<!ATTLIST alias
name NMTOKEN #REQUIRED
supports (format|match|all) "all"
>
<!ELEMENT setOption EMPTY>
<!ATTLIST setOption
name NMTOKEN #REQUIRED
value CDATA #REQUIRED
>