V5_format.xsd 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: rspec
  5. (C) Copyright IBM Corp. 2003, 2017
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  9. <xs:element name="format">
  10. <xs:annotation>
  11. <xs:documentation>Defines a pattern to be appied to data values for presentation to the user for a report item. Text content of any format element is an example of the output generated from this format specification.</xs:documentation>
  12. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#NumericFormatPatterns"/>
  13. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#DateTimeFormatPatterns"/>
  14. </xs:annotation>
  15. <xs:complexType>
  16. <xs:attributeGroup ref="CommonFormatAttributes"/>
  17. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  18. </xs:complexType>
  19. </xs:element>
  20. <xs:element name="stringFormat">
  21. <xs:annotation>
  22. <xs:documentation>Defines the attributes of the general string format.</xs:documentation>
  23. </xs:annotation>
  24. <xs:complexType>
  25. <xs:attributeGroup ref="CommonFormatAttributes"/>
  26. <xs:attribute name="digitShaping">
  27. <xs:annotation>
  28. <xs:documentation>The digit shape or system used for displaying numbers. If omitted, the numbers will be not shaped.</xs:documentation>
  29. </xs:annotation>
  30. <xs:simpleType>
  31. <xs:restriction base="xs:string">
  32. <xs:enumeration value="national">
  33. <xs:annotation>
  34. <xs:documentation>Digits will be shaped according to the locale.</xs:documentation>
  35. </xs:annotation>
  36. </xs:enumeration>
  37. <xs:enumeration value="contextual">
  38. <xs:annotation>
  39. <xs:documentation>The digits are shaped according to the surrounding text.</xs:documentation>
  40. </xs:annotation>
  41. </xs:enumeration>
  42. <xs:enumeration value="none">
  43. <xs:annotation>
  44. <xs:documentation>No digit shaping is performed.</xs:documentation>
  45. </xs:annotation>
  46. </xs:enumeration>
  47. </xs:restriction>
  48. </xs:simpleType>
  49. </xs:attribute>
  50. </xs:complexType>
  51. </xs:element>
  52. <xs:element name="dateFormat">
  53. <xs:annotation>
  54. <xs:documentation>Defines attributes of the general date format.</xs:documentation>
  55. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#DateFormat"/>
  56. </xs:annotation>
  57. <xs:complexType>
  58. <xs:attribute name="whenZero" type="xs:string">
  59. <xs:annotation>
  60. <xs:documentation>Characters to be displayed when date value is zero. If omitted, zeroes are displayed.</xs:documentation>
  61. </xs:annotation>
  62. </xs:attribute>
  63. <xs:attributeGroup ref="CommonFormatAttributes"/>
  64. <xs:attributeGroup ref="CommonDateFormatAttributes"/>
  65. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  66. </xs:complexType>
  67. </xs:element>
  68. <xs:element name="timeFormat">
  69. <xs:annotation>
  70. <xs:documentation>Defines attributes of the general time format.</xs:documentation>
  71. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#TimeFormat"/>
  72. </xs:annotation>
  73. <xs:complexType>
  74. <xs:attribute name="whenZero" type="xs:string">
  75. <xs:annotation>
  76. <xs:documentation>Characters to be displayed when time value is zero. If omitted, zeroes are displayed.</xs:documentation>
  77. </xs:annotation>
  78. </xs:attribute>
  79. <xs:attributeGroup ref="CommonFormatAttributes"/>
  80. <xs:attributeGroup ref="CommonTimeFormatAttributes"/>
  81. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  82. </xs:complexType>
  83. </xs:element>
  84. <xs:element name="dateTimeFormat">
  85. <xs:annotation>
  86. <xs:documentation>Defines attributes of the general date and time format.</xs:documentation>
  87. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#DateTimeFormat"/>
  88. </xs:annotation>
  89. <xs:complexType>
  90. <xs:attribute name="whenZero" type="xs:string">
  91. <xs:annotation>
  92. <xs:documentation>Characters to be displayed when date and time values are zero. If omitted, zeroes are displayed.</xs:documentation>
  93. </xs:annotation>
  94. </xs:attribute>
  95. <xs:attributeGroup ref="CommonFormatAttributes"/>
  96. <xs:attributeGroup ref="CommonDateFormatAttributes"/>
  97. <xs:attributeGroup ref="CommonTimeFormatAttributes"/>
  98. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  99. </xs:complexType>
  100. </xs:element>
  101. <xs:element name="intervalFormat">
  102. <xs:annotation>
  103. <xs:documentation>Days interval value may be converted into days, hours, minutes, seconds, or milliseconds and displayed as a decimal number. On the other hand, the day, hour, minute, second and/or millisecond components of a days interval value may be displayed independently. Months interval is displayed as years and months, delimited by date separator. Formatting a days interval value with months format attributes will result in rendering of whenZero attribute; likewise, a months interval value formatted with days format attributes.</xs:documentation>
  104. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#intervalFormat"/>
  105. </xs:annotation>
  106. <xs:complexType>
  107. <xs:attribute name="units">
  108. <xs:annotation>
  109. <xs:documentation>Describes units of measure for displayed decimal number. This attribute will be ignored if any day or time components are shown. Default value is inherited from user's locale.</xs:documentation>
  110. </xs:annotation>
  111. <xs:simpleType>
  112. <xs:restriction base="xs:string">
  113. <xs:enumeration value="time">
  114. <xs:annotation>
  115. <xs:documentation source="doc_enum_time_units"/>
  116. </xs:annotation>
  117. </xs:enumeration>
  118. <xs:enumeration value="days"/>
  119. <xs:enumeration value="hours"/>
  120. <xs:enumeration value="minutes"/>
  121. <xs:enumeration value="seconds"/>
  122. <xs:enumeration value="milliseconds"/>
  123. </xs:restriction>
  124. </xs:simpleType>
  125. </xs:attribute>
  126. <xs:attribute name="showDays">
  127. <xs:annotation>
  128. <xs:documentation>Controls display of days in date value. When "false", days are hidden. When true, 1-digit day of month shown in date value. When 1 digit or 2 digits, 1- or 2-digit day of month will be shown, respectively. When "Julian", 3-digit day of year will be shown. Default value is inherited from user's locale.</xs:documentation>
  129. </xs:annotation>
  130. <xs:simpleType>
  131. <xs:restriction base="xs:string">
  132. <xs:enumeration value="false">
  133. <xs:annotation>
  134. <xs:documentation>Hide days of the month.</xs:documentation>
  135. </xs:annotation>
  136. </xs:enumeration>
  137. <xs:enumeration value="true">
  138. <xs:annotation>
  139. <xs:documentation>Show 1-digit day of month.</xs:documentation>
  140. <xs:documentation source="doc_enum_true_days"/>
  141. </xs:annotation>
  142. </xs:enumeration>
  143. <xs:enumeration value="1-digit">
  144. <xs:annotation>
  145. <xs:documentation>Show 1-digit day of month.</xs:documentation>
  146. </xs:annotation>
  147. </xs:enumeration>
  148. <xs:enumeration value="2-digits">
  149. <xs:annotation>
  150. <xs:documentation>Show 2-digit day of month.</xs:documentation>
  151. </xs:annotation>
  152. </xs:enumeration>
  153. <xs:enumeration value="Julian">
  154. <xs:annotation>
  155. <xs:documentation>Show 3-digit day of year, also known as the Julian format.</xs:documentation>
  156. </xs:annotation>
  157. </xs:enumeration>
  158. </xs:restriction>
  159. </xs:simpleType>
  160. </xs:attribute>
  161. <xs:attribute name="showYears" type="xs:boolean">
  162. <xs:annotation>
  163. <xs:documentation>Controls display of years component of year-month interval. When ‘true’, count of years will be displayed. Default value is inherited from user's locale.</xs:documentation>
  164. <xs:documentation source="doc_att_showYears_interval"/>
  165. </xs:annotation>
  166. </xs:attribute>
  167. <xs:attribute name="showMonths" type="xs:boolean">
  168. <xs:annotation>
  169. <xs:documentation>Controls display of months component of year-month interval. When ‘true’, count of months will be displayed. Default value is inherited from user's locale.</xs:documentation>
  170. <xs:documentation source="doc_att_showMonths_interval"/>
  171. </xs:annotation>
  172. </xs:attribute>
  173. <xs:attribute name="dateSeparator" type="xs:string">
  174. <xs:annotation>
  175. <xs:documentation>Characters to be displayed between year and month components of a year-month interval. Default value is inherited from user's locale.</xs:documentation>
  176. </xs:annotation>
  177. </xs:attribute>
  178. <xs:attributeGroup ref="CommonFormatAttributes"/>
  179. <xs:attributeGroup ref="CommonIntervalFormatAttributes"/>
  180. <xs:attributeGroup ref="DecimalFormatAttributes"/>
  181. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  182. </xs:complexType>
  183. </xs:element>
  184. <xs:element name="numberFormat">
  185. <xs:annotation>
  186. <xs:documentation>Defines attributes of the decimal numeric format. In addition to the attributes for an integer numeric format, decimal format supports decimal digits, delimiter and scientific notation.</xs:documentation>
  187. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#NumberFormat"/>
  188. </xs:annotation>
  189. <xs:complexType>
  190. <xs:attribute name="useScientific" type="xs:boolean">
  191. <xs:annotation>
  192. <xs:documentation>Boolean flag to render value in scientific notation; that is, "0.123 E+03". When true, numeric value will be rendered in scientific notation. Otherwise, value will be rendered in decimal format whenever possible, as suggested by the precision attribute. Default value is inherited from user's locale.</xs:documentation>
  193. </xs:annotation>
  194. </xs:attribute>
  195. <xs:attribute name="exponentSize" type="xs:nonNegativeInteger">
  196. <xs:annotation>
  197. <xs:documentation>Count of digits to be displayed following the exponent symbol when rendering in scientific notation. Default value is inherited from user's locale.</xs:documentation>
  198. </xs:annotation>
  199. </xs:attribute>
  200. <xs:attribute name="exponentSymbol" type="xs:string">
  201. <xs:annotation>
  202. <xs:documentation>Character(s) to be displayed as exponent symbol when rendering in scientific notation. Will be rendered following numeric value (mantissa), separated by a space. If a space is desired between symbol and exponent value, it should be included in this attribute. Default value is inherited from user's locale.</xs:documentation>
  203. </xs:annotation>
  204. </xs:attribute>
  205. <xs:attributeGroup ref="CommonFormatAttributes"/>
  206. <xs:attributeGroup ref="DecimalFormatAttributes"/>
  207. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  208. </xs:complexType>
  209. </xs:element>
  210. <xs:element name="currencyFormat">
  211. <xs:annotation>
  212. <xs:documentation>Defines attributes of a numeric currency format.</xs:documentation>
  213. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#NumberFormat"/>
  214. </xs:annotation>
  215. <xs:complexType>
  216. <xs:attribute name="currencyCode" type="xs:string">
  217. <xs:annotation>
  218. <xs:documentation>Unique code that identifies currency. ISO 4217 country code is recommended. When omitted, currency is identified by what the query engine can infer from the model for the dataItem and if nothing then it uses the currency associated with the user's content locale.</xs:documentation>
  219. </xs:annotation>
  220. </xs:attribute>
  221. <xs:attribute name="currencySymbol" type="xs:string">
  222. <xs:annotation>
  223. <xs:documentation>Character code to be displayed to identify local currency of numeric value. These character will be precede the numeric value and any [leading] sign. If a blank character is desired between numeric value and this symbol, it should be specified in this attribute. Default value is inherited from user's locale.</xs:documentation>
  224. </xs:annotation>
  225. </xs:attribute>
  226. <xs:attribute name="intlCurrencySymbol" type="xs:string">
  227. <xs:annotation>
  228. <xs:documentation>Character code to be displayed to identify international currency of numeric value. These character will be precede the numeric value and any [leading] sign. If a blank character is desired between numeric value and this symbol, it should be specified in this attribute. Default value is inherited from user's locale.</xs:documentation>
  229. </xs:annotation>
  230. </xs:attribute>
  231. <xs:attribute name="useIntlSymbol" type="xs:boolean">
  232. <xs:annotation>
  233. <xs:documentation>When "true", international currency symbol will be used instead of local currency symbol. Default value is inherited from user's locale.</xs:documentation>
  234. </xs:annotation>
  235. </xs:attribute>
  236. <xs:attribute name="useTrailingSymbol" type="xs:boolean">
  237. <xs:annotation>
  238. <xs:documentation>When "true", characters in [international] currency symbol attribute will be appended to the numeric value and any trailing sign. Any whitespace characters at end of chosen symbol attribute value will be rendered between numeric value and trailing sign. Default value is inherited from user's locale.</xs:documentation>
  239. </xs:annotation>
  240. </xs:attribute>
  241. <xs:attributeGroup ref="CommonFormatAttributes"/>
  242. <xs:attributeGroup ref="DecimalFormatAttributes"/>
  243. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  244. </xs:complexType>
  245. </xs:element>
  246. <xs:element name="percentFormat">
  247. <xs:annotation>
  248. <xs:documentation>Defines attributes of a numeric percentage or per mille format.</xs:documentation>
  249. <xs:documentation source="ebnf/EBNF_LayoutPatterns.xml#NumberFormat"/>
  250. </xs:annotation>
  251. <xs:complexType>
  252. <xs:attribute name="percentSymbol" type="xs:string">
  253. <xs:annotation>
  254. <xs:documentation>Characters to be displayed to identify precent or per mille value. These characters will be appended to the numeric value and any trailing sign. If a blank character is desired between numeric value and this trailing symbol, it should be specified in this attribute. If omitted, symbol will be inherited from user's locale.</xs:documentation>
  255. </xs:annotation>
  256. </xs:attribute>
  257. <xs:attribute name="percentScale" type="xs:nonPositiveInteger">
  258. <xs:annotation>
  259. <xs:documentation>Scale to be applied to value after formatting. If omitted, no percent scale will be applied and the value will formatted according the normal decimal positioning associated with the percent (or permille) symbol.
  260. </xs:documentation>
  261. </xs:annotation>
  262. </xs:attribute>
  263. <xs:attributeGroup ref="CommonFormatAttributes"/>
  264. <xs:attributeGroup ref="DecimalFormatAttributes"/>
  265. <xs:attributeGroup ref="CommonNonStringFormatAttributes"/>
  266. </xs:complexType>
  267. </xs:element>
  268. <xs:attributeGroup name="CommonFormatAttributes">
  269. <xs:attribute name="pattern" type="xs:string">
  270. <xs:annotation>
  271. <xs:documentation>Presentation format expressions are based on ICU format patterns. For additional information on ICU format patterns, refer to [http://oss.software.ibm.com/icu/userguide/index.html]</xs:documentation>
  272. </xs:annotation>
  273. </xs:attribute>
  274. <xs:attribute name="whenMissing" type="xs:string">
  275. <xs:annotation>
  276. <xs:documentation>Characters to be displayed when value to be formatted is missing. If omitted, an empty string is displayed.</xs:documentation>
  277. </xs:annotation>
  278. </xs:attribute>
  279. <xs:attribute name="whenSecurityError" type="xs:string">
  280. <xs:annotation>
  281. <xs:documentation>Characters to be displayed when value to be formatted is was not available for security reasons. If omitted, the server default is returned.</xs:documentation>
  282. </xs:annotation>
  283. </xs:attribute>
  284. <xs:attribute name="whenNotApplicable" type="xs:string">
  285. <xs:annotation>
  286. <xs:documentation>Characters to be displayed when value to be formatted is was not applicable. If omitted, the server default is returned.</xs:documentation>
  287. </xs:annotation>
  288. </xs:attribute>
  289. <xs:attribute name="whenAnyError" type="xs:string">
  290. <xs:annotation>
  291. <xs:documentation>Characters to be displayed when value to be formatted is was not available because of an error. This setting is overridden by the more specific error condition formattings (e.g. whenSecurityError). If omitted, the server default is returned.</xs:documentation>
  292. </xs:annotation>
  293. </xs:attribute>
  294. </xs:attributeGroup>
  295. <xs:attributeGroup name="CommonDateFormatAttributes">
  296. <xs:annotation>
  297. <xs:documentation>These attributes define the properties of a date format.</xs:documentation>
  298. </xs:annotation>
  299. <xs:attribute name="showYears">
  300. <xs:annotation>
  301. <xs:documentation>Controls display of years component. When “false”, years are hidden. When "true", 2-digit years are shown in date value. When "hide century", last two digits of years component are shown (i.e. century excluded). When "show century", all digits of years component are shown (i.e. century included). Default value is inherited from user's locale.</xs:documentation>
  302. </xs:annotation>
  303. <xs:simpleType>
  304. <xs:restriction base="xs:string">
  305. <xs:enumeration value="false">
  306. <xs:annotation>
  307. <xs:documentation>Hide year value.</xs:documentation>
  308. </xs:annotation>
  309. </xs:enumeration>
  310. <xs:enumeration value="true">
  311. <xs:annotation>
  312. <xs:documentation>Show 1-, 2- or 4-digit year value, depending upon locale and chosen calendar. Year-month interval values will show as many digits for year as required.</xs:documentation>
  313. <xs:documentation source="doc_enum_true_years"/>
  314. </xs:annotation>
  315. </xs:enumeration>
  316. <xs:enumeration value="hideCentury">
  317. <xs:annotation>
  318. <xs:documentation>Show last 2 digits of year value (century excluded).</xs:documentation>
  319. </xs:annotation>
  320. </xs:enumeration>
  321. <xs:enumeration value="showCentury">
  322. <xs:annotation>
  323. <xs:documentation>Show all digits of year value (century included).</xs:documentation>
  324. </xs:annotation>
  325. </xs:enumeration>
  326. </xs:restriction>
  327. </xs:simpleType>
  328. </xs:attribute>
  329. <xs:attribute name="showMonths">
  330. <xs:annotation>
  331. <xs:documentation>Controls display of months component. When “false”, months are hidden. When "true", 1-digit months are shown in date value. When “1 digit” or “2 digits”, 1- or 2- digit months are shown. When "short name", abbreviated month names are shown. When "full name", full month names are shown. Default value is inherited from user's locale.</xs:documentation>
  332. </xs:annotation>
  333. <xs:simpleType>
  334. <xs:restriction base="xs:string">
  335. <xs:enumeration value="false">
  336. <xs:annotation>
  337. <xs:documentation>Hide month value.</xs:documentation>
  338. </xs:annotation>
  339. </xs:enumeration>
  340. <xs:enumeration value="true">
  341. <xs:annotation>
  342. <xs:documentation>Show 1- or 2-digit month value, based upon locale.</xs:documentation>
  343. <xs:documentation source="doc_enum_true_months"/>
  344. </xs:annotation>
  345. </xs:enumeration>
  346. <xs:enumeration value="1-digit">
  347. <xs:annotation>
  348. <xs:documentation>Show 1-digit month value.</xs:documentation>
  349. </xs:annotation>
  350. </xs:enumeration>
  351. <xs:enumeration value="2-digits">
  352. <xs:annotation>
  353. <xs:documentation>Show 2-digit month value.</xs:documentation>
  354. </xs:annotation>
  355. </xs:enumeration>
  356. <xs:enumeration value="shortName">
  357. <xs:annotation>
  358. <xs:documentation>Show abbreviated month name.</xs:documentation>
  359. </xs:annotation>
  360. </xs:enumeration>
  361. <xs:enumeration value="fullName">
  362. <xs:annotation>
  363. <xs:documentation>Show full month name.</xs:documentation>
  364. </xs:annotation>
  365. </xs:enumeration>
  366. </xs:restriction>
  367. </xs:simpleType>
  368. </xs:attribute>
  369. <xs:attribute name="dateSeparator" type="xs:string">
  370. <xs:annotation>
  371. <xs:documentation>Characters to be displayed between year, month and day components of a date. Default value is inherited from user's locale.</xs:documentation>
  372. </xs:annotation>
  373. </xs:attribute>
  374. <xs:attribute name="dateStyle">
  375. <xs:annotation>
  376. <xs:documentation>Predefined date format.</xs:documentation>
  377. </xs:annotation>
  378. <xs:simpleType>
  379. <xs:restriction base="xs:string">
  380. <xs:enumeration value="short"/>
  381. <xs:enumeration value="medium"/>
  382. <xs:enumeration value="long"/>
  383. <xs:enumeration value="full"/>
  384. </xs:restriction>
  385. </xs:simpleType>
  386. </xs:attribute>
  387. <xs:attribute name="displayOrder">
  388. <xs:annotation>
  389. <xs:documentation>Controls display order of day, month, year, weekday and era components in a date value. Single characters are used to denote position without intervening whitespace: "Y" is the year, "M" the month, "D" the day, "W" the weekday, and "E" the era. Default value is inherited from user's locale.</xs:documentation>
  390. </xs:annotation>
  391. <xs:simpleType>
  392. <xs:restriction base="xs:string">
  393. <xs:enumeration value="YMD"/>
  394. <xs:enumeration value="MDY"/>
  395. <xs:enumeration value="DMY"/>
  396. </xs:restriction>
  397. </xs:simpleType>
  398. </xs:attribute>
  399. <xs:attribute name="showDays">
  400. <xs:annotation>
  401. <xs:documentation>Controls display of days in date value. When "false", days are hidden. When true, 1-digit day of month shown in date value. When 1 digit or 2 digits, 1- or 2-digit day of month will be shown, respectively. When "Julian", 3-digit day of year will be shown. Default value is inherited from user's locale.</xs:documentation>
  402. </xs:annotation>
  403. <xs:simpleType>
  404. <xs:restriction base="xs:string">
  405. <xs:enumeration value="false">
  406. <xs:annotation>
  407. <xs:documentation>Hide days of the month.</xs:documentation>
  408. </xs:annotation>
  409. </xs:enumeration>
  410. <xs:enumeration value="true">
  411. <xs:annotation>
  412. <xs:documentation>Show 1-digit day of month.</xs:documentation>
  413. <xs:documentation source="doc_enum_true_days"/>
  414. </xs:annotation>
  415. </xs:enumeration>
  416. <xs:enumeration value="1-digit">
  417. <xs:annotation>
  418. <xs:documentation>Show 1-digit day of month.</xs:documentation>
  419. </xs:annotation>
  420. </xs:enumeration>
  421. <xs:enumeration value="2-digits">
  422. <xs:annotation>
  423. <xs:documentation>Show 2-digit day of month.</xs:documentation>
  424. </xs:annotation>
  425. </xs:enumeration>
  426. <xs:enumeration value="Julian">
  427. <xs:annotation>
  428. <xs:documentation>Show 3-digit day of year, also known as the Julian format.</xs:documentation>
  429. </xs:annotation>
  430. </xs:enumeration>
  431. </xs:restriction>
  432. </xs:simpleType>
  433. </xs:attribute>
  434. <xs:attribute name="showWeekday">
  435. <xs:annotation>
  436. <xs:documentation>Controls display of weekday in date value. Position of the weekday name depends upon locale and chosen display order. When "false", weekday is hidden. When “true”, abbreviated (short) or full weekday name will be shown in date value, depending upon locale preferences. When “short name”, abbreviated weekday name will be shown. When "full name", complete weekday name will be shown. Default value is inherited from user's locale.</xs:documentation>
  437. </xs:annotation>
  438. <xs:simpleType>
  439. <xs:restriction base="xs:string">
  440. <xs:enumeration value="false">
  441. <xs:annotation>
  442. <xs:documentation>Hide weekday name.</xs:documentation>
  443. </xs:annotation>
  444. </xs:enumeration>
  445. <xs:enumeration value="true">
  446. <xs:annotation>
  447. <xs:documentation>Show short/full weekday name, depending upon locale.</xs:documentation>
  448. <xs:documentation source="doc_enum_true_weekday"/>
  449. </xs:annotation>
  450. </xs:enumeration>
  451. <xs:enumeration value="shortName">
  452. <xs:annotation>
  453. <xs:documentation>Show abbreviated weekday name.</xs:documentation>
  454. </xs:annotation>
  455. </xs:enumeration>
  456. <xs:enumeration value="fullName">
  457. <xs:annotation>
  458. <xs:documentation>Show full weekday name.</xs:documentation>
  459. </xs:annotation>
  460. </xs:enumeration>
  461. </xs:restriction>
  462. </xs:simpleType>
  463. </xs:attribute>
  464. <xs:attribute name="showEra" type="xs:boolean">
  465. <xs:annotation>
  466. <xs:documentation>Controls display of era in date value, whose position depends upon locale and calendar. When "false", era is hidden. When “true”, era name will be shown in date value. Default value is inherited from user's locale.</xs:documentation>
  467. </xs:annotation>
  468. </xs:attribute>
  469. <xs:attribute name="calendar">
  470. <xs:annotation>
  471. <xs:documentation>Identifies the desired calendar to be presented. Date values will be mapped to the selected calendar before formatting. Default calendar is inherited from user's locale.</xs:documentation>
  472. </xs:annotation>
  473. <xs:simpleType>
  474. <xs:restriction base="xs:string">
  475. <xs:enumeration value="Gregorian">
  476. <xs:annotation>
  477. <xs:documentation>This is the calendar that most North Americans and Europeans will recognize.</xs:documentation>
  478. </xs:annotation>
  479. </xs:enumeration>
  480. <xs:enumeration value="Imperial">
  481. <xs:annotation>
  482. <xs:documentation>The Japanese Imperial calendar.</xs:documentation>
  483. </xs:annotation>
  484. </xs:enumeration>
  485. </xs:restriction>
  486. </xs:simpleType>
  487. </xs:attribute>
  488. </xs:attributeGroup>
  489. <xs:attributeGroup name="CommonIntervalFormatAttributes">
  490. <xs:annotation>
  491. <xs:documentation>These attributes define the properties of a time format.</xs:documentation>
  492. <xs:documentation>[KF:Jan02] These attributes are defined within an attribute group so that they may be reused for time, date-time and interval formats.</xs:documentation>
  493. </xs:annotation>
  494. <xs:attribute name="showHours">
  495. <xs:annotation>
  496. <xs:documentation>Controls display of hour component. Default value is inherited from user's locale.</xs:documentation>
  497. </xs:annotation>
  498. <xs:simpleType>
  499. <xs:restriction base="xs:string">
  500. <xs:enumeration value="false">
  501. <xs:annotation>
  502. <xs:documentation>Hide hours.</xs:documentation>
  503. </xs:annotation>
  504. </xs:enumeration>
  505. <xs:enumeration value="true">
  506. <xs:annotation>
  507. <xs:documentation>Show 1-digit hours for 12-hour clock and 2-digit hours for 24-hour clock.</xs:documentation>
  508. <xs:documentation>[KF:Sep02] Under Japanese locale, 1-digit hours should be shown.</xs:documentation>
  509. <xs:documentation source="doc_enum_true_hours"/>
  510. </xs:annotation>
  511. </xs:enumeration>
  512. <xs:enumeration value="1-digit">
  513. <xs:annotation>
  514. <xs:documentation>Show 1-digit hour, regardless of clock.</xs:documentation>
  515. </xs:annotation>
  516. </xs:enumeration>
  517. <xs:enumeration value="2-digits">
  518. <xs:annotation>
  519. <xs:documentation>Show 2-digit hour, regardless of clock.</xs:documentation>
  520. </xs:annotation>
  521. </xs:enumeration>
  522. </xs:restriction>
  523. </xs:simpleType>
  524. </xs:attribute>
  525. <xs:attribute name="showMinutes">
  526. <xs:annotation>
  527. <xs:documentation>Controls display of minutes component. When ‘true’, minutes are shown in time value. When “false”, minutes are hidden. When “M” or “MM”, 1- or 2-digit values will be shown, respectively. Default value is inherited from user's locale.</xs:documentation>
  528. </xs:annotation>
  529. <xs:simpleType>
  530. <xs:restriction base="xs:string">
  531. <xs:enumeration value="false">
  532. <xs:annotation>
  533. <xs:documentation>Do not show minutes.</xs:documentation>
  534. </xs:annotation>
  535. </xs:enumeration>
  536. <xs:enumeration value="true">
  537. <xs:annotation>
  538. <xs:documentation>Show 2-digit minutes.</xs:documentation>
  539. <xs:documentation>[KF:Sep02] Under Japanese locale, 1-digit minutes should be shown.</xs:documentation>
  540. <xs:documentation source="doc_enum_true_minutes"/>
  541. </xs:annotation>
  542. </xs:enumeration>
  543. <xs:enumeration value="1-digit">
  544. <xs:annotation>
  545. <xs:documentation>Show 1-digit minutes.</xs:documentation>
  546. </xs:annotation>
  547. </xs:enumeration>
  548. <xs:enumeration value="2-digits">
  549. <xs:annotation>
  550. <xs:documentation>Show 2-digit minutes.</xs:documentation>
  551. </xs:annotation>
  552. </xs:enumeration>
  553. </xs:restriction>
  554. </xs:simpleType>
  555. </xs:attribute>
  556. <xs:attribute name="showSeconds">
  557. <xs:annotation>
  558. <xs:documentation>Controls display of seconds component. When ‘true’, seconds are shown in time value. When “false”, only hours and minutes are shown. When “1 digit” or “2 digits”, 1- or 2-digit values will be shown, respectively. Default value is inherited from user's locale.</xs:documentation>
  559. <xs:documentation source="doc_att_showSeconds_format"/>
  560. </xs:annotation>
  561. <xs:simpleType>
  562. <xs:restriction base="xs:string">
  563. <xs:enumeration value="false">
  564. <xs:annotation>
  565. <xs:documentation>Hide seconds and milliseconds.</xs:documentation>
  566. </xs:annotation>
  567. </xs:enumeration>
  568. <xs:enumeration value="true">
  569. <xs:annotation>
  570. <xs:documentation>Show 2-digit seconds for any clock.</xs:documentation>
  571. <xs:documentation>[KF:Sep02] Under Japanese locale, 1-digit seconds should be shown.</xs:documentation>
  572. <xs:documentation source="doc_enum_true_seconds"/>
  573. </xs:annotation>
  574. </xs:enumeration>
  575. <xs:enumeration value="1-digit">
  576. <xs:annotation>
  577. <xs:documentation>Show 1-digit seconds.</xs:documentation>
  578. </xs:annotation>
  579. </xs:enumeration>
  580. <xs:enumeration value="2-digits">
  581. <xs:annotation>
  582. <xs:documentation>Show 2-digit seconds.</xs:documentation>
  583. </xs:annotation>
  584. </xs:enumeration>
  585. </xs:restriction>
  586. </xs:simpleType>
  587. </xs:attribute>
  588. <xs:attribute name="showMilliseconds">
  589. <xs:annotation>
  590. <xs:documentation>Controls display of milliseconds component. This attribute will be ignored if seconds are not shown (see 'showSeconds' attribute). When ‘true’, 3-digit milliseconds are shown in time value. When “false”, milliseconds are hidden. When “S”, “SS” or “SSS”, milliseconds will be shown to 1, 2 or 3 decimal places of precision. Default value is inherited from user's locale.</xs:documentation>
  591. <xs:documentation source="doc_att_showMilliseconds_format"/>
  592. </xs:annotation>
  593. <xs:simpleType>
  594. <xs:restriction base="xs:string">
  595. <xs:enumeration value="false">
  596. <xs:annotation>
  597. <xs:documentation>Hide milliseconds.</xs:documentation>
  598. </xs:annotation>
  599. </xs:enumeration>
  600. <xs:enumeration value="true">
  601. <xs:annotation>
  602. <xs:documentation>Show 3-digit milliseconds for any clock.</xs:documentation>
  603. <xs:documentation>[KF:Sep02] Even under Japanese locale, 3-digit milliseconds should be shown.</xs:documentation>
  604. <xs:documentation source="doc_enum_true_milliseconds"/>
  605. </xs:annotation>
  606. </xs:enumeration>
  607. <xs:enumeration value="1-digit">
  608. <xs:annotation>
  609. <xs:documentation>Show 1-digit milliseconds.</xs:documentation>
  610. </xs:annotation>
  611. </xs:enumeration>
  612. <xs:enumeration value="2-digits">
  613. <xs:annotation>
  614. <xs:documentation>Show 2-digit milliseconds.</xs:documentation>
  615. </xs:annotation>
  616. </xs:enumeration>
  617. <xs:enumeration value="3-digits">
  618. <xs:annotation>
  619. <xs:documentation>Show 3-digit milliseconds.</xs:documentation>
  620. </xs:annotation>
  621. </xs:enumeration>
  622. </xs:restriction>
  623. </xs:simpleType>
  624. </xs:attribute>
  625. <xs:attribute name="timeSeparator" type="xs:string">
  626. <xs:annotation>
  627. <xs:documentation>Characters to be displayed between hour, minute and second components of a time. Default value is inherited from user's locale.</xs:documentation>
  628. </xs:annotation>
  629. </xs:attribute>
  630. </xs:attributeGroup>
  631. <xs:attributeGroup name="CommonTimeFormatAttributes">
  632. <xs:annotation>
  633. <xs:documentation>These attributes define the common properties of a time format.</xs:documentation>
  634. <xs:documentation>[KF:Jan02] These attributes are defined within an attribute group so that they may be reused for time and date-time formats.</xs:documentation>
  635. </xs:annotation>
  636. <xs:attribute name="timeStyle">
  637. <xs:annotation>
  638. <xs:documentation>Predefined time format.</xs:documentation>
  639. </xs:annotation>
  640. <xs:simpleType>
  641. <xs:restriction base="xs:string">
  642. <xs:enumeration value="short"/>
  643. <xs:enumeration value="long"/>
  644. <xs:enumeration value="full"/>
  645. </xs:restriction>
  646. </xs:simpleType>
  647. </xs:attribute>
  648. <xs:attribute name="showAmPm" type="xs:boolean">
  649. <xs:annotation>
  650. <xs:documentation>Controls display of AM / PM component. When ‘true’, “am” or “pm” will be appended to 12-hour clock values. Default value is inherited from user's locale.</xs:documentation>
  651. </xs:annotation>
  652. </xs:attribute>
  653. <xs:attribute name="showTimeZone" type="xs:boolean">
  654. <xs:annotation>
  655. <xs:documentation>Controls display of time zone in time value. When "false", time zone is hidden. When “true”, time zone will be shown in time value. Default value is inherited from user's locale.</xs:documentation>
  656. </xs:annotation>
  657. </xs:attribute>
  658. <xs:attribute name="clock">
  659. <xs:annotation>
  660. <xs:documentation>Controls display of time value in 12-hour or 24-hour format. Default value is inherited from user's locale.</xs:documentation>
  661. </xs:annotation>
  662. <xs:simpleType>
  663. <xs:restriction base="xs:string">
  664. <xs:enumeration value="12-hour">
  665. <xs:annotation>
  666. <xs:documentation>This is the AM/PM format.</xs:documentation>
  667. </xs:annotation>
  668. </xs:enumeration>
  669. <xs:enumeration value="24-hour">
  670. <xs:annotation>
  671. <xs:documentation>This is the military format.</xs:documentation>
  672. </xs:annotation>
  673. </xs:enumeration>
  674. </xs:restriction>
  675. </xs:simpleType>
  676. </xs:attribute>
  677. <xs:attribute name="decimalDelimiter" type="xs:string">
  678. <xs:annotation>
  679. <xs:documentation>Character delimiter between seconds and milliseconds. Also known as a "decimal point", this delimiter is applicable only when milliseconds are presented. Default value is inherited from user's locale.</xs:documentation>
  680. </xs:annotation>
  681. </xs:attribute>
  682. <xs:attributeGroup ref="CommonIntervalFormatAttributes"/>
  683. </xs:attributeGroup>
  684. <xs:attributeGroup name="IntegerFormatAttributes">
  685. <xs:attribute name="sign" type="xs:string">
  686. <xs:annotation>
  687. <xs:documentation>Specifies which character or characters to display before negative numeric values. To display a space between a negative sign and the numeric value, specify it in this attribute. The default value will be inherited from the user's locale.</xs:documentation>
  688. </xs:annotation>
  689. </xs:attribute>
  690. <xs:attribute name="useTrailingSign" type="xs:boolean">
  691. <xs:annotation>
  692. <xs:documentation>When "true", the characters indicated by "sign" attribute will be appended to numeric value. Any whitespace characters at end of sign attribute value will be rendered between numeric value and [trailing] sign. When "false", sign attribute value will precede numeric value. Default value will be inherited from user's locale.</xs:documentation>
  693. </xs:annotation>
  694. </xs:attribute>
  695. <xs:attribute name="maxDigits" type="xs:nonNegativeInteger">
  696. <xs:annotation>
  697. <xs:documentation>Maximum count of digits to be displayed on the left-hand side of decimal point. If value exceeds this limitation, scientific notation will be used. Default value is inherited from user's locale.</xs:documentation>
  698. </xs:annotation>
  699. </xs:attribute>
  700. <xs:attribute name="minDigits" type="xs:nonNegativeInteger">
  701. <xs:annotation>
  702. <xs:documentation>Minimum count of digits to be displayed on the left-hand side of decimal point. If value to be formatted has fewer digits than this limitation, padding characters will be applied to left side of formatted value until minimum digit count is achieved. Default value is inherited from user's locale.</xs:documentation>
  703. </xs:annotation>
  704. </xs:attribute>
  705. <xs:attribute name="paddingCharacter" type="xs:string">
  706. <xs:annotation>
  707. <xs:documentation>When magnitude of value is less than minimum digits attribute, padding characters will be prepended to value until minimum digits restriction is satisfied. Default value is inherited from user's locale.</xs:documentation>
  708. </xs:annotation>
  709. </xs:attribute>
  710. <xs:attribute name="scale" type="xs:short">
  711. <xs:annotation>
  712. <xs:documentation>Number of digits to shift decimal place from actual location for formatting purposes. This attribute is handy when displaying values in "thousands of dollars", or when whole numbers are stored in the database, but they actually represent values with X decimal places. Positive values shift the decimal place to the right, whereas negative values shift the decimal point to the left. Default value is inherited from database column.</xs:documentation>
  713. <xs:documentation source="doc_att_format_scale"/>
  714. </xs:annotation>
  715. </xs:attribute>
  716. <xs:attribute name="useGrouping" type="xs:boolean">
  717. <xs:annotation>
  718. <xs:documentation>When "true", grouping delimiter is applied as defined by grouping size attributes. Default value will be inherited from user's locale.</xs:documentation>
  719. </xs:annotation>
  720. </xs:attribute>
  721. <xs:attribute name="groupDelimiter" type="xs:string">
  722. <xs:annotation>
  723. <xs:documentation>Character delimiter for digit groups. Also known as "thousands separator", this delimiter is applicable only when digit grouping is enabled (i.e. groupDigits attribute is non-zero). Default value is inherited from user's locale.</xs:documentation>
  724. </xs:annotation>
  725. </xs:attribute>
  726. <xs:attribute name="groupSize" type="xs:positiveInteger">
  727. <xs:annotation>
  728. <xs:documentation>This is the primary grouping size, which represents the count of digits left of the decimal point to be grouped together and separated by groupDelimiter character. Default value is inherited from user's locale.</xs:documentation>
  729. </xs:annotation>
  730. </xs:attribute>
  731. <xs:attribute name="groupSecondarySize" type="xs:positiveInteger">
  732. <xs:annotation>
  733. <xs:documentation>Some locales support a secondary grouping size that is applied to the left of the primary group. If specified, this attribute is the count of digits left of [primary] digit group that should be grouped together and separated by groupDelimiter character. If omitted, seconday grouping of digits is same as primary grouping [see groupSize attribute].</xs:documentation>
  734. </xs:annotation>
  735. </xs:attribute>
  736. <xs:attribute name="whenNegative" type="xs:string">
  737. <xs:annotation>
  738. <xs:documentation source="http://www-124.ibm.com/icu/apiref/classDecimalFormat.html#_details">Negative numeric format; 'pattern' attribute is used for positive numbers. Some restrictions apply (see http://www-124.ibm.com/icu/apiref/classDecimalFormat.html#_details).</xs:documentation>
  739. </xs:annotation>
  740. </xs:attribute>
  741. <xs:attribute name="whenZero" type="xs:string">
  742. <xs:annotation>
  743. <xs:documentation>Characters to be displayed when numeric value is zero. If omitted, significance attribute determines number of zeroes to display.</xs:documentation>
  744. </xs:annotation>
  745. </xs:attribute>
  746. </xs:attributeGroup>
  747. <xs:attributeGroup name="DecimalFormatAttributes">
  748. <xs:attribute name="decimalSize" type="xs:nonNegativeInteger">
  749. <xs:annotation>
  750. <xs:documentation>Count of digits to be displayed to right of decimal point. If omitted, fractional [decimal] digits will be displayed as required.</xs:documentation>
  751. </xs:annotation>
  752. </xs:attribute>
  753. <xs:attribute name="decimalDelimiter" type="xs:string">
  754. <xs:annotation>
  755. <xs:documentation>Character delimiter between whole and fractional components of a floating-point number. Also known as "decimal point", this delimiter is applicable only when fractional digits are presented (i.e. decimals attribute is non-zero). Default value is inherited from user's locale.</xs:documentation>
  756. </xs:annotation>
  757. </xs:attribute>
  758. <xs:attributeGroup ref="IntegerFormatAttributes"/>
  759. <xs:attribute name="whenDivideZero" type="xs:string">
  760. <xs:annotation>
  761. <xs:documentation>Characters to be displayed when numeric value is the result of a division by zero. If omitted, the server default is returned.</xs:documentation>
  762. </xs:annotation>
  763. </xs:attribute>
  764. <xs:attribute name="whenNumericOverflow" type="xs:string">
  765. <xs:annotation>
  766. <xs:documentation>Characters to be displayed when numeric value is the result of a numeric overflow. If omitted, the server default is returned.</xs:documentation>
  767. </xs:annotation>
  768. </xs:attribute>
  769. </xs:attributeGroup>
  770. <xs:attributeGroup name="CommonNonStringFormatAttributes">
  771. <xs:annotation>
  772. <xs:documentation>These attributies define the common properties for non-string formats.</xs:documentation>
  773. </xs:annotation>
  774. <xs:attribute name="digitShaping">
  775. <xs:annotation>
  776. <xs:documentation>The digit shape or system used for displaying numbers. If omitted, the numbers will be nationally shaped.</xs:documentation>
  777. </xs:annotation>
  778. <xs:simpleType>
  779. <xs:restriction base="xs:string">
  780. <xs:enumeration value="national">
  781. <xs:annotation>
  782. <xs:documentation>Digits will be shaped according to the locale.</xs:documentation>
  783. </xs:annotation>
  784. </xs:enumeration>
  785. <xs:enumeration value="none">
  786. <xs:annotation>
  787. <xs:documentation>No digit shaping is performed.</xs:documentation>
  788. </xs:annotation>
  789. </xs:enumeration>
  790. </xs:restriction>
  791. </xs:simpleType>
  792. </xs:attribute>
  793. </xs:attributeGroup>
  794. </xs:schema>