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