V5_layoutbase.xsd 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  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, 2014
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  13. <xs:include schemaLocation="V5_base.xsd"/>
  14. <xs:include schemaLocation="V5_style.xsd"/>
  15. <xs:element name="conditionalRender">
  16. <xs:annotation>
  17. <xs:documentation>If this element is defined the n the layout element containing it will be conditionally rendered based on the evaluation of the variable referenced. If the variable is of type boolean, then the renderFor is not required.</xs:documentation>
  18. </xs:annotation>
  19. <xs:complexType>
  20. <xs:sequence>
  21. <xs:element name="renderFor" minOccurs="0" maxOccurs="unbounded">
  22. <xs:annotation>
  23. <xs:documentation>The layout element will be rendered if the variable evaulates to this value.</xs:documentation>
  24. </xs:annotation>
  25. <xs:complexType>
  26. <xs:attributeGroup ref="ConditionalPartAttributes"/>
  27. </xs:complexType>
  28. </xs:element>
  29. </xs:sequence>
  30. <xs:attributeGroup ref="ConditionalOwnerAttributes"/>
  31. </xs:complexType>
  32. </xs:element>
  33. <xs:element name="XMLAttributes">
  34. <xs:annotation>
  35. <xs:documentation>Allow for specification of arbirary name value pairs in the layout.</xs:documentation>
  36. </xs:annotation>
  37. <xs:complexType>
  38. <xs:sequence maxOccurs="unbounded">
  39. <xs:element name="XMLAttribute">
  40. <xs:complexType>
  41. <xs:attribute name="name" type="xs:string" use="required">
  42. <xs:annotation>
  43. <xs:documentation>Identifies the user data. Because this data is undefined in the enclosing specification, it is the author's responsibility to constrain this value with respect to the unique scoping rules of their application.</xs:documentation>
  44. </xs:annotation>
  45. </xs:attribute>
  46. <xs:attribute name="value" type="xs:string" use="required">
  47. <xs:annotation>
  48. <xs:documentation>Defines the value of the name-value pair.</xs:documentation>
  49. <xs:documentation source="doc_att_value_XMLAttribute"/>
  50. </xs:annotation>
  51. </xs:attribute>
  52. <xs:attribute name="render" type="xs:boolean" default="true">
  53. <xs:annotation>
  54. <xs:documentation source="rn_deprecated_4.0"/>
  55. <xs:documentation>NOTE: This attribute is deprecated. Use output attribute instead. "render=" will still be honoured if specified without "output=", however; the "output=" option takes precedence over "render=" settings.
  56. Appends this attribute specification in the output XML. When 'false', this specification will not appear in the output: it serves as annotation only within the report specification.</xs:documentation>
  57. </xs:annotation>
  58. </xs:attribute>
  59. <xs:attribute name="output" default="XML">
  60. <xs:annotation>
  61. <xs:documentation source="rn_added_4.0"/>
  62. <xs:documentation>This attribute is used to control whether and how the attribute will show up in the ouput. The values are:
  63. No: The attribute will not be rendered to our Intermediate XML (useful for such things as "spec commenting")
  64. XML: (the default) The attribute will be rendered to the intermediate XML in a way that is indistinguishible from other attributes the server might generate. These attributes will be subject to whatever general filtering is done on attributes by transforms.
  65. HTML: The attribute will be rendered to the intermediate XML in a way that targets it for the output HTML v5ReportEngine (used by Query Studio and Report Viewer) will honour this setting, however; it should be noted that externally-defined transforms may not.
  66. </xs:documentation>
  67. </xs:annotation>
  68. <xs:simpleType>
  69. <xs:restriction base="xs:string">
  70. <xs:enumeration value="no"/>
  71. <xs:enumeration value="XML">
  72. <xs:annotation>
  73. <xs:documentation source="doc_enum_XML_output"/>
  74. </xs:annotation>
  75. </xs:enumeration>
  76. <xs:enumeration value="HTML">
  77. <xs:annotation>
  78. <xs:documentation source="doc_enum_HTML_output"/>
  79. </xs:annotation>
  80. </xs:enumeration>
  81. </xs:restriction>
  82. </xs:simpleType>
  83. </xs:attribute>
  84. </xs:complexType>
  85. </xs:element>
  86. </xs:sequence>
  87. </xs:complexType>
  88. </xs:element>
  89. <xs:element name="dataSource" type="DataSourceType">
  90. <xs:annotation>
  91. <xs:documentation>Defines a data source for a layout element. The data may be obtained from either a static value, the result of a query data item or the result of evaluating a layout expression.</xs:documentation>
  92. </xs:annotation>
  93. </xs:element>
  94. <xs:element name="conditionalDataSources">
  95. <xs:annotation>
  96. <xs:documentation>Contains a list of conditional data sources. When rendering, the variable pointed to by refVariable will be eveluated and the first conditionalDataSource whose refVariableValue matches the value of the expression will be used. If no match is found, dataSource of the parent element will be applied. </xs:documentation>
  97. </xs:annotation>
  98. <xs:complexType>
  99. <xs:sequence>
  100. <xs:element name="conditionalDataSource" maxOccurs="unbounded">
  101. <xs:complexType>
  102. <xs:complexContent>
  103. <xs:extension base="DataSourceType">
  104. <xs:attributeGroup ref="ConditionalPartAttributes"/>
  105. </xs:extension>
  106. </xs:complexContent>
  107. </xs:complexType>
  108. </xs:element>
  109. </xs:sequence>
  110. <xs:attributeGroup ref="ConditionalOwnerAttributes"/>
  111. </xs:complexType>
  112. <xs:unique name="dataSourceCases">
  113. <xs:selector xpath="*"/>
  114. <xs:field xpath="@refVariableValue"/>
  115. </xs:unique>
  116. </xs:element>
  117. <xs:element name="reportExpression" type="ExpressionType">
  118. <xs:annotation>
  119. <xs:documentation>An expression that is evaluated by the rendering engine at the current rendering context.
  120. Query data item references can be either qualified or un-qualified (e.g. [MasterQuery].[Column1] or [Column1]).
  121. Only un-qualified references are put into the result set definition.
  122. </xs:documentation>
  123. <xs:documentation source="ebnf/EBNF_CRXExpressionGrammar.xml#CRXExpression">Allowable Expression Syntax in EBNF</xs:documentation>
  124. </xs:annotation>
  125. </xs:element>
  126. <xs:element name="reportCondition" type="ExpressionType">
  127. <xs:annotation>
  128. <xs:documentation source="rn_added_4.0"/>
  129. <xs:documentation>An boolean expression that is evaluated by the rendering engine at the current rendering context.
  130. Query data item references can be either qualified or un-qualified (e.g. [MasterQuery].[Column1] or [Column1]).
  131. Only un-qualified references are put into the result set definition.
  132. </xs:documentation>
  133. <xs:documentation source="ebnf/EBNF_CRXExpressionGrammar.xml#CRXExpression">Allowable Expression Syntax in EBNF</xs:documentation>
  134. </xs:annotation>
  135. </xs:element>
  136. <xs:element name="defaultMeasure">
  137. <xs:annotation>
  138. <xs:documentation>This element identifies the default measure to be used for a crosstab or chart. If the measures of the crosstab or chart cannot be determined by what is being rendered on the edges, then the default measure will be rendered.</xs:documentation>
  139. </xs:annotation>
  140. <xs:complexType>
  141. <xs:attribute name="refDataItem" type="xs:string" use="required"/>
  142. <xs:attributeGroup ref="SolveOrderAttributes"/>
  143. </xs:complexType>
  144. </xs:element>
  145. <xs:element name="reportDrills">
  146. <xs:annotation>
  147. <xs:documentation>Defines a list of drills.</xs:documentation>
  148. </xs:annotation>
  149. <xs:complexType>
  150. <xs:sequence>
  151. <xs:element name="reportDrill" maxOccurs="unbounded">
  152. <xs:annotation>
  153. <xs:documentation>Represents a drill action that is available for this layout element.</xs:documentation>
  154. </xs:annotation>
  155. <xs:complexType>
  156. <xs:all>
  157. <xs:element name="drillTarget" minOccurs="0">
  158. <xs:annotation>
  159. <xs:documentation>Optionally identify the report that is the destination of the drill. If not specified, then the drill is within this report.</xs:documentation>
  160. </xs:annotation>
  161. <xs:complexType>
  162. <xs:all>
  163. <xs:element ref="reportPath"/>
  164. <xs:element name="drillLinks" minOccurs="0">
  165. <xs:complexType>
  166. <xs:sequence>
  167. <xs:element name="drillLink" maxOccurs="unbounded">
  168. <xs:complexType>
  169. <xs:all>
  170. <xs:element name="drillSourceContext" minOccurs="0">
  171. <xs:annotation>
  172. <xs:documentation>The source context is optional to indicate that no value is being provided for the target parameter. If the target parameter is optional then no prompting should occur.</xs:documentation>
  173. </xs:annotation>
  174. <xs:complexType>
  175. <xs:choice>
  176. <xs:element ref="dataItemContext"/>
  177. <xs:element ref="parameterContext"/>
  178. </xs:choice>
  179. <xs:attribute name="propertyToPass" use="optional">
  180. <xs:annotation>
  181. <xs:documentation source="rn_added_6.0"/>
  182. <xs:documentation>When an OLAP entity is sourced as a parameter value for a drill through, the mapping of values to be passed to the target is rigid and arbitrary. Particularly when drilling from OLAP to relational, the mapping of a member to a column value may be unnecessarily restrictive, resultilng in greatly increased effort and complexity to work around the limitations. The "business key" attribute is used exclusively for drill through value mapping, which may not necessarily be the desired linkage for drill through. In order to support generalized drill through, particularly where the target parameter is used to perform linkages beyond the established rules for model conformance, it becomes necessary for the author to determine the most appropriate source member role. The mechanisms for establishing drill through parameter value associations needs to be extended in order to allow the selection of alternate attributes, besides the business key. Similarly, authoring of package based drill through objects needs to include the ability to select an arbitrary intrinsic attribute of an OLAP entity to be mapped to the more basic datatypes which may be encountered as target parameters.
  183. </xs:documentation>
  184. </xs:annotation>
  185. <xs:simpleType>
  186. <xs:restriction base="xs:string">
  187. <xs:enumeration value="memberUniqueName"/>
  188. <xs:enumeration value="memberCaption"/>
  189. <xs:enumeration value="parentUniqueName"/>
  190. <xs:enumeration value="levelUniqueName"/>
  191. <xs:enumeration value="hierarchyUniqueName"/>
  192. <xs:enumeration value="dimensionUniqueName"/>
  193. <xs:enumeration value="businessKey"/>
  194. </xs:restriction>
  195. </xs:simpleType>
  196. </xs:attribute>
  197. </xs:complexType>
  198. </xs:element>
  199. <xs:element name="drillTargetContext">
  200. <xs:complexType>
  201. <xs:choice>
  202. <xs:element ref="parameterContext"/>
  203. </xs:choice>
  204. </xs:complexType>
  205. </xs:element>
  206. </xs:all>
  207. </xs:complexType>
  208. </xs:element>
  209. </xs:sequence>
  210. </xs:complexType>
  211. </xs:element>
  212. </xs:all>
  213. <xs:attribute name="showInNewWindow" type="xs:boolean" default="false">
  214. <xs:annotation>
  215. <xs:documentation>Indicates whether or not the report is launched in a new window.</xs:documentation>
  216. </xs:annotation>
  217. </xs:attribute>
  218. <xs:attribute name="method" use="optional">
  219. <xs:annotation>
  220. <xs:documentation>Indicates with what method the target report is to be accessed:
  221. - no method specified - the drill through target is launched according to the default action in the portal
  222. - method="edit" - the drill through target is launched with the editor appropriate for the object type in the object model
  223. - method="execute" - the drill through target is launched (and executed) in the report viewer
  224. - method="view" - the report output for the drill through target is viewed in the report viewer
  225. </xs:documentation>
  226. </xs:annotation>
  227. <xs:simpleType>
  228. <xs:restriction base="xs:string">
  229. <xs:enumeration value="edit"/>
  230. <xs:enumeration value="execute"/>
  231. <xs:enumeration value="view"/>
  232. </xs:restriction>
  233. </xs:simpleType>
  234. </xs:attribute>
  235. <xs:attribute name="outputFormat" use="optional">
  236. <xs:annotation>
  237. <xs:documentation>Specifies what format to produce or view. If missing, the format of the report from which the drill originates is used.</xs:documentation>
  238. </xs:annotation>
  239. <xs:simpleType>
  240. <xs:restriction base="xs:string">
  241. <xs:enumeration value="CSV"/>
  242. <xs:enumeration value="HTML"/>
  243. <xs:enumeration value="HTMLFragment"/>
  244. <xs:enumeration value="PDF"/>
  245. <xs:enumeration value="XHTML"/>
  246. <xs:enumeration value="XLS"/>
  247. <xs:enumeration value="XLWA"/>
  248. <xs:enumeration value="singleXLS"/>
  249. <xs:enumeration value="spreadsheetML"/>
  250. <xs:enumeration value="XML"/>
  251. </xs:restriction>
  252. </xs:simpleType>
  253. </xs:attribute>
  254. <xs:attribute name="prompt" default="no">
  255. <xs:simpleType>
  256. <xs:restriction base="xs:string">
  257. <xs:enumeration value="yes"/>
  258. <xs:enumeration value="no">
  259. <xs:annotation>
  260. <xs:documentation source="doc_att_prompt_no"/>
  261. </xs:annotation>
  262. </xs:enumeration>
  263. <xs:enumeration value="target"/>
  264. </xs:restriction>
  265. </xs:simpleType>
  266. </xs:attribute>
  267. <xs:attribute name="sendFilterContext" type="xs:boolean" default="false">
  268. <xs:annotation>
  269. <xs:documentation>If true then the dynamic filtering context is passed to the target report in a drill through.</xs:documentation>
  270. <xs:documentation source="rn_added_5.0"/>
  271. </xs:annotation>
  272. </xs:attribute>
  273. </xs:complexType>
  274. </xs:element>
  275. <xs:element name="bookmarkRef" minOccurs="0">
  276. <xs:annotation>
  277. <xs:documentation>Defines which bookmark to jump to.</xs:documentation>
  278. </xs:annotation>
  279. <xs:complexType>
  280. <xs:all>
  281. <xs:element ref="dataSource"/>
  282. </xs:all>
  283. </xs:complexType>
  284. </xs:element>
  285. <xs:element name="drillLabel">
  286. <xs:annotation>
  287. <xs:documentation>Label which will appear if the user must choose between different report drills.</xs:documentation>
  288. </xs:annotation>
  289. <xs:complexType>
  290. <xs:all>
  291. <xs:element ref="dataSource"/>
  292. <xs:element ref="conditionalDataSources" minOccurs="0"/>
  293. </xs:all>
  294. </xs:complexType>
  295. </xs:element>
  296. </xs:all>
  297. <xs:attribute name="name" type="xs:string" use="required">
  298. <xs:annotation>
  299. <xs:documentation>Uniquely names the report drill in this report. </xs:documentation>
  300. </xs:annotation>
  301. </xs:attribute>
  302. </xs:complexType>
  303. </xs:element>
  304. </xs:sequence>
  305. </xs:complexType>
  306. </xs:element>
  307. <xs:element name="masterDetailLinks">
  308. <xs:annotation>
  309. <xs:documentation>Defines the master/detail linkages for the detail layout element that this is contained in. If there are no masterDetailLink defined, then the detail query is run unfiltered.</xs:documentation>
  310. </xs:annotation>
  311. <xs:complexType>
  312. <xs:sequence>
  313. <xs:element name="masterDetailLink" minOccurs="0" maxOccurs="unbounded">
  314. <xs:annotation>
  315. <xs:documentation>Links a member set or parameter of the master query to a member set or parameter in the detail query.</xs:documentation>
  316. </xs:annotation>
  317. <xs:complexType>
  318. <xs:all>
  319. <xs:element name="masterContext">
  320. <xs:complexType>
  321. <xs:choice>
  322. <xs:element ref="dataItemContext"/>
  323. </xs:choice>
  324. </xs:complexType>
  325. </xs:element>
  326. <xs:element name="detailContext">
  327. <xs:complexType>
  328. <xs:choice>
  329. <xs:element ref="dataItemContext"/>
  330. <xs:element ref="parameterContext"/>
  331. </xs:choice>
  332. </xs:complexType>
  333. </xs:element>
  334. </xs:all>
  335. </xs:complexType>
  336. </xs:element>
  337. </xs:sequence>
  338. </xs:complexType>
  339. </xs:element>
  340. <xs:element name="reportPath">
  341. <xs:annotation>
  342. <xs:documentation>Used to define a path to a report in Content Manager. The path attribute contains the Content Manger path. </xs:documentation>
  343. </xs:annotation>
  344. <xs:complexType>
  345. <xs:all>
  346. <xs:element ref="XMLAttributes" minOccurs="0"/>
  347. </xs:all>
  348. <xs:attribute name="path" type="xs:string" use="required"/>
  349. </xs:complexType>
  350. </xs:element>
  351. <xs:element name="dataItemContext">
  352. <xs:complexType>
  353. <xs:attribute name="refDataItem" type="xs:string" use="required"/>
  354. </xs:complexType>
  355. </xs:element>
  356. <xs:element name="parameterContext">
  357. <xs:complexType>
  358. <xs:attribute name="parameter" type="xs:string" use="required"/>
  359. </xs:complexType>
  360. </xs:element>
  361. <xs:element name="propertyList">
  362. <xs:annotation>
  363. <xs:documentation>Identifies dataItems that will behave as properties of whichever layout element contains this list. A dataItem listed here will have data available at rendering time at this place in the layout context.</xs:documentation>
  364. </xs:annotation>
  365. <xs:complexType>
  366. <xs:sequence>
  367. <xs:element name="propertyItem" maxOccurs="unbounded">
  368. <xs:complexType>
  369. <xs:attribute name="refDataItem" type="xs:string" use="required"/>
  370. </xs:complexType>
  371. </xs:element>
  372. </xs:sequence>
  373. </xs:complexType>
  374. </xs:element>
  375. <xs:element name="namedConditionalStyles">
  376. <xs:annotation>
  377. <xs:documentation source="rn_added_4.0"/>
  378. <xs:documentation>A list of named conditional styles.</xs:documentation>
  379. </xs:annotation>
  380. <xs:complexType>
  381. <xs:sequence>
  382. <xs:choice maxOccurs="unbounded">
  383. <xs:element name="advancedConditionalStyle">
  384. <xs:annotation>
  385. <xs:documentation source="rn_added_4.0"/>
  386. <xs:documentation>Each of the style cases will be evaluated in the order they occur and the first one whose style condition evaluates to true will be applied. If none of the cases evaluates to true, then the style default will be used.</xs:documentation>
  387. </xs:annotation>
  388. <xs:complexType>
  389. <xs:all>
  390. <xs:element name="styleCases" minOccurs="0">
  391. <xs:annotation>
  392. <xs:documentation source="rn_added_4.0"/>
  393. </xs:annotation>
  394. <xs:complexType>
  395. <xs:sequence>
  396. <xs:element name="styleCase" maxOccurs="unbounded">
  397. <xs:annotation>
  398. <xs:documentation source="rn_added_4.0"/>
  399. </xs:annotation>
  400. <xs:complexType>
  401. <xs:all>
  402. <xs:element ref="reportCondition"/>
  403. <xs:element ref="style" minOccurs="0"/>
  404. </xs:all>
  405. </xs:complexType>
  406. </xs:element>
  407. </xs:sequence>
  408. </xs:complexType>
  409. </xs:element>
  410. <xs:element ref="styleDefault" minOccurs="0"/>
  411. </xs:all>
  412. <xs:attribute name="name" type="xs:string" use="required"/>
  413. </xs:complexType>
  414. </xs:element>
  415. <xs:element name="rangeConditionalStyle">
  416. <xs:annotation>
  417. <xs:documentation source="rn_added_4.0"/>
  418. <xs:documentation>Picks a style based on a range. The styleRanges must be ordered from largest to smallest. They will be evaluated in order to determine if the value is greater than (or equal to if inclusive) the current value. If true, then the style will be applied. If none of the styleRanges are applied, and the styleRangeRemaining isn't applied, then the styleDefault will be applied. The styleDefault will be applied for any missing values or any values where the conditionalDataItem isn't applicable.</xs:documentation>
  419. </xs:annotation>
  420. <xs:complexType>
  421. <xs:all>
  422. <xs:element ref="conditionalDataItem"/>
  423. <xs:element name="styleRanges" minOccurs="0">
  424. <xs:annotation>
  425. <xs:documentation source="rn_added_4.0"/>
  426. </xs:annotation>
  427. <xs:complexType>
  428. <xs:sequence>
  429. <xs:element name="styleRange" maxOccurs="unbounded">
  430. <xs:annotation>
  431. <xs:documentation source="rn_added_4.0"/>
  432. <xs:documentation>The value attribute must be in the following form for the different datatypes:
  433. date : YYYY-MM-DD
  434. datetime : YYYY-MM-DD HH:MM:SS.MMM
  435. time : HH:MM:SS.MMM
  436. interval : D HH:MM:SS.MMM ( this can also be negative).
  437. </xs:documentation>
  438. </xs:annotation>
  439. <xs:complexType>
  440. <xs:all>
  441. <xs:element ref="style" minOccurs="0"/>
  442. </xs:all>
  443. <xs:attribute name="value" type="xs:string" use="required">
  444. <xs:annotation>
  445. <xs:documentation source="doc_att_value_styleRange"/>
  446. </xs:annotation>
  447. </xs:attribute>
  448. <xs:attribute name="inclusive" type="xs:boolean" default="false">
  449. <xs:annotation>
  450. <xs:documentation source="rn_added_4.0"/>
  451. </xs:annotation>
  452. </xs:attribute>
  453. </xs:complexType>
  454. </xs:element>
  455. </xs:sequence>
  456. </xs:complexType>
  457. </xs:element>
  458. <xs:element name="styleRangeRemaining" minOccurs="0">
  459. <xs:annotation>
  460. <xs:documentation source="rn_added_4.0"/>
  461. </xs:annotation>
  462. <xs:complexType>
  463. <xs:all>
  464. <xs:element ref="style" minOccurs="0"/>
  465. </xs:all>
  466. </xs:complexType>
  467. </xs:element>
  468. <xs:element ref="styleDefault" minOccurs="0"/>
  469. </xs:all>
  470. <xs:attribute name="name" type="xs:string" use="required"/>
  471. <xs:attribute name="type" use="required">
  472. <xs:annotation>
  473. <xs:documentation source="doc_att_rangeConditionalStyle_type"/>
  474. </xs:annotation>
  475. <xs:simpleType>
  476. <xs:restriction base="xs:NMTOKEN">
  477. <xs:enumeration value="number"/>
  478. <xs:enumeration value="date"/>
  479. <xs:enumeration value="dateTime"/>
  480. <xs:enumeration value="time">
  481. <xs:annotation>
  482. <xs:documentation source="doc_enum_rangeConditionalStyle_type_time"/>
  483. </xs:annotation>
  484. </xs:enumeration>
  485. <xs:enumeration value="interval"/>
  486. </xs:restriction>
  487. </xs:simpleType>
  488. </xs:attribute>
  489. </xs:complexType>
  490. </xs:element>
  491. <xs:element name="stringsConditionalStyle">
  492. <xs:annotation>
  493. <xs:documentation source="rn_added_4.0"/>
  494. <xs:documentation>Picks a style based on equality with sets of values or defined ranges of values. The styleValueConditions will be evaluated in order to determine if the value is covered by them. If true, then the style will be applied. If none of them are applied, then the styleDefault will be applied.</xs:documentation>
  495. </xs:annotation>
  496. <xs:complexType>
  497. <xs:all>
  498. <xs:element ref="conditionalDataItem"/>
  499. <xs:element name="stringConditions" minOccurs="0">
  500. <xs:annotation>
  501. <xs:documentation source="rn_added_4.0"/>
  502. </xs:annotation>
  503. <xs:complexType>
  504. <xs:sequence>
  505. <xs:choice maxOccurs="unbounded">
  506. <xs:element name="stringValueList">
  507. <xs:annotation>
  508. <xs:documentation source="rn_added_4.0"/>
  509. </xs:annotation>
  510. <xs:complexType>
  511. <xs:all>
  512. <xs:element name="styleValues">
  513. <xs:annotation>
  514. <xs:documentation source="rn_added_4.0"/>
  515. </xs:annotation>
  516. <xs:complexType>
  517. <xs:sequence>
  518. <xs:element ref="styleValue" maxOccurs="unbounded"/>
  519. </xs:sequence>
  520. </xs:complexType>
  521. </xs:element>
  522. <xs:element ref="style" minOccurs="0"/>
  523. </xs:all>
  524. <xs:attribute name="selectedValues" type="xs:boolean" default="true">
  525. <xs:annotation>
  526. <xs:documentation source="rn_internal_4.0"/>
  527. </xs:annotation>
  528. </xs:attribute>
  529. </xs:complexType>
  530. </xs:element>
  531. <xs:element name="stringCriteria">
  532. <xs:annotation>
  533. <xs:documentation source="rn_added_4.0"/>
  534. </xs:annotation>
  535. <xs:complexType>
  536. <xs:all>
  537. <xs:element ref="styleValue"/>
  538. <xs:element ref="style" minOccurs="0"/>
  539. </xs:all>
  540. <xs:attribute name="operator" use="required">
  541. <xs:annotation>
  542. <xs:documentation source="rn_added_4.0"/>
  543. </xs:annotation>
  544. <xs:simpleType>
  545. <xs:restriction base="xs:string">
  546. <xs:enumeration value="contains"/>
  547. <xs:enumeration value="like"/>
  548. <xs:enumeration value="beginsWith"/>
  549. <xs:enumeration value="endsWith"/>
  550. <xs:enumeration value="notContains"/>
  551. <xs:enumeration value="notLike"/>
  552. <xs:enumeration value="notEndsWith"/>
  553. <xs:enumeration value="notBeginsWith"/>
  554. </xs:restriction>
  555. </xs:simpleType>
  556. </xs:attribute>
  557. </xs:complexType>
  558. </xs:element>
  559. </xs:choice>
  560. </xs:sequence>
  561. </xs:complexType>
  562. </xs:element>
  563. <xs:element ref="styleDefault" minOccurs="0"/>
  564. </xs:all>
  565. <xs:attribute name="name" type="xs:string" use="required"/>
  566. </xs:complexType>
  567. </xs:element>
  568. </xs:choice>
  569. </xs:sequence>
  570. </xs:complexType>
  571. </xs:element>
  572. <xs:element name="conditionalStyleRefs">
  573. <xs:annotation>
  574. <xs:documentation source="rn_added_4.0"/>
  575. </xs:annotation>
  576. <xs:complexType>
  577. <xs:sequence>
  578. <xs:element name="conditionalStyleRef" maxOccurs="unbounded">
  579. <xs:annotation>
  580. <xs:documentation source="rn_added_4.0"/>
  581. </xs:annotation>
  582. <xs:complexType>
  583. <xs:attribute name="refConditionalStyle" type="xs:string" use="required"/>
  584. </xs:complexType>
  585. </xs:element>
  586. </xs:sequence>
  587. </xs:complexType>
  588. </xs:element>
  589. <xs:element name="conditionalDataItem">
  590. <xs:annotation>
  591. <xs:documentation source="rn_added_4.0"/>
  592. </xs:annotation>
  593. <xs:complexType>
  594. <xs:attribute name="refQuery" type="xs:string" use="required"/>
  595. <xs:attribute name="refDataItem" type="xs:string" use="required"/>
  596. </xs:complexType>
  597. </xs:element>
  598. <xs:element name="styleDefault">
  599. <xs:annotation>
  600. <xs:documentation source="rn_added_4.0"/>
  601. </xs:annotation>
  602. <xs:complexType>
  603. <xs:all>
  604. <xs:element ref="style" minOccurs="0"/>
  605. </xs:all>
  606. </xs:complexType>
  607. </xs:element>
  608. <xs:element name="containerDropShadow">
  609. <xs:annotation>
  610. <xs:documentation source="rn_added_5.0"/>
  611. <xs:documentation>Drop shadow that is rendered around containers. The offset attributes are measured in pixels and can be negative.</xs:documentation>
  612. </xs:annotation>
  613. <xs:complexType>
  614. <xs:attribute name="shadowColor" type="ColorType" default="gray">
  615. <xs:annotation>
  616. <xs:documentation source="rn_added_5.0"/>
  617. </xs:annotation>
  618. </xs:attribute>
  619. <xs:attribute name="offsetX" type="xs:int" default="5">
  620. <xs:annotation>
  621. <xs:documentation source="rn_added_5.0"/>
  622. </xs:annotation>
  623. </xs:attribute>
  624. <xs:attribute name="offsetY" type="xs:int" default="5">
  625. <xs:annotation>
  626. <xs:documentation source="rn_added_5.0"/>
  627. </xs:annotation>
  628. </xs:attribute>
  629. <xs:attributeGroup ref="TransparencyAttributes"/>
  630. </xs:complexType>
  631. </xs:element>
  632. <xs:element name="pageGradient">
  633. <xs:annotation>
  634. <xs:documentation source="rn_added_5.0"/>
  635. <xs:documentation>Gradient that can be applied to the entire page. It will resize when the browser is resized, unlike the generatedBackground gradient.</xs:documentation>
  636. </xs:annotation>
  637. <xs:complexType>
  638. <xs:attribute name="direction" default="down">
  639. <xs:annotation>
  640. <xs:documentation source="doc_att_direction_chart"/>
  641. </xs:annotation>
  642. <xs:simpleType>
  643. <xs:restriction base="xs:NMTOKEN">
  644. <xs:enumeration value="up">
  645. <xs:annotation>
  646. <xs:documentation source="doc_enum_direction_up"/>
  647. </xs:annotation>
  648. </xs:enumeration>
  649. <xs:enumeration value="down">
  650. <xs:annotation>
  651. <xs:documentation source="doc_enum_direction_down"/>
  652. </xs:annotation>
  653. </xs:enumeration>
  654. <xs:enumeration value="left">
  655. <xs:annotation>
  656. <xs:documentation source="doc_enum_direction_left"/>
  657. </xs:annotation>
  658. </xs:enumeration>
  659. <xs:enumeration value="right">
  660. <xs:annotation>
  661. <xs:documentation source="doc_enum_direction_right"/>
  662. </xs:annotation>
  663. </xs:enumeration>
  664. </xs:restriction>
  665. </xs:simpleType>
  666. </xs:attribute>
  667. <xs:attribute name="fromColor" type="ColorType" default="white"/>
  668. <xs:attribute name="toColor" type="ColorType" default="gray"/>
  669. </xs:complexType>
  670. </xs:element>
  671. <xs:element name="listSuppress">
  672. <xs:annotation>
  673. <xs:documentation>Describes the suppress applied to the list element.</xs:documentation>
  674. <xs:documentation source="rn_added_5.0"/>
  675. </xs:annotation>
  676. <xs:complexType>
  677. <xs:attributeGroup ref="SuppressAttributes"/>
  678. </xs:complexType>
  679. </xs:element>
  680. <xs:element name="crosstabSuppress">
  681. <xs:annotation>
  682. <xs:documentation>Describes the suppress applied to the crosstab element.</xs:documentation>
  683. <xs:documentation source="rn_added_5.0"/>
  684. </xs:annotation>
  685. <xs:complexType>
  686. <xs:attribute name="type" default="rowsAndColumns">
  687. <xs:annotation>
  688. <xs:documentation source="doc_att_crosstabSuppress_type"/>
  689. <xs:documentation source="rn_added_5.0"/>
  690. </xs:annotation>
  691. <xs:simpleType>
  692. <xs:restriction base="xs:string">
  693. <xs:enumeration value="rows">
  694. <xs:annotation>
  695. <xs:documentation source="doc_enum_crosstabSuppress_rows"/>
  696. </xs:annotation>
  697. </xs:enumeration>
  698. <xs:enumeration value="columns">
  699. <xs:annotation>
  700. <xs:documentation source="doc_enum_crosstabSuppress_columns"/>
  701. </xs:annotation>
  702. </xs:enumeration>
  703. <xs:enumeration value="rowsAndColumns">
  704. <xs:annotation>
  705. <xs:documentation source="doc_enum_crosstabSuppress_rowsAndColumns"/>
  706. </xs:annotation>
  707. </xs:enumeration>
  708. </xs:restriction>
  709. </xs:simpleType>
  710. </xs:attribute>
  711. <xs:attributeGroup ref="SuppressAttributes"/>
  712. </xs:complexType>
  713. </xs:element>
  714. <xs:element name="chartSuppress">
  715. <xs:annotation>
  716. <xs:documentation>Describes the suppress applied to the chart element.</xs:documentation>
  717. <xs:documentation source="rn_added_5.0"/>
  718. </xs:annotation>
  719. <xs:complexType>
  720. <xs:attribute name="type" default="categoriesAndSeries">
  721. <xs:annotation>
  722. <xs:documentation source="doc_att_chartSuppress_type"/>
  723. <xs:documentation source="rn_added_5.0"/>
  724. </xs:annotation>
  725. <xs:simpleType>
  726. <xs:restriction base="xs:string">
  727. <xs:enumeration value="categories"/>
  728. <xs:enumeration value="series">
  729. <xs:annotation>
  730. <xs:documentation source="doc_enum_chartSuppress_series"/>
  731. </xs:annotation>
  732. </xs:enumeration>
  733. <xs:enumeration value="categoriesAndSeries"/>
  734. </xs:restriction>
  735. </xs:simpleType>
  736. </xs:attribute>
  737. <xs:attributeGroup ref="SuppressAttributes"/>
  738. </xs:complexType>
  739. </xs:element>
  740. <xs:complexType name="DataSourceType">
  741. <xs:choice>
  742. <xs:element name="staticValue">
  743. <xs:simpleType>
  744. <xs:restriction base="xs:string">
  745. <xs:whiteSpace value="preserve"/>
  746. </xs:restriction>
  747. </xs:simpleType>
  748. </xs:element>
  749. <xs:element name="dataItemValue">
  750. <xs:annotation>
  751. <xs:documentation>Represents the value of the specificied data item that is available in the current layout context.</xs:documentation>
  752. </xs:annotation>
  753. <xs:complexType>
  754. <xs:attribute name="refDataItem" type="xs:string" use="required"/>
  755. </xs:complexType>
  756. </xs:element>
  757. <xs:element ref="reportExpression"/>
  758. <xs:element name="dataItemLabel">
  759. <xs:annotation>
  760. <xs:documentation>Represent the label of the data item specifiied. The label is available in the result set.</xs:documentation>
  761. </xs:annotation>
  762. <xs:complexType>
  763. <xs:attribute name="refDataItem" type="xs:string" use="required"/>
  764. </xs:complexType>
  765. </xs:element>
  766. <xs:element name="memberCaption">
  767. <xs:annotation>
  768. <xs:documentation>Represents the caption of the current member context being rendered in the layout. This element is only allowed within a crosstabs or charts where edge members are rendered.</xs:documentation>
  769. </xs:annotation>
  770. <xs:complexType/>
  771. </xs:element>
  772. <xs:element name="cellValue">
  773. <xs:annotation>
  774. <xs:documentation>Represents the value of the current cell context being rendered in the layout. This element is only for crosstabs or charts where the cell values are rendered.</xs:documentation>
  775. </xs:annotation>
  776. <xs:complexType/>
  777. </xs:element>
  778. </xs:choice>
  779. </xs:complexType>
  780. <xs:complexType name="GenericLayoutStyleType">
  781. <xs:all>
  782. <xs:element ref="style" minOccurs="0"/>
  783. <xs:element ref="conditionalStyles" minOccurs="0"/>
  784. <xs:element ref="conditionalStyleRefs" minOccurs="0"/>
  785. <xs:element ref="XMLAttributes" minOccurs="0"/>
  786. </xs:all>
  787. <xs:attributeGroup ref="DefaultLayoutStyleAttributes"/>
  788. </xs:complexType>
  789. <xs:attributeGroup name="SuppressAttributes">
  790. <xs:attribute name="nulls" type="xs:boolean" default="true">
  791. <xs:annotation>
  792. <xs:documentation source="rn_added_5.0"/>
  793. </xs:annotation>
  794. </xs:attribute>
  795. <xs:attribute name="zero" type="xs:boolean" default="true">
  796. <xs:annotation>
  797. <xs:documentation source="rn_added_5.0"/>
  798. </xs:annotation>
  799. </xs:attribute>
  800. <xs:attribute name="divByZero" type="xs:boolean" default="true">
  801. <xs:annotation>
  802. <xs:documentation source="rn_added_5.0"/>
  803. </xs:annotation>
  804. </xs:attribute>
  805. <xs:attribute name="overflow" type="xs:boolean" default="true">
  806. <xs:annotation>
  807. <xs:documentation source="rn_added_5.0"/>
  808. </xs:annotation>
  809. </xs:attribute>
  810. </xs:attributeGroup>
  811. <xs:attributeGroup name="DefaultLayoutStyleAttributes">
  812. <xs:attribute name="class" type="xs:string">
  813. <xs:annotation>
  814. <xs:documentation source="rn_deprecated_4.0"/>
  815. <xs:documentation> HTML class name. This value will be transferred to the rendered output as an attribute of the output element. Typically, it is used to designate specific components of the layout for easy identification by CSS and XSL style sheets. The class name is explicit in that if no class name is specified then none will be used in the rendered output.</xs:documentation>
  816. </xs:annotation>
  817. </xs:attribute>
  818. </xs:attributeGroup>
  819. <xs:attributeGroup name="NameLayoutAttributes">
  820. <xs:attribute name="name" type="xs:string">
  821. <xs:annotation>
  822. <xs:documentation>Any layout element may be given a name. The name must be unique for all layout elements in the report. It is primarily allow a layout element to be referenced as a component (layoutComponentRef).</xs:documentation>
  823. </xs:annotation>
  824. </xs:attribute>
  825. </xs:attributeGroup>
  826. <xs:attributeGroup name="CommonLayoutAttributes">
  827. <xs:attributeGroup ref="DefaultLayoutStyleAttributes"/>
  828. <xs:attributeGroup ref="NameLayoutAttributes"/>
  829. </xs:attributeGroup>
  830. <xs:attributeGroup name="KeepWithAttributes">
  831. <xs:annotation>
  832. <xs:documentation/>
  833. </xs:annotation>
  834. <xs:attribute name="keepWithHeader" type="xs:positiveInteger">
  835. <xs:annotation>
  836. <xs:documentation>Renders all headers on same page as first N detail rows, where 'N' is the given numeric value. If not specified then a page break may occur between headers and their associated detail rows. </xs:documentation>
  837. </xs:annotation>
  838. </xs:attribute>
  839. <xs:attribute name="keepWithFooter" type="xs:positiveInteger">
  840. <xs:annotation>
  841. <xs:documentation>Renders all footers on same page as last N detail rows, where 'N' is the given numeric value. If not specified then a page break may occur between footers and their associated detail rows.</xs:documentation>
  842. </xs:annotation>
  843. </xs:attribute>
  844. </xs:attributeGroup>
  845. <xs:attributeGroup name="KeepWithNextPrevAttributes">
  846. <xs:attribute name="keepWithNext" type="xs:positiveInteger">
  847. <xs:annotation>
  848. <xs:documentation>Renders this element with the N next elements on the edge, where 'N' is the given numeric value. If not specified then a page break may occur between this element and the next element on the edge. </xs:documentation>
  849. </xs:annotation>
  850. </xs:attribute>
  851. <xs:attribute name="keepWithPrevious" type="xs:positiveInteger">
  852. <xs:annotation>
  853. <xs:documentation>Renders this element with the N previous elements on the edge, where 'N' is the given numeric value. If not specified then a page break may occur between this element and the previous element on the edge. </xs:documentation>
  854. </xs:annotation>
  855. </xs:attribute>
  856. </xs:attributeGroup>
  857. <xs:attributeGroup name="ResetPageAttributes">
  858. <xs:attribute name="resetPageNumber" type="xs:positiveInteger">
  859. <xs:annotation>
  860. <xs:documentation>If this attribute is specified, then whenever this layout element is rendered, the current page number for the rendering will be reset to the indicated value.</xs:documentation>
  861. </xs:annotation>
  862. </xs:attribute>
  863. <xs:attribute name="resetPageCount" type="xs:positiveInteger">
  864. <xs:annotation>
  865. <xs:documentation>If this attribute is specified, then whenever this layout element is rendered, the current page count for the rendering will be reset to the indicated value.</xs:documentation>
  866. </xs:annotation>
  867. </xs:attribute>
  868. </xs:attributeGroup>
  869. <xs:attributeGroup name="RepeatEveryPageAttributes">
  870. <xs:attribute name="repeatEveryPage" type="xs:boolean" default="false">
  871. <xs:annotation>
  872. <xs:documentation source="rn_added_4.0"/>
  873. <xs:documentation>Controls repetitive rendering of this object on each page. When the frame contains more columns than can be rendered on a given page, an overflow (or "fault right") occurs. When the frame contains more rows than can be rendered on a given page, an page break (or "fault down") occurs. When 'true', this object will be rendered on the next or overflow page. </xs:documentation>
  874. </xs:annotation>
  875. </xs:attribute>
  876. </xs:attributeGroup>
  877. <xs:attributeGroup name="GlobalQuerySingletonAttributes">
  878. <xs:annotation>
  879. <xs:documentation> Any element that has these attributes can act as a global singleton. All elements in the layout that reference same query and have singleton="true" would share the same result set, the row cursor would never be moved pass row 1. All elements in the layout (not including frames) that reference the same query and have singleton="false" would use the resultset of the closest parent frame that references that query, the row context in this case is clear. If no parent frame can be found, then no value will be rendered.
  880. </xs:documentation>
  881. </xs:annotation>
  882. <xs:attribute name="refQuery" type="xs:string" use="optional"/>
  883. <xs:attribute name="singleton" type="xs:boolean" default="false"/>
  884. </xs:attributeGroup>
  885. <xs:attributeGroup name="DescriptionLayoutAttributes">
  886. <xs:attribute name="description" type="xs:string" use="optional"/>
  887. </xs:attributeGroup>
  888. <xs:attributeGroup name="PushToBottom">
  889. <xs:annotation>
  890. <xs:documentation>This attribute indicates that the footer element is to be pushed to the bottom of the rendering. The last instance of the footer element rendered on this page will be the one pushed to the bottom.</xs:documentation>
  891. </xs:annotation>
  892. <xs:attribute name="pushToBottom" type="xs:boolean" default="false"/>
  893. </xs:attributeGroup>
  894. <xs:attributeGroup name="SolveOrderAttributes">
  895. <xs:attribute name="solveOrder" type="xs:integer" use="optional">
  896. <xs:annotation>
  897. <xs:documentation source="rn_deprecated_4.0">Specify the solve order with the solveOrder attribute on the dataItem.</xs:documentation>
  898. <xs:documentation source="doc_att_solveOrder_measures"/>
  899. <xs:documentation>[DEPRECATED] The solveOrder attribute should now be specified on the dataItem.
  900. Specifies the solve order for this calculation. If no solve order is specified then the solve order will be follow the default rules that the server uses to determine solve order.</xs:documentation>
  901. </xs:annotation>
  902. </xs:attribute>
  903. </xs:attributeGroup>
  904. <xs:attributeGroup name="HorizontalPaginationAttributes">
  905. <xs:attribute name="horizontalPagination" type="xs:boolean" default="false">
  906. <xs:annotation>
  907. <xs:documentation>Specifies whether this element will do horizontal pagination.</xs:documentation>
  908. </xs:annotation>
  909. </xs:attribute>
  910. </xs:attributeGroup>
  911. <xs:attributeGroup name="NoPageWhenNoDataAttributes">
  912. <xs:annotation>
  913. <xs:documentation>If this attribute is set to true then the page will be rendered when no data contents are generated</xs:documentation>
  914. </xs:annotation>
  915. <xs:attribute name="renderPageWhenEmpty" type="xs:boolean" default="true">
  916. <xs:annotation>
  917. <xs:documentation source="rn_added_4.0"/>
  918. </xs:annotation>
  919. </xs:attribute>
  920. </xs:attributeGroup>
  921. <xs:element name="styleValue" type="TextType">
  922. <xs:annotation>
  923. <xs:documentation source="rn_added_4.0"/>
  924. </xs:annotation>
  925. </xs:element>
  926. </xs:schema>