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 ( number:embedded-text* )> 29cdf0e10cSrcweir<!ELEMENT number:scientific-number EMPTY> 30cdf0e10cSrcweir<!ELEMENT number:fraction EMPTY> 31cdf0e10cSrcweir 32cdf0e10cSrcweir<!ELEMENT number:embedded-text (#PCDATA)> 33cdf0e10cSrcweir<!ATTLIST number:embedded-text number:position %integer; #REQUIRED> 34cdf0e10cSrcweir 35cdf0e10cSrcweir<!ENTITY % currency-symbol-and-text "number:currency-symbol,number:text?"> 36cdf0e10cSrcweir<!ENTITY % number-and-text "number:number,number:text?"> 37cdf0e10cSrcweir<!ENTITY % currency-symbol-and-number "((%number-and-text;),(%currency-symbol-and-text;)?) | ((%currency-symbol-and-text;),(%number-and-text;)?)"> 38cdf0e10cSrcweir<!ENTITY % currency-style-content "number:text?, (%currency-symbol-and-number;)?"> 39cdf0e10cSrcweir 40cdf0e10cSrcweir<!ELEMENT number:currency-style ( style:properties?, (%currency-style-content;), style:map* )> 41cdf0e10cSrcweir<!ELEMENT number:currency-symbol (#PCDATA)> 42cdf0e10cSrcweir<!ATTLIST number:currency-symbol number:language CDATA #IMPLIED> 43cdf0e10cSrcweir<!ATTLIST number:currency-symbol number:country CDATA #IMPLIED> 44cdf0e10cSrcweir 45cdf0e10cSrcweir<!ENTITY % percentage-style-content "( (number:text,(%number-and-text;)?) | (%number-and-text;) )"> 46cdf0e10cSrcweir<!ELEMENT number:percentage-style ( style:properties?, %percentage-style-content;, style:map* )> 47cdf0e10cSrcweir 48cdf0e10cSrcweir<!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 )"> 49cdf0e10cSrcweir<!ENTITY % date-style-content "( (number:text,(%any-date;,number:text?)+) | (%any-date;,number:text?)+ )"> 50cdf0e10cSrcweir<!ELEMENT number:date-style ( style:properties?, %date-style-content;, style:map* )> 51cdf0e10cSrcweir<!ELEMENT number:day EMPTY> 52cdf0e10cSrcweir<!ATTLIST number:day number:style (short|long) "short"> 53cdf0e10cSrcweir<!ATTLIST number:day number:calendar CDATA #IMPLIED> 54cdf0e10cSrcweir<!ELEMENT number:month EMPTY> 55cdf0e10cSrcweir<!ATTLIST number:month number:textual %boolean; "false"> 56cdf0e10cSrcweir<!ATTLIST number:month number:style (short|long) "short"> 57cdf0e10cSrcweir<!ATTLIST number:month number:calendar CDATA #IMPLIED> 58cdf0e10cSrcweir<!ELEMENT number:year EMPTY> 59cdf0e10cSrcweir<!ATTLIST number:year number:style (short|long) "short"> 60cdf0e10cSrcweir<!ATTLIST number:year number:calendar CDATA #IMPLIED> 61cdf0e10cSrcweir<!ELEMENT number:era EMPTY> 62cdf0e10cSrcweir<!ATTLIST number:era number:style (short|long) "short"> 63cdf0e10cSrcweir<!ATTLIST number:era number:calendar CDATA #IMPLIED> 64cdf0e10cSrcweir<!ELEMENT number:day-of-week EMPTY> 65cdf0e10cSrcweir<!ATTLIST number:day-of-week number:style (short|long) "short"> 66cdf0e10cSrcweir<!ATTLIST number:day-of-week number:calendar CDATA #IMPLIED> 67cdf0e10cSrcweir<!ELEMENT number:week-of-year EMPTY> 68cdf0e10cSrcweir<!ATTLIST number:week-of-year number:calendar CDATA #IMPLIED> 69cdf0e10cSrcweir<!ELEMENT number:quarter EMPTY> 70cdf0e10cSrcweir<!ATTLIST number:quarter number:style (short|long) "short"> 71cdf0e10cSrcweir<!ATTLIST number:quarter number:calendar CDATA #IMPLIED> 72cdf0e10cSrcweir 73cdf0e10cSrcweir<!ENTITY % any-time "( number:hours | number:am-pm | number:minutes | number:seconds )"> 74cdf0e10cSrcweir<!ENTITY % time-style-content "( (number:text,(%any-time;,number:text?)+) | (%any-time;,number:text?)+)"> 75cdf0e10cSrcweir<!ELEMENT number:time-style ( style:properties?, %time-style-content;, style:map* )> 76cdf0e10cSrcweir<!ELEMENT number:hours EMPTY> 77cdf0e10cSrcweir<!ATTLIST number:hours number:style (short|long) "short"> 78cdf0e10cSrcweir<!ELEMENT number:minutes EMPTY> 79cdf0e10cSrcweir<!ATTLIST number:minutes number:style (short|long) "short"> 80cdf0e10cSrcweir<!ELEMENT number:seconds EMPTY> 81cdf0e10cSrcweir<!ATTLIST number:seconds number:style (short|long) "short"> 82cdf0e10cSrcweir<!ATTLIST number:seconds number:decimal-places %integer; "0"> 83cdf0e10cSrcweir<!ELEMENT number:am-pm EMPTY> 84cdf0e10cSrcweir 85cdf0e10cSrcweir<!ENTITY % boolean-style-content "( (number:text,(number:boolean,number:text?)?) | (number:boolean,number:text?) )"> 86cdf0e10cSrcweir<!ELEMENT number:boolean-style ( style:properties?,%boolean-style-content;, style:map* )> 87cdf0e10cSrcweir<!ELEMENT number:boolean EMPTY> 88cdf0e10cSrcweir 89cdf0e10cSrcweir<!ENTITY % text-style-content "( (number:text,(number:text-content,number:text?)?) | (number:text-content,number:text?) )"> 90cdf0e10cSrcweir<!ELEMENT number:text-style ( style:properties?,%text-style-content;, style:map* )> 91cdf0e10cSrcweir<!ELEMENT number:text (#PCDATA)> 92cdf0e10cSrcweir<!ELEMENT number:text-content EMPTY> 93cdf0e10cSrcweir 94cdf0e10cSrcweir<!ATTLIST number:number-style style:name %styleName; #REQUIRED> 95cdf0e10cSrcweir<!ATTLIST number:currency-style style:name %styleName; #REQUIRED> 96cdf0e10cSrcweir<!ATTLIST number:percentage-style style:name %styleName; #REQUIRED> 97cdf0e10cSrcweir<!ATTLIST number:date-style style:name %styleName; #REQUIRED> 98cdf0e10cSrcweir<!ATTLIST number:time-style style:name %styleName; #REQUIRED> 99cdf0e10cSrcweir<!ATTLIST number:boolean-style style:name %styleName; #REQUIRED> 100cdf0e10cSrcweir<!ATTLIST number:text-style style:name %styleName; #REQUIRED> 101cdf0e10cSrcweir 102cdf0e10cSrcweir<!-- The style:family is redundant and therefor should not exist at all --> 103cdf0e10cSrcweir<!-- Since OOo 1.0/1.1 is exporting this attribute is is an #IMPLIED --> 104cdf0e10cSrcweir<!-- one to avoid validation errors. --> 105cdf0e10cSrcweir<!ATTLIST number:number-style style:family CDATA #IMPLIED> 106cdf0e10cSrcweir<!ATTLIST number:currency-style style:family CDATA #IMPLIED> 107cdf0e10cSrcweir<!ATTLIST number:percentage-style style:family CDATA #IMPLIED> 108cdf0e10cSrcweir<!ATTLIST number:date-style style:family CDATA #IMPLIED> 109cdf0e10cSrcweir<!ATTLIST number:time-style style:family CDATA #IMPLIED> 110cdf0e10cSrcweir<!ATTLIST number:boolean-style style:family CDATA #IMPLIED> 111cdf0e10cSrcweir<!ATTLIST number:text-style style:family CDATA #IMPLIED> 112cdf0e10cSrcweir 113cdf0e10cSrcweir<!ATTLIST number:number-style number:language CDATA #IMPLIED> 114cdf0e10cSrcweir<!ATTLIST number:currency-style number:language CDATA #IMPLIED> 115cdf0e10cSrcweir<!ATTLIST number:percentage-style number:language CDATA #IMPLIED> 116cdf0e10cSrcweir<!ATTLIST number:date-style number:language CDATA #IMPLIED> 117cdf0e10cSrcweir<!ATTLIST number:time-style number:language CDATA #IMPLIED> 118cdf0e10cSrcweir<!ATTLIST number:boolean-style number:language CDATA #IMPLIED> 119cdf0e10cSrcweir<!ATTLIST number:text-style number:language CDATA #IMPLIED> 120cdf0e10cSrcweir 121cdf0e10cSrcweir<!ATTLIST number:number-style number:country CDATA #IMPLIED> 122cdf0e10cSrcweir<!ATTLIST number:currency-style number:country CDATA #IMPLIED> 123cdf0e10cSrcweir<!ATTLIST number:percentage-style number:country CDATA #IMPLIED> 124cdf0e10cSrcweir<!ATTLIST number:date-style number:country CDATA #IMPLIED> 125cdf0e10cSrcweir<!ATTLIST number:time-style number:country CDATA #IMPLIED> 126cdf0e10cSrcweir<!ATTLIST number:boolean-style number:country CDATA #IMPLIED> 127cdf0e10cSrcweir<!ATTLIST number:text-style number:country CDATA #IMPLIED> 128cdf0e10cSrcweir 129cdf0e10cSrcweir<!ATTLIST number:number-style number:title CDATA #IMPLIED> 130cdf0e10cSrcweir<!ATTLIST number:currency-style number:title CDATA #IMPLIED> 131cdf0e10cSrcweir<!ATTLIST number:percentage-style number:title CDATA #IMPLIED> 132cdf0e10cSrcweir<!ATTLIST number:date-style number:title CDATA #IMPLIED> 133cdf0e10cSrcweir<!ATTLIST number:time-style number:title CDATA #IMPLIED> 134cdf0e10cSrcweir<!ATTLIST number:boolean-style number:title CDATA #IMPLIED> 135cdf0e10cSrcweir<!ATTLIST number:text-style number:title CDATA #IMPLIED> 136cdf0e10cSrcweir 137cdf0e10cSrcweir<!ATTLIST number:number-style style:volatile %boolean; #IMPLIED> 138cdf0e10cSrcweir<!ATTLIST number:currency-style style:volatile %boolean; #IMPLIED> 139cdf0e10cSrcweir<!ATTLIST number:percentage-style style:volatile %boolean; #IMPLIED> 140cdf0e10cSrcweir<!ATTLIST number:date-style style:volatile %boolean; #IMPLIED> 141cdf0e10cSrcweir<!ATTLIST number:time-style style:volatile %boolean; #IMPLIED> 142cdf0e10cSrcweir<!ATTLIST number:boolean-style style:volatile %boolean; #IMPLIED> 143cdf0e10cSrcweir<!ATTLIST number:text-style style:volatile %boolean; #IMPLIED> 144cdf0e10cSrcweir 145cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-format CDATA "1"> 146cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-format CDATA "1"> 147cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-format CDATA "1"> 148cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-format CDATA "1"> 149cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-format CDATA "1"> 150cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-format CDATA "1"> 151cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-format CDATA "1"> 152cdf0e10cSrcweir 153cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-language CDATA #IMPLIED> 154cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-language CDATA #IMPLIED> 155cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-language CDATA #IMPLIED> 156cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-language CDATA #IMPLIED> 157cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-language CDATA #IMPLIED> 158cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-language CDATA #IMPLIED> 159cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-language CDATA #IMPLIED> 160cdf0e10cSrcweir 161cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-country CDATA #IMPLIED> 162cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-country CDATA #IMPLIED> 163cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-country CDATA #IMPLIED> 164cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-country CDATA #IMPLIED> 165cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-country CDATA #IMPLIED> 166cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-country CDATA #IMPLIED> 167cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-country CDATA #IMPLIED> 168cdf0e10cSrcweir 169cdf0e10cSrcweir<!ATTLIST number:number-style number:transliteration-style (short|medium|long) "short"> 170cdf0e10cSrcweir<!ATTLIST number:currency-style number:transliteration-style (short|medium|long) "short"> 171cdf0e10cSrcweir<!ATTLIST number:percentage-style number:transliteration-style (short|medium|long) "short"> 172cdf0e10cSrcweir<!ATTLIST number:date-style number:transliteration-style (short|medium|long) "short"> 173cdf0e10cSrcweir<!ATTLIST number:time-style number:transliteration-style (short|medium|long) "short"> 174cdf0e10cSrcweir<!ATTLIST number:boolean-style number:transliteration-style (short|medium|long) "short"> 175cdf0e10cSrcweir<!ATTLIST number:text-style number:transliteration-style (short|medium|long) "short"> 176cdf0e10cSrcweir 177cdf0e10cSrcweir<!ATTLIST number:currency-style number:automatic-order %boolean; "false"> 178cdf0e10cSrcweir<!ATTLIST number:date-style number:automatic-order %boolean; "false"> 179cdf0e10cSrcweir 180cdf0e10cSrcweir<!ATTLIST number:date-style number:format-source (fixed|language) "fixed"> 181cdf0e10cSrcweir<!ATTLIST number:time-style number:format-source (fixed|language) "fixed"> 182cdf0e10cSrcweir 183cdf0e10cSrcweir<!ATTLIST number:time-style number:truncate-on-overflow %boolean; "true"> 184cdf0e10cSrcweir 185cdf0e10cSrcweir<!ATTLIST number:number number:decimal-places %integer; #IMPLIED> 186cdf0e10cSrcweir<!ATTLIST number:scientific-number number:decimal-places %integer; #IMPLIED> 187cdf0e10cSrcweir 188cdf0e10cSrcweir<!ATTLIST number:number number:min-integer-digits %integer; #IMPLIED> 189cdf0e10cSrcweir<!ATTLIST number:scientific-number number:min-integer-digits %integer; #IMPLIED> 190cdf0e10cSrcweir<!ATTLIST number:fraction number:min-integer-digits %integer; #IMPLIED> 191cdf0e10cSrcweir 192cdf0e10cSrcweir<!ATTLIST number:number number:grouping %boolean; "false"> 193cdf0e10cSrcweir<!ATTLIST number:scientific-number number:grouping %boolean; "false"> 194cdf0e10cSrcweir<!ATTLIST number:fraction number:grouping %boolean; "false"> 195cdf0e10cSrcweir 196cdf0e10cSrcweir<!ATTLIST number:number number:decimal-replacement CDATA #IMPLIED> 197cdf0e10cSrcweir 198cdf0e10cSrcweir<!ATTLIST number:number number:display-factor %float; "1"> 199cdf0e10cSrcweir 200cdf0e10cSrcweir<!ATTLIST number:scientific-number number:min-exponent-digits %integer; #IMPLIED> 201cdf0e10cSrcweir 202cdf0e10cSrcweir<!ATTLIST number:fraction number:min-numerator-digits %integer; #IMPLIED> 203cdf0e10cSrcweir 204cdf0e10cSrcweir<!ATTLIST number:fraction number:min-denominator-digits %integer; #IMPLIED> 205