Advertisement
Jefferson511

Untitled

Apr 13th, 2022
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
  4. >
  5. <xsl:output method="xml" indent="yes"/>
  6. <xsl:param name="DashboardEnvironment"></xsl:param>
  7. <xsl:template match="//Project">
  8. <style type="text/css">
  9. body, td, p {
  10. font-family: Arial, sans-serif;
  11. font-size:13px;
  12. }
  13. .title {
  14. font-weight:bold;
  15. }
  16. .description {
  17. font-style:italic;
  18. }
  19. .infoTable {
  20. background-color:#f5f5f5;
  21. border-collapse: collapse;
  22. }
  23. .infoTable td {
  24. border: 1px solid white;
  25. padding:5px;
  26. vertical-align:top;
  27. }
  28. .heading {
  29. color:#a19999;
  30. font-size:11px;
  31. text-transform:uppercase;
  32. }
  33. </style>
  34.  
  35.  
  36. <table style="width:100%" border="0" cellpadding="5" cellspacing="1" class="infoTable">
  37. <tbody>
  38. <tr>
  39. <td>
  40. <table style="border:none; width:100%;">
  41. <tbody>
  42. <tr>
  43. <td>
  44. <span class="heading">
  45. <xsl:text>Email</xsl:text>
  46. </span>
  47. <br />
  48. <xsl:value-of select="Requester/Email" disable-output-escaping="yes"/>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td>
  53. <span class="heading">
  54. <xsl:text>Project Date</xsl:text>
  55. </span><br />
  56. <xsl:call-template name="formatdate">
  57. <xsl:with-param name="DateTimeStr" select="ProjectDate"/>
  58. </xsl:call-template>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td>
  63. <span class="heading">
  64. <xsl:text>Project ID</xsl:text>
  65. </span>
  66. <br />
  67. <xsl:value-of select="ProjectId" disable-output-escaping="yes"/>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td>
  72. <span class="heading">
  73. <xsl:text>Use in Decision Support tool and or Health Information Technology:</xsl:text>
  74. </span>
  75. <br />
  76. <xsl:value-of select="ContentUseQuestion" disable-output-escaping="yes"/>
  77. </td>
  78. </tr>
  79. </tbody>
  80. </table>
  81. </td>
  82. <td>
  83. <span class="heading">
  84. <xsl:text>Requester</xsl:text>
  85. </span>
  86. <br />
  87. <xsl:value-of select="Requester/FirstName" disable-output-escaping="yes"/>
  88. <xsl:text> </xsl:text>
  89. <xsl:value-of select="Requester/LastName" disable-output-escaping="yes"/>
  90. <xsl:text> </xsl:text>
  91. <xsl:for-each select="Requester/ListOfRequesterDegrees/RequesterDegree/Degree">
  92. <xsl:value-of select="Name" disable-output-escaping="yes"/>
  93. <xsl:if test="position() != last()">
  94. <xsl:text>, </xsl:text>
  95. </xsl:if>
  96. </xsl:for-each>
  97. <br />
  98. <xsl:value-of select="Requester/Company" disable-output-escaping="yes"/>
  99. <br />
  100. <xsl:value-of select="Requester/Phone/PhoneNumber" disable-output-escaping="yes"/>
  101. <br />
  102. <xsl:value-of select="Requester/RequesterType/Name" disable-output-escaping="yes"/>
  103. <xsl:if test="Requester/RequesterOther != ''">
  104. <xsl:text> - </xsl:text>
  105. <xsl:value-of select="Requester/RequesterOther"/>
  106. </xsl:if>
  107. </td>
  108. <td>
  109. <span class="heading">
  110. <xsl:text>Address</xsl:text>
  111. </span>
  112. <br />
  113. <xsl:value-of select="Requester/Address/Country/Name" disable-output-escaping="yes"/>
  114. <br />
  115. <xsl:value-of select="Requester/Address/StreetLine1" disable-output-escaping="yes"/>
  116. <br />
  117. <xsl:if test="Requester/Address/StreetLine2 != ''">
  118. <xsl:value-of select="Requester/Address/StreetLine2"/>
  119. <br />
  120. </xsl:if>
  121. <xsl:value-of select="Requester/Address/City" disable-output-escaping="yes"/>
  122. <br />
  123. <xsl:value-of select="Requester/Address/State/Name" disable-output-escaping="yes"/>
  124. <br />
  125. <xsl:value-of select="Requester/Address/Zip" disable-output-escaping="yes"/>
  126. </td>
  127. </tr>
  128. </tbody>
  129. </table>
  130.  
  131.  
  132. <hr />
  133. <p>
  134. <strong>Request Information:</strong>
  135. </p>
  136. <table style="width:80%" border="0" cellpadding="5" cellspacing="0">
  137. <tbody>
  138. <xsl:for-each select="ProjectMaterials/ProjectMaterialUse">
  139. <tr>
  140. <xsl:choose>
  141. <xsl:when test="Source/Value != 9 and Source/Value != 91">
  142. <td colspan="5">
  143. <span class="title">
  144. <xsl:value-of select="Source/Name" disable-output-escaping="yes" />
  145. </span>
  146. <br />
  147. <span class="description">
  148. <xsl:text>Name: </xsl:text>
  149. </span>
  150. <xsl:value-of select="GuidelineName" disable-output-escaping="yes" />
  151. <br />
  152. <span class="description">
  153. <xsl:text>Version: </xsl:text>
  154. </span>
  155. <xsl:choose>
  156. <xsl:when test="Major != ''">
  157. <xsl:value-of select="Major"/>
  158. <xsl:text>.</xsl:text>
  159. <xsl:value-of select="Year"/>
  160. </xsl:when>
  161. <xsl:otherwise>
  162. <xsl:text>N/A</xsl:text>
  163. </xsl:otherwise>
  164. </xsl:choose>
  165. <br />
  166. <xsl:choose>
  167. <xsl:when test="Source/Value = 63">
  168. <span class="description">
  169. <xsl:text>Request Type: </xsl:text>
  170. </span>
  171. <xsl:choose>
  172. <xsl:when test="RequestType != ''">
  173. <xsl:value-of select="RequestType" disable-output-escaping="yes" />
  174. </xsl:when>
  175. <xsl:otherwise>
  176. <xsl:text>N/A</xsl:text>
  177. </xsl:otherwise>
  178. </xsl:choose>
  179. <br />
  180. </xsl:when>
  181. </xsl:choose>
  182. <span class="description">
  183. <xsl:text>Specific Information: </xsl:text>
  184. </span>
  185. <xsl:choose>
  186. <xsl:when test="SpecificInformation != ''">
  187. <xsl:value-of select="SpecificInformation" disable-output-escaping="yes" />
  188. </xsl:when>
  189. <xsl:otherwise>
  190. <xsl:text>N/A</xsl:text>
  191. </xsl:otherwise>
  192. </xsl:choose>
  193. </td>
  194. </xsl:when>
  195. <xsl:when test="Source/Value = 91">
  196. <td colspan="5">
  197. <span class="title">
  198. <xsl:value-of select="Source/Name" disable-output-escaping="yes" />
  199. </span>
  200. <br />
  201. <span class="description">
  202. <xsl:text>Other: </xsl:text>
  203. </span>
  204. <xsl:value-of select="Other" disable-output-escaping="yes" />
  205. <br />
  206. </td>
  207. </xsl:when>
  208. <xsl:otherwise>
  209. <td colspan="5">
  210. <span class="title">
  211. <xsl:value-of select="Source/Name" disable-output-escaping="yes" />
  212. </span>
  213. <br />
  214. <span class="description">
  215. <xsl:text>Volume: </xsl:text>
  216. </span>
  217. <xsl:value-of select="Volume"/>
  218. <br />
  219. <span class="description">
  220. <xsl:text>Issue: </xsl:text>
  221. </span>
  222. <xsl:value-of select="Issue"/>
  223. <br />
  224. <span class="description">
  225. <xsl:text>Year: </xsl:text>
  226. </span>
  227. <xsl:value-of select="Year"/>
  228. <br />
  229. <span class="description">
  230. <xsl:text>Page Number(s): </xsl:text>
  231. </span>
  232. <xsl:value-of select="SpecificInformation" disable-output-escaping="yes" />
  233. </td>
  234. </xsl:otherwise>
  235. </xsl:choose>
  236. </tr>
  237. </xsl:for-each>
  238. <tr>
  239. <td colspan="5">
  240. <br />
  241. <br />
  242. <span class="title">
  243. <xsl:text>Intended Use</xsl:text>
  244. </span>
  245. <br />
  246. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/IntendedUse/Name" disable-output-escaping="yes" />
  247. </td>
  248. </tr>
  249. <xsl:choose>
  250. <xsl:when test="ProjectMaterials/ProjectMaterialUse/IntendedUse/Value = 46">
  251. <tr>
  252. <td colspan="5">
  253. <span class="title">
  254. <xsl:text>Format(s)</xsl:text>
  255. </span>
  256. <br />
  257. <xsl:for-each select="ProjectMaterials/ProjectMaterialUse[1]/ListOfFormats/ProjectFormat">
  258. <xsl:value-of select="ProjectUse/Name" disable-output-escaping="yes"/>
  259. <xsl:if test="ProjectUse/Value = 16 or ProjectUse/Value = 13">
  260. <xsl:text> - </xsl:text>
  261. <xsl:value-of select="OtherFormat" disable-output-escaping="yes"/>
  262. </xsl:if>
  263. <xsl:if test="position() != last()">
  264. <xsl:text>, </xsl:text>
  265. </xsl:if>
  266. </xsl:for-each>
  267. </td>
  268. </tr>
  269. <tr>
  270. <td colspan="5">
  271. <span class="title">
  272. <xsl:text>Journal/Book Name</xsl:text>
  273. </span>
  274. <br />
  275. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/BookName" disable-output-escaping="yes" />
  276. </td>
  277. </tr>
  278. <tr>
  279. <td colspan="5">
  280. <span class="title">
  281. <xsl:text>Article/Chapter Name</xsl:text>
  282. </span>
  283. <br />
  284. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/ArticleName" disable-output-escaping="yes" />
  285. </td>
  286. </tr>
  287. <tr>
  288. <td colspan="5">
  289. <span class="title">
  290. <xsl:text>Authors/Editor(s)</xsl:text>
  291. </span>
  292. <br />
  293. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Author" disable-output-escaping="yes" />
  294. </td>
  295. </tr>
  296. <tr>
  297. <td colspan="5">
  298. <span class="title">
  299. <xsl:text>Publisher</xsl:text>
  300. </span>
  301. <br />
  302. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Publisher" disable-output-escaping="yes" />
  303. </td>
  304. </tr>
  305. </xsl:when>
  306. <xsl:when test="ProjectMaterials/ProjectMaterialUse/IntendedUse/Value = 47">
  307. <tr>
  308. <td colspan="5">
  309. <span class="title">
  310. <xsl:text>Target Audience</xsl:text>
  311. </span>
  312. <br />
  313. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Audience" disable-output-escaping="yes" />
  314. </td>
  315. </tr>
  316. <tr>
  317. <td colspan="5">
  318. <span class="title">
  319. <xsl:text>Territory</xsl:text>
  320. </span>
  321. <br />
  322. <xsl:value-of select="Project/TerritoryList/CountryItemDictionary/Name" disable-output-escaping="yes" />
  323. </td>
  324. </tr>
  325. <tr>
  326. <td colspan="5">
  327. <span class="title">
  328. <xsl:text>Specific Use</xsl:text>
  329. </span>
  330. <br />
  331. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/SpecificUse" disable-output-escaping="yes" />
  332. </td>
  333. </tr>
  334. </xsl:when>
  335. </xsl:choose>
  336. <tr>
  337. <td colspan="5">
  338. <span class="title">
  339. <xsl:text>Copies</xsl:text>
  340. </span>
  341. <br />
  342. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Copies"/>
  343. </td>
  344. </tr>
  345. <tr>
  346. <td>
  347. <span class="title">
  348. <xsl:text>Sponsor</xsl:text>
  349. </span>
  350. <br />
  351. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Sponsor"/>
  352. </td>
  353. </tr>
  354. <tr>
  355. <td colspan="5">
  356. <span class="title">
  357. <xsl:text>Project Language(s)</xsl:text>
  358. </span>
  359. <br />
  360. <xsl:for-each select="ProjectLanguages/ProjectLanguage">
  361. <xsl:value-of select="Name" disable-output-escaping="yes"/>
  362. <xsl:if test="position() != last()">, </xsl:if>
  363. </xsl:for-each>
  364. </td>
  365. </tr>
  366. <tr>
  367. <td colspan="5">
  368. <span class="title">
  369. <xsl:text>Comments</xsl:text>
  370. </span>
  371. <br />
  372. <xsl:value-of select="ProjectMaterials/ProjectMaterialUse/Comments" disable-output-escaping="yes"/>
  373. </td>
  374. </tr>
  375. </tbody>
  376. </table>
  377. </xsl:template>
  378. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement