xref: /aoo41x/main/xmloff/dtd/datastyl.mod (revision cdf0e10c)
1*cdf0e10cSrcweir<!--
2*cdf0e10cSrcweir
3*cdf0e10cSrcweir  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir
5*cdf0e10cSrcweir  Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir
7*cdf0e10cSrcweir  OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir
9*cdf0e10cSrcweir  This file is part of OpenOffice.org.
10*cdf0e10cSrcweir
11*cdf0e10cSrcweir  OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir
15*cdf0e10cSrcweir  OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir
21*cdf0e10cSrcweir  You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir
26*cdf0e10cSrcweir-->
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir<!-- data styles -->
29*cdf0e10cSrcweir<!ENTITY % any-number "( number:number | number:scientific-number | number:fraction )">
30*cdf0e10cSrcweir<!ENTITY % number-style-content "( (number:text,(%any-number;,number:text?)?) | (%any-number;,number:text?) )">
31*cdf0e10cSrcweir<!ELEMENT number:number-style ( style:properties?, %number-style-content;, style:map* )>
32*cdf0e10cSrcweir<!ELEMENT number:number ( number:embedded-text* )>
33*cdf0e10cSrcweir<!ELEMENT number:scientific-number EMPTY>
34*cdf0e10cSrcweir<!ELEMENT number:fraction EMPTY>
35*cdf0e10cSrcweir
36*cdf0e10cSrcweir<!ELEMENT number:embedded-text (#PCDATA)>
37*cdf0e10cSrcweir<!ATTLIST number:embedded-text number:position %integer; #REQUIRED>
38*cdf0e10cSrcweir
39*cdf0e10cSrcweir<!ENTITY % currency-symbol-and-text "number:currency-symbol,number:text?">
40*cdf0e10cSrcweir<!ENTITY % number-and-text "number:number,number:text?">
41*cdf0e10cSrcweir<!ENTITY % currency-symbol-and-number "((%number-and-text;),(%currency-symbol-and-text;)?) | ((%currency-symbol-and-text;),(%number-and-text;)?)">
42*cdf0e10cSrcweir<!ENTITY % currency-style-content "number:text?, (%currency-symbol-and-number;)?">
43*cdf0e10cSrcweir
44*cdf0e10cSrcweir<!ELEMENT number:currency-style ( style:properties?, (%currency-style-content;), style:map* )>
45*cdf0e10cSrcweir<!ELEMENT number:currency-symbol (#PCDATA)>
46*cdf0e10cSrcweir<!ATTLIST number:currency-symbol number:language CDATA #IMPLIED>
47*cdf0e10cSrcweir<!ATTLIST number:currency-symbol number:country CDATA #IMPLIED>
48*cdf0e10cSrcweir
49*cdf0e10cSrcweir<!ENTITY % percentage-style-content "( (number:text,(%number-and-text;)?) | (%number-and-text;) )">
50*cdf0e10cSrcweir<!ELEMENT number:percentage-style ( style:properties?, %percentage-style-content;, style:map* )>
51*cdf0e10cSrcweir
52*cdf0e10cSrcweir<!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 )">
53*cdf0e10cSrcweir<!ENTITY % date-style-content "( (number:text,(%any-date;,number:text?)+) | (%any-date;,number:text?)+ )">
54*cdf0e10cSrcweir<!ELEMENT number:date-style ( style:properties?, %date-style-content;, style:map* )>
55*cdf0e10cSrcweir<!ELEMENT number:day EMPTY>
56*cdf0e10cSrcweir<!ATTLIST number:day number:style (short|long) "short">
57*cdf0e10cSrcweir<!ATTLIST number:day number:calendar CDATA #IMPLIED>
58*cdf0e10cSrcweir<!ELEMENT number:month EMPTY>
59*cdf0e10cSrcweir<!ATTLIST number:month number:textual %boolean; "false">
60*cdf0e10cSrcweir<!ATTLIST number:month number:style (short|long) "short">
61*cdf0e10cSrcweir<!ATTLIST number:month number:calendar CDATA #IMPLIED>
62*cdf0e10cSrcweir<!ELEMENT number:year EMPTY>
63*cdf0e10cSrcweir<!ATTLIST number:year number:style (short|long) "short">
64*cdf0e10cSrcweir<!ATTLIST number:year number:calendar CDATA #IMPLIED>
65*cdf0e10cSrcweir<!ELEMENT number:era EMPTY>
66*cdf0e10cSrcweir<!ATTLIST number:era number:style (short|long) "short">
67*cdf0e10cSrcweir<!ATTLIST number:era number:calendar CDATA #IMPLIED>
68*cdf0e10cSrcweir<!ELEMENT number:day-of-week EMPTY>
69*cdf0e10cSrcweir<!ATTLIST number:day-of-week number:style (short|long) "short">
70*cdf0e10cSrcweir<!ATTLIST number:day-of-week number:calendar CDATA #IMPLIED>
71*cdf0e10cSrcweir<!ELEMENT number:week-of-year EMPTY>
72*cdf0e10cSrcweir<!ATTLIST number:week-of-year number:calendar CDATA #IMPLIED>
73*cdf0e10cSrcweir<!ELEMENT number:quarter EMPTY>
74*cdf0e10cSrcweir<!ATTLIST number:quarter number:style (short|long) "short">
75*cdf0e10cSrcweir<!ATTLIST number:quarter number:calendar CDATA #IMPLIED>
76*cdf0e10cSrcweir
77*cdf0e10cSrcweir<!ENTITY % any-time "( number:hours | number:am-pm | number:minutes | number:seconds )">
78*cdf0e10cSrcweir<!ENTITY % time-style-content "( (number:text,(%any-time;,number:text?)+) | (%any-time;,number:text?)+)">
79*cdf0e10cSrcweir<!ELEMENT number:time-style ( style:properties?, %time-style-content;, style:map* )>
80*cdf0e10cSrcweir<!ELEMENT number:hours EMPTY>
81*cdf0e10cSrcweir<!ATTLIST number:hours number:style (short|long) "short">
82*cdf0e10cSrcweir<!ELEMENT number:minutes EMPTY>
83*cdf0e10cSrcweir<!ATTLIST number:minutes number:style (short|long) "short">
84*cdf0e10cSrcweir<!ELEMENT number:seconds EMPTY>
85*cdf0e10cSrcweir<!ATTLIST number:seconds number:style (short|long) "short">
86*cdf0e10cSrcweir<!ATTLIST number:seconds number:decimal-places %integer; "0">
87*cdf0e10cSrcweir<!ELEMENT number:am-pm EMPTY>
88*cdf0e10cSrcweir
89*cdf0e10cSrcweir<!ENTITY % boolean-style-content "( (number:text,(number:boolean,number:text?)?) | (number:boolean,number:text?) )">
90*cdf0e10cSrcweir<!ELEMENT number:boolean-style ( style:properties?,%boolean-style-content;, style:map* )>
91*cdf0e10cSrcweir<!ELEMENT number:boolean EMPTY>
92*cdf0e10cSrcweir
93*cdf0e10cSrcweir<!ENTITY % text-style-content "( (number:text,(number:text-content,number:text?)?) | (number:text-content,number:text?) )">
94*cdf0e10cSrcweir<!ELEMENT number:text-style ( style:properties?,%text-style-content;, style:map* )>
95*cdf0e10cSrcweir<!ELEMENT number:text (#PCDATA)>
96*cdf0e10cSrcweir<!ELEMENT number:text-content EMPTY>
97*cdf0e10cSrcweir
98*cdf0e10cSrcweir<!ATTLIST number:number-style style:name %styleName; #REQUIRED>
99*cdf0e10cSrcweir<!ATTLIST number:currency-style style:name %styleName; #REQUIRED>
100*cdf0e10cSrcweir<!ATTLIST number:percentage-style style:name %styleName; #REQUIRED>
101*cdf0e10cSrcweir<!ATTLIST number:date-style style:name %styleName; #REQUIRED>
102*cdf0e10cSrcweir<!ATTLIST number:time-style style:name %styleName; #REQUIRED>
103*cdf0e10cSrcweir<!ATTLIST number:boolean-style style:name %styleName; #REQUIRED>
104*cdf0e10cSrcweir<!ATTLIST number:text-style style:name %styleName; #REQUIRED>
105*cdf0e10cSrcweir
106*cdf0e10cSrcweir<!-- The style:family is redundant and therefor should not exist at all -->
107*cdf0e10cSrcweir<!-- Since OOo 1.0/1.1 is exporting this attribute is is an #IMPLIED    -->
108*cdf0e10cSrcweir<!-- one to avoid validation errors.                                    -->
109*cdf0e10cSrcweir<!ATTLIST number:number-style style:family CDATA #IMPLIED>
110*cdf0e10cSrcweir<!ATTLIST number:currency-style style:family CDATA #IMPLIED>
111*cdf0e10cSrcweir<!ATTLIST number:percentage-style style:family CDATA #IMPLIED>
112*cdf0e10cSrcweir<!ATTLIST number:date-style style:family CDATA #IMPLIED>
113*cdf0e10cSrcweir<!ATTLIST number:time-style style:family CDATA #IMPLIED>
114*cdf0e10cSrcweir<!ATTLIST number:boolean-style style:family CDATA #IMPLIED>
115*cdf0e10cSrcweir<!ATTLIST number:text-style style:family CDATA #IMPLIED>
116*cdf0e10cSrcweir
117*cdf0e10cSrcweir<!ATTLIST number:number-style number:language CDATA #IMPLIED>
118*cdf0e10cSrcweir<!ATTLIST number:currency-style number:language CDATA #IMPLIED>
119*cdf0e10cSrcweir<!ATTLIST number:percentage-style number:language CDATA #IMPLIED>
120*cdf0e10cSrcweir<!ATTLIST number:date-style number:language CDATA #IMPLIED>
121*cdf0e10cSrcweir<!ATTLIST number:time-style number:language CDATA #IMPLIED>
122*cdf0e10cSrcweir<!ATTLIST number:boolean-style number:language CDATA #IMPLIED>
123*cdf0e10cSrcweir<!ATTLIST number:text-style number:language CDATA #IMPLIED>
124*cdf0e10cSrcweir
125*cdf0e10cSrcweir<!ATTLIST number:number-style number:country CDATA #IMPLIED>
126*cdf0e10cSrcweir<!ATTLIST number:currency-style number:country CDATA #IMPLIED>
127*cdf0e10cSrcweir<!ATTLIST number:percentage-style number:country CDATA #IMPLIED>
128*cdf0e10cSrcweir<!ATTLIST number:date-style number:country CDATA #IMPLIED>
129*cdf0e10cSrcweir<!ATTLIST number:time-style number:country CDATA #IMPLIED>
130*cdf0e10cSrcweir<!ATTLIST number:boolean-style number:country CDATA #IMPLIED>
131*cdf0e10cSrcweir<!ATTLIST number:text-style number:country CDATA #IMPLIED>
132*cdf0e10cSrcweir
133*cdf0e10cSrcweir<!ATTLIST number:number-style number:title CDATA #IMPLIED>
134*cdf0e10cSrcweir<!ATTLIST number:currency-style number:title CDATA #IMPLIED>
135*cdf0e10cSrcweir<!ATTLIST number:percentage-style number:title CDATA #IMPLIED>
136*cdf0e10cSrcweir<!ATTLIST number:date-style number:title CDATA #IMPLIED>
137*cdf0e10cSrcweir<!ATTLIST number:time-style number:title CDATA #IMPLIED>
138*cdf0e10cSrcweir<!ATTLIST number:boolean-style number:title CDATA #IMPLIED>
139*cdf0e10cSrcweir<!ATTLIST number:text-style number:title CDATA #IMPLIED>
140*cdf0e10cSrcweir
141*cdf0e10cSrcweir<!ATTLIST number:number-style style:volatile %boolean; #IMPLIED>
142*cdf0e10cSrcweir<!ATTLIST number:currency-style style:volatile %boolean; #IMPLIED>
143*cdf0e10cSrcweir<!ATTLIST number:percentage-style style:volatile %boolean; #IMPLIED>
144*cdf0e10cSrcweir<!ATTLIST number:date-style style:volatile %boolean; #IMPLIED>
145*cdf0e10cSrcweir<!ATTLIST number:time-style style:volatile %boolean; #IMPLIED>
146*cdf0e10cSrcweir<!ATTLIST number:boolean-style style:volatile %boolean; #IMPLIED>
147*cdf0e10cSrcweir<!ATTLIST number:text-style style:volatile %boolean; #IMPLIED>
148*cdf0e10cSrcweir
149*cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-format CDATA "1">
150*cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-format CDATA "1">
151*cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-format CDATA "1">
152*cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-format CDATA "1">
153*cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-format CDATA "1">
154*cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-format CDATA "1">
155*cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-format CDATA "1">
156*cdf0e10cSrcweir
157*cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-language CDATA #IMPLIED>
158*cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-language CDATA #IMPLIED>
159*cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-language CDATA #IMPLIED>
160*cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-language CDATA #IMPLIED>
161*cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-language CDATA #IMPLIED>
162*cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-language CDATA #IMPLIED>
163*cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-language CDATA #IMPLIED>
164*cdf0e10cSrcweir
165*cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-country CDATA #IMPLIED>
166*cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-country CDATA #IMPLIED>
167*cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-country CDATA #IMPLIED>
168*cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-country CDATA #IMPLIED>
169*cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-country CDATA #IMPLIED>
170*cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-country CDATA #IMPLIED>
171*cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-country CDATA #IMPLIED>
172*cdf0e10cSrcweir
173*cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-style (short|medium|long) "short">
174*cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-style (short|medium|long) "short">
175*cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-style (short|medium|long) "short">
176*cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-style (short|medium|long) "short">
177*cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-style (short|medium|long) "short">
178*cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-style (short|medium|long) "short">
179*cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-style (short|medium|long) "short">
180*cdf0e10cSrcweir
181*cdf0e10cSrcweir<!ATTLIST number:currency-style number:automatic-order %boolean; "false">
182*cdf0e10cSrcweir<!ATTLIST number:date-style number:automatic-order %boolean; "false">
183*cdf0e10cSrcweir
184*cdf0e10cSrcweir<!ATTLIST number:date-style number:format-source (fixed|language) "fixed">
185*cdf0e10cSrcweir<!ATTLIST number:time-style number:format-source (fixed|language) "fixed">
186*cdf0e10cSrcweir
187*cdf0e10cSrcweir<!ATTLIST number:time-style number:truncate-on-overflow %boolean; "true">
188*cdf0e10cSrcweir
189*cdf0e10cSrcweir<!ATTLIST number:number number:decimal-places %integer; #IMPLIED>
190*cdf0e10cSrcweir<!ATTLIST number:scientific-number number:decimal-places %integer; #IMPLIED>
191*cdf0e10cSrcweir
192*cdf0e10cSrcweir<!ATTLIST number:number number:min-integer-digits %integer; #IMPLIED>
193*cdf0e10cSrcweir<!ATTLIST number:scientific-number number:min-integer-digits %integer; #IMPLIED>
194*cdf0e10cSrcweir<!ATTLIST number:fraction number:min-integer-digits %integer; #IMPLIED>
195*cdf0e10cSrcweir
196*cdf0e10cSrcweir<!ATTLIST number:number number:grouping %boolean; "false">
197*cdf0e10cSrcweir<!ATTLIST number:scientific-number number:grouping %boolean; "false">
198*cdf0e10cSrcweir<!ATTLIST number:fraction number:grouping %boolean; "false">
199*cdf0e10cSrcweir
200*cdf0e10cSrcweir<!ATTLIST number:number number:decimal-replacement CDATA #IMPLIED>
201*cdf0e10cSrcweir
202*cdf0e10cSrcweir<!ATTLIST number:number number:display-factor %float; "1">
203*cdf0e10cSrcweir
204*cdf0e10cSrcweir<!ATTLIST number:scientific-number number:min-exponent-digits %integer; #IMPLIED>
205*cdf0e10cSrcweir
206*cdf0e10cSrcweir<!ATTLIST number:fraction number:min-numerator-digits %integer; #IMPLIED>
207*cdf0e10cSrcweir
208*cdf0e10cSrcweir<!ATTLIST number:fraction number:min-denominator-digits %integer; #IMPLIED>
209