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