prompts.xsl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: CCS
  5. (c) Copyright IBM Corp. 2005, 2019
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet xmlns:rds="http://developer.cognos.com/schemas/rds/types/2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
  9. <!---->
  10. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
  11. <xsl:template match="/">
  12. <rds:prompts>
  13. <canFinish>
  14. <xsl:choose>
  15. <xsl:when test="Document/DATA/PAGE/@canFinish">
  16. <xsl:value-of select="Document/DATA/PAGE/@canFinish"/>
  17. </xsl:when>
  18. <xsl:otherwise>true</xsl:otherwise>
  19. </xsl:choose>
  20. </canFinish>
  21. <hasNextPage>
  22. <xsl:choose>
  23. <xsl:when test="Document/DATA/PAGE/@canNext">
  24. <xsl:value-of select="Document/DATA/PAGE/@canNext"/>
  25. </xsl:when>
  26. <xsl:otherwise>false</xsl:otherwise>
  27. </xsl:choose>
  28. </hasNextPage>
  29. <xsl:apply-templates select="//FORM[parent::node()[name()!='FORM']] | //selectValue[parent::node()[name()!='FORM']] | //textBox[parent::node()[name()!='FORM']] | //selectDateTime[parent::node()[name()!='FORM']] | //selectDate[parent::node()[name()!='FORM']]| //selectTime[parent::node()[name()!='FORM']]| //selectWithSearch[parent::node()[name()!='FORM']] | //selectWithTree[parent::node()[name()!='FORM']] | //selectInterval[parent::node()[name()!='FORM']]"/>
  30. </rds:prompts>
  31. </xsl:template>
  32. <xsl:template match="FORM">
  33. <xsl:choose>
  34. <xsl:when test="@columnName">
  35. <xsl:apply-templates select="selectValue | textBox | selectDateTime | selectDate | selectTime | selectWithSearch | selectWithTree | selectInterval | selectDataSourceSignon">
  36. <xsl:with-param name="colName">
  37. <xsl:value-of select="@columnName"/>
  38. </xsl:with-param>
  39. </xsl:apply-templates>
  40. </xsl:when>
  41. <xsl:otherwise>
  42. <xsl:apply-templates select="selectValue | textBox | selectDateTime | selectDate | selectTime | selectWithSearch | selectWithTree | selectInterval | selectDataSourceSignon | FORM"/>
  43. </xsl:otherwise>
  44. </xsl:choose>
  45. </xsl:template>
  46. <xsl:template match="selectDataSourceSignon ">
  47. <xsl:param name="colName"/>
  48. <rds:item>
  49. <rds:PDataSource>
  50. <rds:name>
  51. <xsl:value-of select="concat('credential:', ./connection/@name)"/>
  52. </rds:name>
  53. <rds:connection>
  54. <rds:name>
  55. <xsl:value-of select="./connection/@name"/>
  56. </rds:name>
  57. <rds:searchPath>
  58. <xsl:value-of select="./connection/@searchPath"/>
  59. </rds:searchPath>
  60. <rds:selected>
  61. <xsl:value-of select="./connection/@selected"/>
  62. </rds:selected>
  63. </rds:connection>
  64. <xsl:for-each select="./connection/signon">
  65. <rds:signon>
  66. <xsl:if test="@name">
  67. <rds:name>
  68. <xsl:value-of select="@name"/>
  69. </rds:name>
  70. </xsl:if>
  71. <xsl:if test="@searchPath">
  72. <rds:searchPath>
  73. <xsl:value-of select="@searchPath"/>
  74. </rds:searchPath>
  75. </xsl:if>
  76. <xsl:if test="@selected">
  77. <rds:selected>
  78. <xsl:value-of select="@selected"/>
  79. </rds:selected>
  80. </xsl:if>
  81. </rds:signon>
  82. </xsl:for-each>
  83. </rds:PDataSource>
  84. </rds:item>
  85. </xsl:template>
  86. <xsl:template match="selectValue">
  87. <xsl:param name="colName"/>
  88. <rds:item>
  89. <rds:PListBox>
  90. <rds:name>
  91. <xsl:value-of select="@parameter"/>
  92. </rds:name>
  93. <rds:multiSelect>
  94. <xsl:value-of select="@multiSelect"/>
  95. </rds:multiSelect>
  96. <rds:range>
  97. <xsl:value-of select="@range"/>
  98. </rds:range>
  99. <rds:required>
  100. <xsl:value-of select="@required"/>
  101. </rds:required>
  102. <rds:autoSubmit>
  103. <xsl:choose>
  104. <xsl:when test="@autoSubmit">
  105. <xsl:value-of select="@autoSubmit"/>
  106. </xsl:when>
  107. <xsl:otherwise>false</xsl:otherwise>
  108. </xsl:choose>
  109. </rds:autoSubmit>
  110. <xsl:choose>
  111. <xsl:when test="@columnName">
  112. <rds:columnName>
  113. <xsl:value-of select="@columnName"/>
  114. </rds:columnName>
  115. </xsl:when>
  116. <xsl:otherwise>
  117. <xsl:if test="$colName">
  118. <rds:columnName>
  119. <xsl:value-of select="$colName"/>
  120. </rds:columnName>
  121. </xsl:if>
  122. </xsl:otherwise>
  123. </xsl:choose>
  124. <rds:selections>
  125. <xsl:choose>
  126. <xsl:when test="selectChoices/selectOption">
  127. <xsl:for-each select="selectChoices/selectOption">
  128. <rds:options>
  129. <xsl:choose>
  130. <xsl:when test="@nullUse">
  131. <rds:useValue nil="true"/>
  132. </xsl:when>
  133. <xsl:otherwise>
  134. <rds:useValue>
  135. <xsl:value-of select="@useValue"/>
  136. </rds:useValue>
  137. </xsl:otherwise>
  138. </xsl:choose>
  139. <xsl:choose>
  140. <xsl:when test="@nullDisplay">
  141. <rds:displayValue nil="true"/>
  142. </xsl:when>
  143. <xsl:otherwise>
  144. <rds:displayValue>
  145. <xsl:value-of select="@displayValue"/>
  146. </rds:displayValue>
  147. </xsl:otherwise>
  148. </xsl:choose>
  149. </rds:options>
  150. </xsl:for-each>
  151. </xsl:when>
  152. <xsl:otherwise>
  153. <xsl:for-each select="selectChoices/selectBoundRange | selectChoices/selectUnboundedEndRange| selectChoices/selectUnboundedStartRange ">
  154. <rds:rangeOptions>
  155. <xsl:if test="start">
  156. <rds:start>
  157. <rds:useValue>
  158. <xsl:value-of select="start/@useValue"/>
  159. </rds:useValue>
  160. <rds:displayValue>
  161. <xsl:value-of select="start/@displayValue"/>
  162. </rds:displayValue>
  163. </rds:start>
  164. </xsl:if>
  165. <xsl:if test="end">
  166. <rds:end>
  167. <rds:useValue>
  168. <xsl:value-of select="end/@useValue"/>
  169. </rds:useValue>
  170. <rds:displayValue>
  171. <xsl:value-of select="end/@displayValue"/>
  172. </rds:displayValue>
  173. </rds:end>
  174. </xsl:if>
  175. </rds:rangeOptions>
  176. </xsl:for-each>
  177. </xsl:otherwise>
  178. </xsl:choose>
  179. </rds:selections>
  180. <xsl:for-each select="selectOptions/selectOption">
  181. <rds:options>
  182. <xsl:choose>
  183. <xsl:when test="@nullUse">
  184. <rds:useValue nil="true"/>
  185. </xsl:when>
  186. <xsl:otherwise>
  187. <rds:useValue>
  188. <xsl:value-of select="@useValue"/>
  189. </rds:useValue>
  190. </xsl:otherwise>
  191. </xsl:choose>
  192. <xsl:choose>
  193. <xsl:when test="@nullDisplay">
  194. <rds:displayValue nil="true"/>
  195. </xsl:when>
  196. <xsl:otherwise>
  197. <rds:displayValue>
  198. <xsl:value-of select="@displayValue"/>
  199. </rds:displayValue>
  200. </xsl:otherwise>
  201. </xsl:choose>
  202. </rds:options>
  203. </xsl:for-each>
  204. </rds:PListBox>
  205. </rds:item>
  206. </xsl:template>
  207. <xsl:template match="selectWithSearch">
  208. <xsl:param name="colName"/>
  209. <rds:item>
  210. <rds:PSearchAndSelect>
  211. <rds:name>
  212. <xsl:value-of select="@parameter"/>
  213. </rds:name>
  214. <rds:multiSelect>
  215. <xsl:value-of select="@multiSelect"/>
  216. </rds:multiSelect>
  217. <rds:required>
  218. <xsl:value-of select="@required"/>
  219. </rds:required>
  220. <rds:id>
  221. <xsl:value-of select="@name"/>
  222. </rds:id>
  223. <rds:parameter>
  224. <xsl:value-of select="@parameter"/>
  225. </rds:parameter>
  226. <rds:matchAll>
  227. <xsl:value-of select="@matchAll"/>
  228. </rds:matchAll>
  229. <rds:matchAnywhere>
  230. <xsl:value-of select="@matchAnywhere"/>
  231. </rds:matchAnywhere>
  232. <rds:autoSubmit>
  233. <xsl:choose>
  234. <xsl:when test="@autoSubmit">
  235. <xsl:value-of select="@autoSubmit"/>
  236. </xsl:when>
  237. <xsl:otherwise>false</xsl:otherwise>
  238. </xsl:choose>
  239. </rds:autoSubmit>
  240. <xsl:choose>
  241. <xsl:when test="@columnName">
  242. <rds:columnName>
  243. <xsl:value-of select="@columnName"/>
  244. </rds:columnName>
  245. </xsl:when>
  246. <xsl:otherwise>
  247. <xsl:if test="$colName">
  248. <rds:columnName>
  249. <xsl:value-of select="$colName"/>
  250. </rds:columnName>
  251. </xsl:if>
  252. </xsl:otherwise>
  253. </xsl:choose>
  254. <rds:selections>
  255. <xsl:choose>
  256. <xsl:when test="selectChoices/selectOption">
  257. <xsl:for-each select="selectChoices/selectOption">
  258. <rds:options>
  259. <xsl:choose>
  260. <xsl:when test="@nullUse">
  261. <rds:useValue nil="true"/>
  262. </xsl:when>
  263. <xsl:otherwise>
  264. <rds:useValue>
  265. <xsl:value-of select="@useValue"/>
  266. </rds:useValue>
  267. </xsl:otherwise>
  268. </xsl:choose>
  269. <xsl:choose>
  270. <xsl:when test="@nullDisplay">
  271. <rds:displayValue nil="true"/>
  272. </xsl:when>
  273. <xsl:otherwise>
  274. <rds:displayValue>
  275. <xsl:value-of select="@displayValue"/>
  276. </rds:displayValue>
  277. </xsl:otherwise>
  278. </xsl:choose>
  279. </rds:options>
  280. </xsl:for-each>
  281. </xsl:when>
  282. <xsl:otherwise>
  283. <xsl:for-each select="selectChoices/selectBoundRange | selectChoices/selectUnboundedEndRange| selectChoices/selectUnboundedStartRange ">
  284. <rds:rangeOptions>
  285. <xsl:if test="start">
  286. <rds:start>
  287. <xsl:choose>
  288. <xsl:when test="start/@nullUse">
  289. <rds:useValue nil="true"/>
  290. </xsl:when>
  291. <xsl:otherwise>
  292. <rds:useValue>
  293. <xsl:value-of select="start/@useValue"/>
  294. </rds:useValue>
  295. </xsl:otherwise>
  296. </xsl:choose>
  297. <xsl:choose>
  298. <xsl:when test="start/@nullDisplay">
  299. <rds:displayValue nil="true"/>
  300. </xsl:when>
  301. <xsl:otherwise>
  302. <rds:displayValue>
  303. <xsl:value-of select="start/@displayValue"/>
  304. </rds:displayValue>
  305. </xsl:otherwise>
  306. </xsl:choose>
  307. </rds:start>
  308. </xsl:if>
  309. <xsl:if test="end">
  310. <rds:end>
  311. <rds:useValue>
  312. <xsl:value-of select="end/@useValue"/>
  313. </rds:useValue>
  314. <rds:displayValue>
  315. <xsl:value-of select="end/@displayValue"/>
  316. </rds:displayValue>
  317. </rds:end>
  318. </xsl:if>
  319. </rds:rangeOptions>
  320. </xsl:for-each>
  321. </xsl:otherwise>
  322. </xsl:choose>
  323. </rds:selections>
  324. <xsl:for-each select="selectOptions/selectOption">
  325. <rds:options>
  326. <rds:useValue>
  327. <xsl:value-of select="@useValue"/>
  328. </rds:useValue>
  329. <rds:displayValue>
  330. <xsl:value-of select="@displayValue"/>
  331. </rds:displayValue>
  332. </rds:options>
  333. </xsl:for-each>
  334. </rds:PSearchAndSelect>
  335. </rds:item>
  336. </xsl:template>
  337. <xsl:template match="textBox">
  338. <xsl:param name="colName"/>
  339. <rds:item>
  340. <rds:PTextBox>
  341. <rds:name>
  342. <xsl:value-of select="@parameter"/>
  343. </rds:name>
  344. <rds:multiSelect>
  345. <xsl:value-of select="@multiSelect"/>
  346. </rds:multiSelect>
  347. <rds:range>
  348. <xsl:value-of select="@range"/>
  349. </rds:range>
  350. <rds:required>
  351. <xsl:value-of select="@required"/>
  352. </rds:required>
  353. <rds:numericOnly>
  354. <xsl:value-of select="@numbersOnly"/>
  355. </rds:numericOnly>
  356. <rds:autoSubmit>
  357. <xsl:choose>
  358. <xsl:when test="@autoSubmit">
  359. <xsl:value-of select="@autoSubmit"/>
  360. </xsl:when>
  361. <xsl:otherwise>false</xsl:otherwise>
  362. </xsl:choose>
  363. </rds:autoSubmit>
  364. <xsl:choose>
  365. <xsl:when test="@columnName">
  366. <rds:columnName>
  367. <xsl:value-of select="@columnName"/>
  368. </rds:columnName>
  369. </xsl:when>
  370. <xsl:otherwise>
  371. <xsl:if test="$colName">
  372. <rds:columnName>
  373. <xsl:value-of select="$colName"/>
  374. </rds:columnName>
  375. </xsl:if>
  376. </xsl:otherwise>
  377. </xsl:choose>
  378. <rds:selections>
  379. <xsl:choose>
  380. <xsl:when test="selectChoices/selectOption">
  381. <xsl:for-each select="selectChoices/selectOption">
  382. <rds:options>
  383. <rds:useValue>
  384. <xsl:value-of select="@useValue"/>
  385. </rds:useValue>
  386. <rds:displayValue>
  387. <xsl:value-of select="@displayValue"/>
  388. </rds:displayValue>
  389. </rds:options>
  390. </xsl:for-each>
  391. </xsl:when>
  392. <xsl:otherwise>
  393. <xsl:for-each select="selectChoices/selectBoundRange | selectChoices/selectUnboundedEndRange| selectChoices/selectUnboundedStartRange ">
  394. <rds:rangeOptions>
  395. <xsl:if test="start">
  396. <rds:start>
  397. <rds:useValue>
  398. <xsl:value-of select="start/@useValue"/>
  399. </rds:useValue>
  400. <rds:displayValue>
  401. <xsl:value-of select="start/@displayValue"/>
  402. </rds:displayValue>
  403. </rds:start>
  404. </xsl:if>
  405. <xsl:if test="end">
  406. <rds:end>
  407. <rds:useValue>
  408. <xsl:value-of select="end/@useValue"/>
  409. </rds:useValue>
  410. <rds:displayValue>
  411. <xsl:value-of select="end/@displayValue"/>
  412. </rds:displayValue>
  413. </rds:end>
  414. </xsl:if>
  415. </rds:rangeOptions>
  416. </xsl:for-each>
  417. </xsl:otherwise>
  418. </xsl:choose>
  419. </rds:selections>
  420. </rds:PTextBox>
  421. </rds:item>
  422. </xsl:template>
  423. <xsl:template match="selectWithTree">
  424. <xsl:param name="colName"/>
  425. <rds:item>
  426. <rds:PTreePrompt>
  427. <rds:name>
  428. <xsl:value-of select="@parameter"/>
  429. </rds:name>
  430. <rds:multiSelect>
  431. <xsl:value-of select="@multiSelect"/>
  432. </rds:multiSelect>
  433. <rds:required>
  434. <xsl:value-of select="@required"/>
  435. </rds:required>
  436. <rds:treeUI>
  437. <xsl:value-of select="@selectTreeUI"/>
  438. </rds:treeUI>
  439. <rds:canExpand>
  440. <xsl:value-of select="@canExpand"/>
  441. </rds:canExpand>
  442. <rds:autoSubmit>
  443. <xsl:choose>
  444. <xsl:when test="@autoSubmit">
  445. <xsl:value-of select="@autoSubmit"/>
  446. </xsl:when>
  447. <xsl:otherwise>false</xsl:otherwise>
  448. </xsl:choose>
  449. </rds:autoSubmit>
  450. <xsl:choose>
  451. <xsl:when test="@columnName">
  452. <rds:columnName>
  453. <xsl:value-of select="@columnName"/>
  454. </rds:columnName>
  455. </xsl:when>
  456. <xsl:otherwise>
  457. <xsl:if test="$colName">
  458. <rds:columnName>
  459. <xsl:value-of select="$colName"/>
  460. </rds:columnName>
  461. </xsl:if>
  462. </xsl:otherwise>
  463. </xsl:choose>
  464. <rds:selections>
  465. <xsl:for-each select="selectChoices/selectOption">
  466. <rds:options>
  467. <rds:useValue>
  468. <xsl:value-of select="@useValue"/>
  469. </rds:useValue>
  470. <rds:displayValue>
  471. <xsl:value-of select="@displayValue"/>
  472. </rds:displayValue>
  473. </rds:options>
  474. </xsl:for-each>
  475. </rds:selections>
  476. <rds:selectionsAncestry>
  477. <xsl:for-each select="selectChoicesAncestry/selectOption">
  478. <rds:options>
  479. <rds:useValue>
  480. <xsl:value-of select="@useValue"/>
  481. </rds:useValue>
  482. <rds:displayValue>
  483. <xsl:value-of select="@displayValue"/>
  484. </rds:displayValue>
  485. </rds:options>
  486. </xsl:for-each>
  487. </rds:selectionsAncestry>
  488. <rds:treePromptNode>
  489. <xsl:for-each select="./selectOptions/selectTreeOption">
  490. <rds:options>
  491. <rds:useValue>
  492. <xsl:value-of select="@useValue"/>
  493. </rds:useValue>
  494. <rds:displayValue>
  495. <xsl:value-of select="@displayValue"/>
  496. </rds:displayValue>
  497. </rds:options>
  498. </xsl:for-each>
  499. </rds:treePromptNode>
  500. </rds:PTreePrompt>
  501. </rds:item>
  502. </xsl:template>
  503. <xsl:template match="selectDate">
  504. <xsl:param name="colName"/>
  505. <xsl:call-template name="dateTime">
  506. <xsl:with-param name="dtType" select="'DATE'"/>
  507. <xsl:with-param name="colName" select="$colName"/>
  508. </xsl:call-template>
  509. </xsl:template>
  510. <xsl:template match="selectTime">
  511. <xsl:param name="colName"/>
  512. <xsl:call-template name="dateTime">
  513. <xsl:with-param name="dtType" select="'TIME'"/>
  514. <xsl:with-param name="colName" select="$colName"/>
  515. </xsl:call-template>
  516. </xsl:template>
  517. <xsl:template match="selectDateTime">
  518. <xsl:param name="colName"/>
  519. <xsl:call-template name="dateTime">
  520. <xsl:with-param name="dtType" select="'DATETIME'"/>
  521. <xsl:with-param name="colName" select="$colName"/>
  522. </xsl:call-template>
  523. </xsl:template>
  524. <xsl:template match="selectInterval">
  525. <xsl:param name="colName"/>
  526. <xsl:call-template name="dateTime">
  527. <xsl:with-param name="dtType" select="'INTERVAL'"/>
  528. <xsl:with-param name="colName" select="$colName"/>
  529. </xsl:call-template>
  530. </xsl:template>
  531. <xsl:template name="dateTime">
  532. <xsl:param name="colName"/>
  533. <xsl:param name="dtType"/>
  534. <rds:item>
  535. <rds:PDateTimeBox>
  536. <rds:name>
  537. <xsl:value-of select="@parameter"/>
  538. </rds:name>
  539. <rds:multiSelect>
  540. <xsl:value-of select="@multiSelect"/>
  541. </rds:multiSelect>
  542. <rds:range>
  543. <xsl:value-of select="@range"/>
  544. </rds:range>
  545. <rds:required>
  546. <xsl:value-of select="@required"/>
  547. </rds:required>
  548. <rds:valueType>
  549. <xsl:value-of select="$dtType"/>
  550. </rds:valueType>
  551. <xsl:choose>
  552. <xsl:when test="@calendar='Gregorian'">
  553. <rds:calendarType>GREGORIAN</rds:calendarType>
  554. </xsl:when>
  555. <xsl:when test="@calendar='Imperial'">
  556. <rds:calendarType>IMPERIAL</rds:calendarType>
  557. </xsl:when>
  558. <xsl:otherwise>
  559. <rds:calendarType>GREGORIAN</rds:calendarType>
  560. </xsl:otherwise>
  561. </xsl:choose>
  562. <rds:displaySeconds>
  563. <xsl:choose>
  564. <xsl:when test="@showSeconds">
  565. <xsl:value-of select="@showSeconds"/>
  566. </xsl:when>
  567. <xsl:otherwise>false</xsl:otherwise>
  568. </xsl:choose>
  569. </rds:displaySeconds>
  570. <rds:displayMilliSeconds>
  571. <xsl:choose>
  572. <xsl:when test="@showMilliseconds">
  573. <xsl:value-of select="@showMilliseconds"/>
  574. </xsl:when>
  575. <xsl:otherwise>false</xsl:otherwise>
  576. </xsl:choose>
  577. </rds:displayMilliSeconds>
  578. <rds:firstDate>
  579. <xsl:choose>
  580. <xsl:when test="@firstDate">
  581. <xsl:value-of select="@firstDate"/>
  582. </xsl:when>
  583. <xsl:otherwise>0001-01-01</xsl:otherwise>
  584. </xsl:choose>
  585. </rds:firstDate>
  586. <rds:lastDate>
  587. <xsl:choose>
  588. <xsl:when test="@lastDate">
  589. <xsl:value-of select="@lastDate"/>
  590. </xsl:when>
  591. <xsl:otherwise>9999-12-31</xsl:otherwise>
  592. </xsl:choose>
  593. </rds:lastDate>
  594. <rds:autoSubmit>
  595. <xsl:choose>
  596. <xsl:when test="@autoSubmit">
  597. <xsl:value-of select="@autoSubmit"/>
  598. </xsl:when>
  599. <xsl:otherwise>false</xsl:otherwise>
  600. </xsl:choose>
  601. </rds:autoSubmit>
  602. <xsl:choose>
  603. <xsl:when test="@columnName">
  604. <rds:columnName>
  605. <xsl:value-of select="@columnName"/>
  606. </rds:columnName>
  607. </xsl:when>
  608. <xsl:otherwise>
  609. <xsl:if test="$colName">
  610. <rds:columnName>
  611. <xsl:value-of select="$colName"/>
  612. </rds:columnName>
  613. </xsl:if>
  614. </xsl:otherwise>
  615. </xsl:choose>
  616. <rds:selections>
  617. <xsl:choose>
  618. <xsl:when test="selectChoices/selectOption">
  619. <xsl:for-each select="selectChoices/selectOption">
  620. <rds:options>
  621. <rds:useValue>
  622. <xsl:value-of select="@useValue"/>
  623. </rds:useValue>
  624. <rds:displayValue>
  625. <xsl:value-of select="@displayValue"/>
  626. </rds:displayValue>
  627. </rds:options>
  628. </xsl:for-each>
  629. </xsl:when>
  630. <xsl:otherwise>
  631. <xsl:for-each select="selectChoices/selectBoundRange | selectChoices/selectUnboundedEndRange| selectChoices/selectUnboundedStartRange ">
  632. <rds:rangeOptions>
  633. <xsl:if test="start">
  634. <rds:start>
  635. <rds:useValue>
  636. <xsl:value-of select="start/@useValue"/>
  637. </rds:useValue>
  638. <rds:displayValue>
  639. <xsl:value-of select="start/@displayValue"/>
  640. </rds:displayValue>
  641. </rds:start>
  642. </xsl:if>
  643. <xsl:if test="end">
  644. <rds:end>
  645. <rds:useValue>
  646. <xsl:value-of select="end/@useValue"/>
  647. </rds:useValue>
  648. <rds:displayValue>
  649. <xsl:value-of select="end/@displayValue"/>
  650. </rds:displayValue>
  651. </rds:end>
  652. </xsl:if>
  653. </rds:rangeOptions>
  654. </xsl:for-each>
  655. </xsl:otherwise>
  656. </xsl:choose>
  657. </rds:selections>
  658. </rds:PDateTimeBox>
  659. </rds:item>
  660. </xsl:template>
  661. </xsl:stylesheet>