xref: /aoo42x/main/xmloff/dtd/datastyl.mod (revision cabbd591)
1<!--***********************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 ***********************************************************-->
21
22
23
24<!-- data styles -->
25<!ENTITY % any-number "( number:number | number:scientific-number | number:fraction )">
26<!ENTITY % number-style-content "( (number:text,(%any-number;,number:text?)?) | (%any-number;,number:text?) )">
27<!ELEMENT number:number-style ( style:properties?, %number-style-content;, style:map* )>
28<!ELEMENT number:number ( number:embedded-text* )>
29<!ELEMENT number:scientific-number EMPTY>
30<!ELEMENT number:fraction EMPTY>
31
32<!ELEMENT number:embedded-text (#PCDATA)>
33<!ATTLIST number:embedded-text number:position %integer; #REQUIRED>
34
35<!ENTITY % currency-symbol-and-text "number:currency-symbol,number:text?">
36<!ENTITY % number-and-text "number:number,number:text?">
37<!ENTITY % currency-symbol-and-number "((%number-and-text;),(%currency-symbol-and-text;)?) | ((%currency-symbol-and-text;),(%number-and-text;)?)">
38<!ENTITY % currency-style-content "number:text?, (%currency-symbol-and-number;)?">
39
40<!ELEMENT number:currency-style ( style:properties?, (%currency-style-content;), style:map* )>
41<!ELEMENT number:currency-symbol (#PCDATA)>
42<!ATTLIST number:currency-symbol number:language CDATA #IMPLIED>
43<!ATTLIST number:currency-symbol number:country CDATA #IMPLIED>
44
45<!ENTITY % percentage-style-content "( (number:text,(%number-and-text;)?) | (%number-and-text;) )">
46<!ELEMENT number:percentage-style ( style:properties?, %percentage-style-content;, style:map* )>
47
48<!ENTITY % any-date "( number:day | number:month | number:year | number:era | number:day-of-week | number:week-of-year | number:quarter| number:hours | number:am-pm | number:minutes | number:seconds )">
49<!ENTITY % date-style-content "( (number:text,(%any-date;,number:text?)+) | (%any-date;,number:text?)+ )">
50<!ELEMENT number:date-style ( style:properties?, %date-style-content;, style:map* )>
51<!ELEMENT number:day EMPTY>
52<!ATTLIST number:day number:style (short|long) "short">
53<!ATTLIST number:day number:calendar CDATA #IMPLIED>
54<!ELEMENT number:month EMPTY>
55<!ATTLIST number:month number:textual %boolean; "false">
56<!ATTLIST number:month number:style (short|long) "short">
57<!ATTLIST number:month number:calendar CDATA #IMPLIED>
58<!ELEMENT number:year EMPTY>
59<!ATTLIST number:year number:style (short|long) "short">
60<!ATTLIST number:year number:calendar CDATA #IMPLIED>
61<!ELEMENT number:era EMPTY>
62<!ATTLIST number:era number:style (short|long) "short">
63<!ATTLIST number:era number:calendar CDATA #IMPLIED>
64<!ELEMENT number:day-of-week EMPTY>
65<!ATTLIST number:day-of-week number:style (short|long) "short">
66<!ATTLIST number:day-of-week number:calendar CDATA #IMPLIED>
67<!ELEMENT number:week-of-year EMPTY>
68<!ATTLIST number:week-of-year number:calendar CDATA #IMPLIED>
69<!ELEMENT number:quarter EMPTY>
70<!ATTLIST number:quarter number:style (short|long) "short">
71<!ATTLIST number:quarter number:calendar CDATA #IMPLIED>
72
73<!ENTITY % any-time "( number:hours | number:am-pm | number:minutes | number:seconds )">
74<!ENTITY % time-style-content "( (number:text,(%any-time;,number:text?)+) | (%any-time;,number:text?)+)">
75<!ELEMENT number:time-style ( style:properties?, %time-style-content;, style:map* )>
76<!ELEMENT number:hours EMPTY>
77<!ATTLIST number:hours number:style (short|long) "short">
78<!ELEMENT number:minutes EMPTY>
79<!ATTLIST number:minutes number:style (short|long) "short">
80<!ELEMENT number:seconds EMPTY>
81<!ATTLIST number:seconds number:style (short|long) "short">
82<!ATTLIST number:seconds number:decimal-places %integer; "0">
83<!ELEMENT number:am-pm EMPTY>
84
85<!ENTITY % boolean-style-content "( (number:text,(number:boolean,number:text?)?) | (number:boolean,number:text?) )">
86<!ELEMENT number:boolean-style ( style:properties?,%boolean-style-content;, style:map* )>
87<!ELEMENT number:boolean EMPTY>
88
89<!ENTITY % text-style-content "( (number:text,(number:text-content,number:text?)?) | (number:text-content,number:text?) )">
90<!ELEMENT number:text-style ( style:properties?,%text-style-content;, style:map* )>
91<!ELEMENT number:text (#PCDATA)>
92<!ELEMENT number:text-content EMPTY>
93
94<!ATTLIST number:number-style style:name %styleName; #REQUIRED>
95<!ATTLIST number:currency-style style:name %styleName; #REQUIRED>
96<!ATTLIST number:percentage-style style:name %styleName; #REQUIRED>
97<!ATTLIST number:date-style style:name %styleName; #REQUIRED>
98<!ATTLIST number:time-style style:name %styleName; #REQUIRED>
99<!ATTLIST number:boolean-style style:name %styleName; #REQUIRED>
100<!ATTLIST number:text-style style:name %styleName; #REQUIRED>
101
102<!-- The style:family is redundant and therefor should not exist at all -->
103<!-- Since OOo 1.0/1.1 is exporting this attribute is is an #IMPLIED    -->
104<!-- one to avoid validation errors.                                    -->
105<!ATTLIST number:number-style style:family CDATA #IMPLIED>
106<!ATTLIST number:currency-style style:family CDATA #IMPLIED>
107<!ATTLIST number:percentage-style style:family CDATA #IMPLIED>
108<!ATTLIST number:date-style style:family CDATA #IMPLIED>
109<!ATTLIST number:time-style style:family CDATA #IMPLIED>
110<!ATTLIST number:boolean-style style:family CDATA #IMPLIED>
111<!ATTLIST number:text-style style:family CDATA #IMPLIED>
112
113<!ATTLIST number:number-style number:language CDATA #IMPLIED>
114<!ATTLIST number:currency-style number:language CDATA #IMPLIED>
115<!ATTLIST number:percentage-style number:language CDATA #IMPLIED>
116<!ATTLIST number:date-style number:language CDATA #IMPLIED>
117<!ATTLIST number:time-style number:language CDATA #IMPLIED>
118<!ATTLIST number:boolean-style number:language CDATA #IMPLIED>
119<!ATTLIST number:text-style number:language CDATA #IMPLIED>
120
121<!ATTLIST number:number-style number:country CDATA #IMPLIED>
122<!ATTLIST number:currency-style number:country CDATA #IMPLIED>
123<!ATTLIST number:percentage-style number:country CDATA #IMPLIED>
124<!ATTLIST number:date-style number:country CDATA #IMPLIED>
125<!ATTLIST number:time-style number:country CDATA #IMPLIED>
126<!ATTLIST number:boolean-style number:country CDATA #IMPLIED>
127<!ATTLIST number:text-style number:country CDATA #IMPLIED>
128
129<!ATTLIST number:number-style number:title CDATA #IMPLIED>
130<!ATTLIST number:currency-style number:title CDATA #IMPLIED>
131<!ATTLIST number:percentage-style number:title CDATA #IMPLIED>
132<!ATTLIST number:date-style number:title CDATA #IMPLIED>
133<!ATTLIST number:time-style number:title CDATA #IMPLIED>
134<!ATTLIST number:boolean-style number:title CDATA #IMPLIED>
135<!ATTLIST number:text-style number:title CDATA #IMPLIED>
136
137<!ATTLIST number:number-style style:volatile %boolean; #IMPLIED>
138<!ATTLIST number:currency-style style:volatile %boolean; #IMPLIED>
139<!ATTLIST number:percentage-style style:volatile %boolean; #IMPLIED>
140<!ATTLIST number:date-style style:volatile %boolean; #IMPLIED>
141<!ATTLIST number:time-style style:volatile %boolean; #IMPLIED>
142<!ATTLIST number:boolean-style style:volatile %boolean; #IMPLIED>
143<!ATTLIST number:text-style style:volatile %boolean; #IMPLIED>
144
145<!ATTLIST number:number-style number:transliteration-format CDATA "1">
146<!ATTLIST number:currency-style number:transliteration-format CDATA "1">
147<!ATTLIST number:percentage-style number:transliteration-format CDATA "1">
148<!ATTLIST number:date-style number:transliteration-format CDATA "1">
149<!ATTLIST number:time-style number:transliteration-format CDATA "1">
150<!ATTLIST number:boolean-style number:transliteration-format CDATA "1">
151<!ATTLIST number:text-style number:transliteration-format CDATA "1">
152
153<!ATTLIST number:number-style number:transliteration-language CDATA #IMPLIED>
154<!ATTLIST number:currency-style number:transliteration-language CDATA #IMPLIED>
155<!ATTLIST number:percentage-style number:transliteration-language CDATA #IMPLIED>
156<!ATTLIST number:date-style number:transliteration-language CDATA #IMPLIED>
157<!ATTLIST number:time-style number:transliteration-language CDATA #IMPLIED>
158<!ATTLIST number:boolean-style number:transliteration-language CDATA #IMPLIED>
159<!ATTLIST number:text-style number:transliteration-language CDATA #IMPLIED>
160
161<!ATTLIST number:number-style number:transliteration-country CDATA #IMPLIED>
162<!ATTLIST number:currency-style number:transliteration-country CDATA #IMPLIED>
163<!ATTLIST number:percentage-style number:transliteration-country CDATA #IMPLIED>
164<!ATTLIST number:date-style number:transliteration-country CDATA #IMPLIED>
165<!ATTLIST number:time-style number:transliteration-country CDATA #IMPLIED>
166<!ATTLIST number:boolean-style number:transliteration-country CDATA #IMPLIED>
167<!ATTLIST number:text-style number:transliteration-country CDATA #IMPLIED>
168
169<!ATTLIST number:number-style number:transliteration-style (short|medium|long) "short">
170<!ATTLIST number:currency-style number:transliteration-style (short|medium|long) "short">
171<!ATTLIST number:percentage-style number:transliteration-style (short|medium|long) "short">
172<!ATTLIST number:date-style number:transliteration-style (short|medium|long) "short">
173<!ATTLIST number:time-style number:transliteration-style (short|medium|long) "short">
174<!ATTLIST number:boolean-style number:transliteration-style (short|medium|long) "short">
175<!ATTLIST number:text-style number:transliteration-style (short|medium|long) "short">
176
177<!ATTLIST number:currency-style number:automatic-order %boolean; "false">
178<!ATTLIST number:date-style number:automatic-order %boolean; "false">
179
180<!ATTLIST number:date-style number:format-source (fixed|language) "fixed">
181<!ATTLIST number:time-style number:format-source (fixed|language) "fixed">
182
183<!ATTLIST number:time-style number:truncate-on-overflow %boolean; "true">
184
185<!ATTLIST number:number number:decimal-places %integer; #IMPLIED>
186<!ATTLIST number:scientific-number number:decimal-places %integer; #IMPLIED>
187
188<!ATTLIST number:number number:min-integer-digits %integer; #IMPLIED>
189<!ATTLIST number:scientific-number number:min-integer-digits %integer; #IMPLIED>
190<!ATTLIST number:fraction number:min-integer-digits %integer; #IMPLIED>
191
192<!ATTLIST number:number number:grouping %boolean; "false">
193<!ATTLIST number:scientific-number number:grouping %boolean; "false">
194<!ATTLIST number:fraction number:grouping %boolean; "false">
195
196<!ATTLIST number:number number:decimal-replacement CDATA #IMPLIED>
197
198<!ATTLIST number:number number:display-factor %float; "1">
199
200<!ATTLIST number:scientific-number number:min-exponent-digits %integer; #IMPLIED>
201
202<!ATTLIST number:fraction number:min-numerator-digits %integer; #IMPLIED>
203
204<!ATTLIST number:fraction number:min-denominator-digits %integer; #IMPLIED>
205