Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

1187 řádky
45 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE xsl:stylesheet [
  3. <!ENTITY nbsp "&#160;">
  4. <!ENTITY br "&#10;">
  5. <!ENTITY amp "&#38;#38;">
  6. <!ENTITY lt "&#38;#60;">
  7. <!ENTITY gt "&#62;">
  8. <!ENTITY Auml "&#196;">
  9. <!ENTITY Ouml "&#214;">
  10. <!ENTITY Uuml "&#220;">
  11. <!ENTITY auml "&#228;">
  12. <!ENTITY ouml "&#246;">
  13. <!ENTITY uuml "&#252;">
  14. <!ENTITY bull "&#8226;">
  15. ]>
  16. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  17. <xsl:output method="html" encoding="UTF-8"/>
  18. <xsl:template match="ihknewsletter">
  19. <html class="pl" lang="de-DE" style="margin: 0; padding: 0;">
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
  22. <meta http-equiv="Content-Style-Type" content="text/css;charset=UTF-8" />
  23. <meta name="viewport" content="width=device-width, initial-scale=1" />
  24. <style type="text/css">
  25. /*<![CDATA[*/
  26. @import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
  27. html, body {
  28. padding: 0;
  29. margin: 0;
  30. font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
  31. color: #003366;
  32. font-size: 18px;
  33. line-height: 1.4;
  34. }
  35. td {
  36. border: 0;
  37. padding: 0;
  38. }
  39. .outer {
  40. width: 100%;
  41. text-align: center;
  42. overflow: hidden;
  43. }
  44. .half {
  45. max-width: 100%;
  46. }
  47. .infobanner-outer, .chart-teaser {
  48. background-image: url('[%embedded-image(3565);redesign-gradient.jpg]');
  49. background-position: right bottom;
  50. background-size: cover;
  51. }
  52. .chart-teaser.half {
  53. background-image: url('[%embedded-image(3566);redesign-gradient-small.jpg]');
  54. }
  55. .logo {
  56. width: 80%;
  57. display: block;
  58. margin: 0;
  59. }
  60. @media(max-width: 630px) {
  61. .inner, .inner table {
  62. display: block;
  63. max-width: 100%;
  64. }
  65. .inner table.button {
  66. display: table;
  67. }
  68. #index {
  69. width: 100%;
  70. }
  71. #index .inner table {
  72. display: table;
  73. width: 100%;
  74. }
  75. }
  76. @media(max-width: 540px) {
  77. .sm-block {
  78. display: block;
  79. width: 100%;
  80. padding-left: 0 !important;
  81. padding-right: 0 !important;
  82. }
  83. .offset-large {
  84. height: 40px !important;
  85. }
  86. .offset-medium {
  87. height: 30px !important;
  88. }
  89. }
  90. @media(max-width: 400px) {
  91. .xs-block {
  92. display: block;
  93. max-width: 100%;
  94. }
  95. .issue span {
  96. display: block;
  97. text-align: left !important;
  98. padding-top: 12px;
  99. padding-left: 1px;
  100. }
  101. .h1 {
  102. font-size: 38px !important;
  103. line-height: 44px !important;
  104. }
  105. .h2 {
  106. font-size: 32px !important;
  107. line-height: 36px !important;
  108. }
  109. .h3 {
  110. font-size: 24px !important;
  111. line-height: 28px !important;
  112. }
  113. .p {
  114. font-size: 18px !important;
  115. line-height: 26px !important;
  116. }
  117. .p.title {
  118. padding-bottom: 6px;
  119. display: block;
  120. }
  121. .social {
  122. padding-bottom: 16px;
  123. }
  124. .social + .xs-block {
  125. text-align: left !important;
  126. }
  127. }
  128. /*]]>*/
  129. </style>
  130. <title></title>
  131. </head>
  132. <body style="margin: 0; padding: 0;">
  133. <a name="top" id="top"></a>
  134. <center><p style="font-size:12px; color:#333333; margin:0 0 8px 0; padding:0; font-family:Arial, Helvetica, sans-serif;"><font color="#003366">Wenn dieser Newsletter nicht richtig angezeigt wird, klicken Sie bitte</font>&nbsp;<a style="color:#003366; text-decoration:underline;" href="[%application-url]/html_mail.jsp?params=[%online_params]" target="_blank"><font color="#003366">hier</font></a>.</p></center>
  135. <table id="header" class="outer" width="100%" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  136. <tr>
  137. <td width="15" style="border-bottom: 1px solid #ccd6e0;"></td>
  138. <td align="center" style="border-bottom: 1px solid #ccd6e0;">
  139. <table class="inner" width="600" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; width: 600px; max-width: 100%;">
  140. <tr>
  141. <td height="20"></td>
  142. </tr>
  143. <tr>
  144. <xsl:if test="string-length(salutation/issue) > 0">
  145. <td width="300" class="xs-block">
  146. <xsl:call-template name="logo"/>
  147. </td>
  148. <td width="300" class="xs-block" valign="top" align="right" style="padding-top: 6px;">
  149. <font color="#003366">
  150. <xsl:value-of select="salutation/issue"/>
  151. </font>
  152. </td>
  153. </xsl:if>
  154. <xsl:if test="string-length(salutation/issue) = 0">
  155. <td width="300" class="xs-block">
  156. <xsl:call-template name="logo"/>
  157. </td>
  158. </xsl:if>
  159. </tr>
  160. <tr>
  161. <td height="20"></td>
  162. </tr>
  163. </table>
  164. </td>
  165. <td width="15" style="border-bottom: 1px solid #ccd6e0;"></td>
  166. </tr>
  167. </table>
  168. <table id="salutation" class="outer" width="100%" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  169. <tr>
  170. <td width="15"></td>
  171. <td align="center">
  172. <table class="inner" width="600" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; width: 600px; max-width: 100%;">
  173. <tr>
  174. <td height="50" class="offset-large"></td>
  175. </tr>
  176. <tr>
  177. <td>
  178. <span style="font-size: 20px; line-height: 30px;" class="p">
  179. <font color="#003366">
  180. <xsl:call-template name="salutation"/>
  181. </font>
  182. </span>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td height="50" class="offset-large"></td>
  187. </tr>
  188. </table>
  189. </td>
  190. <td width="15"></td>
  191. </tr>
  192. </table>
  193. <table id="title" class="outer" width="100%" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; overflow: hidden;">
  194. <tr>
  195. <td width="15"></td>
  196. <td align="center">
  197. <table class="inner" width="600" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; width: 600px; max-width: 100%;">
  198. <tr>
  199. <td>
  200. <span style="font-size: 48px; line-height: 54px;" class="h1"><font color="#003366">
  201. <xsl:choose>
  202. <xsl:when test="//ihknewsletter/header/newsletter_title and string-length(//ihknewsletter/header/newsletter_title) > 0">
  203. <xsl:value-of select="//ihknewsletter/header/newsletter_title" />
  204. </xsl:when>
  205. <xsl:otherwise>
  206. Newsletter
  207. </xsl:otherwise>
  208. </xsl:choose>
  209. </font></span>
  210. </td>
  211. </tr>
  212. <tr>
  213. <td height="20"></td>
  214. </tr>
  215. <tr>
  216. <td height="8">
  217. <span bgcolor="#afcc7a;" style="position: relative; display: block; height: 8px; width: 100%; background-color: #afcc7a;">
  218. <span class="green" style="position: absolute; width: 300%; height: 8px; background-color: #afcc7a;"></span>
  219. <img height="8" width="600" alt="Trennlinie" style="position: relative; margin: 0; display: block; height: 8px; width: 600px; max-width: 100%;">
  220. <xsl:attribute name="src"><xsl:value-of select="//ihknewsletter/header/trenner_verlauf"/></xsl:attribute>
  221. </img>
  222. </span>
  223. </td>
  224. </tr>
  225. </table>
  226. </td>
  227. <td width="15"></td>
  228. </tr>
  229. </table>
  230. <xsl:if test="allg_Infos/index_show = 'ja'">
  231. <table id="index" class="outer" width="100%" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  232. <tr>
  233. <td width="15"></td>
  234. <td align="center">
  235. <table class="inner" width="600" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; width: 600px; max-width: 100%;">
  236. <tr>
  237. <td height="50" class="offset-large"></td>
  238. </tr>
  239. <tr>
  240. <td>
  241. <table width="600" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  242. <xsl:call-template name="index"/>
  243. </table>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td height="30"></td>
  248. </tr>
  249. </table>
  250. </td>
  251. <td width="15"></td>
  252. </tr>
  253. </table>
  254. </xsl:if>
  255. <table id="news" class="outer" width="100%" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  256. <tr>
  257. <td width="15"></td>
  258. <td align="center">
  259. <table class="inner" width="600" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; max-width: 100%; width: 600px;">
  260. <!--xsl:call-template name="buildNews">
  261. <xsl:with-param name="i" select="3" />
  262. </xsl:call-template-->
  263. <xsl:for-each select="news">
  264. <xsl:call-template name="newstitle"/>
  265. <xsl:variable name="isBig">
  266. <xsl:choose>
  267. <xsl:when test="string-length(//ihknewsletter/allg_Infos/one_row) > 0">
  268. <xsl:value-of select="//ihknewsletter/allg_Infos/one_row"/>
  269. </xsl:when>
  270. <xsl:otherwise>
  271. <xsl:value-of select="one_row_article"/>
  272. </xsl:otherwise>
  273. </xsl:choose>
  274. </xsl:variable>
  275. <xsl:choose>
  276. <xsl:when test="is_infobanner = 'ja'">
  277. <!-- Infobanner -->
  278. <xsl:call-template name="infobanner" />
  279. </xsl:when>
  280. <xsl:when test="$isBig = 'ja'">
  281. <!-- Einspalter -->
  282. <tr>
  283. <td>
  284. <xsl:call-template name="news">
  285. <xsl:with-param name="coltype" select="'full'" />
  286. </xsl:call-template>
  287. </td>
  288. </tr>
  289. </xsl:when>
  290. <xsl:otherwise>
  291. <!-- Zweispalter -->
  292. <xsl:variable name="lastBig">
  293. <xsl:choose>
  294. <xsl:when test="count(preceding-sibling::news[one_row_article = 'ja' or title_show = 'ja' or is_infobanner = 'ja']) = 0">
  295. <xml:text>0</xml:text>
  296. </xsl:when>
  297. <xsl:otherwise>
  298. <xsl:call-template name="getLastBigIndex">
  299. <xsl:with-param name="i" select="position()" />
  300. </xsl:call-template>
  301. </xsl:otherwise>
  302. </xsl:choose>
  303. </xsl:variable>
  304. <xsl:variable name="isFirst" select="(position() - $lastBig) mod 2" />
  305. <xsl:if test="$isFirst = 1">
  306. <xsl:choose>
  307. <xsl:when test="position() = last() or following-sibling::news[1]/one_row_article = 'ja' or following-sibling::news[1]/title_show = 'ja' or following-sibling::news[1]/is_infobanner = 'ja'">
  308. <!-- Erste und letzte Zeile -->
  309. <tr>
  310. <td>
  311. <xsl:call-template name="news">
  312. <xsl:with-param name="coltype" select="'full'" />
  313. </xsl:call-template>
  314. </td>
  315. </tr>
  316. </xsl:when>
  317. <xsl:otherwise>
  318. <!-- Erste Zeile -->
  319. <xsl:call-template name="leftCol">
  320. <xsl:with-param name="lastBig" select="$lastBig" />
  321. <xsl:with-param name="pos" select="position()" />
  322. </xsl:call-template>
  323. </xsl:otherwise>
  324. </xsl:choose>
  325. </xsl:if>
  326. <xsl:if test="$isFirst = 0">
  327. <!-- Zweite Zeile -->
  328. <xsl:call-template name="rightCol">
  329. <xsl:with-param name="lastBig" select="$lastBig" />
  330. <xsl:with-param name="pos" select="position()" />
  331. </xsl:call-template>
  332. </xsl:if>
  333. </xsl:otherwise>
  334. </xsl:choose>
  335. </xsl:for-each>
  336. <tr>
  337. <td height="80" class="offset-large"></td>
  338. </tr>
  339. </table>
  340. </td>
  341. <td width="15"></td>
  342. </tr>
  343. </table>
  344. <table id="footer" class="outer" width="100%" bgcolor="#e3ebf5" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; background-color: #e3ebf5;">
  345. <tr>
  346. <td width="15" style="border-bottom: 8px solid #003366;"></td>
  347. <td align="center" style="border-bottom: 8px solid #003366;">
  348. <table class="inner" width="600" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; width: 600px; max-width: 100%;">
  349. <tr>
  350. <td height="40" class="offset-medium"></td>
  351. </tr>
  352. <tr>
  353. <td>
  354. <span style="font-size: 38px;" class="h2"><font color="#003366">Impressum</font></span>
  355. </td>
  356. </tr>
  357. <tr>
  358. <td height="25"></td>
  359. </tr>
  360. <xsl:apply-templates select="imprint"/>
  361. <tr>
  362. <td height="30"></td>
  363. </tr>
  364. <tr>
  365. <td>
  366. <table width="100%" style="table-layout: fixed; border-collapse: collapse; border-spacing: 0; max-width: 100%; display: block;">
  367. <tr>
  368. <td width="240" class="xs-block social">
  369. <a href="https://www.facebook.com/ihkaachen" class="fb" target="_blank" title="Facebook">
  370. <img src="[%embedded-image(3555);redesign-facebook.png]" alt="Facebook" width="50" height="50" border="0" />
  371. </a>&nbsp;
  372. <a href="https://www.youtube.com/user/ihkacvidpub" class="yt" target="_blank" title="Youtube">
  373. <img src="[%embedded-image(3554);redesign-youtube.png]" alt="Youtube" width="50" height="50" border="0" />
  374. </a>&nbsp;
  375. <a href="https://twitter.com/ihkaachen" class="tw" target="_blank" title="Twitter">
  376. <img src="[%embedded-image(3553);redesign-twitter.png]" alt="Twitter" width="50" height="50" border="0" />
  377. </a>
  378. </td>
  379. <td width="360" valign="bottom" align="right" style="padding-bottom: 3px;" class="xs-block">
  380. <a href="[%application-url]/benutzerprofil.jsp?email=[email]&amp;id=[%id]" style="display: inline-block; color: #003366; text-decoration: underline;"><font color="#003366">Abonnement ändern</font></a>
  381. <span style="display: inline-block; color: #003366; text-decoration: underline; margin-left: 15px;">
  382. <font color="#003366">
  383. <xsl:value-of disable-output-escaping="yes" select="footer/unsubscribe"/>
  384. </font>
  385. </span>
  386. </td>
  387. </tr>
  388. </table>
  389. </td>
  390. </tr>
  391. <tr>
  392. <td height="30" style="border-bottom: 1px solid #B0C4D6"></td>
  393. </tr>
  394. <tr>
  395. <td height="30" style="border-top: 1px solid #B0C4D6"></td>
  396. </tr>
  397. <tr>
  398. <td>
  399. <span style="font-size: 18px; line-height: 24px;">
  400. <font color="#003366">
  401. <xsl:apply-templates select="footer"/>
  402. </font>
  403. </span>
  404. </td>
  405. </tr>
  406. <tr>
  407. <td height="40"></td>
  408. </tr>
  409. </table>
  410. </td>
  411. <td width="15" style="border-bottom: 8px solid #003366;"></td>
  412. </tr>
  413. </table>
  414. </body>
  415. </html>
  416. </xsl:template>
  417. <xsl:template name="infobanner">
  418. <xsl:variable name="haslink" select="link and string-length(link) > 0"></xsl:variable>
  419. <tr>
  420. <td height="30"></td>
  421. </tr>
  422. <tr>
  423. <xsl:text disable-output-escaping="yes">&lt;td bgcolor="#003366" background="</xsl:text>[%embedded-image(3565);redesign-gradient.jpg]<xsl:text disable-output-escaping="yes">" style="background-image: url('</xsl:text>[%embedded-image(3565);redesign-gradient.jpg]<xsl:text disable-output-escaping="yes">'); background-position: right bottom; background-size: cover; max-width: 100%; padding: 15px 20px 20px" class="infobanner-outer"&gt;</xsl:text>
  424. <table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  425. <tr>
  426. <td style="color: #ffffff">
  427. <span class="dachzeile" style="display: block; text-transform: uppercase; font-size: 16px; line-height: 20px;">
  428. <font color="white">
  429. <xsl:value-of select="headline"/>
  430. </font>
  431. </span>
  432. </td>
  433. </tr>
  434. <tr>
  435. <td>
  436. <xsl:choose>
  437. <xsl:when test="$haslink">
  438. <xsl:text disable-output-escaping="yes">&lt;a href="</xsl:text>
  439. <xsl:call-template name="tracklinktitle">
  440. <xsl:with-param name="url" select="link" />
  441. </xsl:call-template>
  442. <xsl:text disable-output-escaping="yes">" style="display: block; font-size: 32px; line-height: 40px; color: #ffffff; text-decoration: underline;" class="h3"&gt;</xsl:text>
  443. <xsl:value-of select="title" />
  444. <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
  445. </xsl:when>
  446. <xsl:otherwise>
  447. <xsl:text disable-output-escaping="yes">&lt;span style="display: block; font-size: 32px; line-height: 40px; color: #ffffff; text-decoration: underline;" class="h3"&gt;</xsl:text>
  448. <xsl:value-of select="title" />
  449. <xsl:text disable-output-escaping="yes">&lt;/span&gt;</xsl:text>
  450. </xsl:otherwise>
  451. </xsl:choose>
  452. </td>
  453. </tr>
  454. <tr>
  455. <td height="8"></td>
  456. </tr>
  457. <tr>
  458. <td>
  459. <xsl:for-each select="paragraph">
  460. <xsl:text disable-output-escaping="yes">&lt;span style="display: block; color: #ffffff; font-size: 18px; line-height: 26px;" class="p"&gt;</xsl:text>
  461. <xsl:variable name="p" select="." />
  462. <xsl:value-of select="$p" />
  463. <xsl:text disable-output-escaping="yes">&lt;/span&gt;</xsl:text>
  464. <xsl:if test="position() != last()">
  465. <br/>
  466. </xsl:if>
  467. </xsl:for-each>
  468. </td>
  469. </tr>
  470. <xsl:if test="$haslink">
  471. <tr>
  472. <td height="25"></td>
  473. </tr>
  474. <tr>
  475. <td align="right">
  476. <table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;" class="button">
  477. <tr>
  478. <td width="25" height="60">
  479. <xsl:text disable-output-escaping="yes">&lt;a href="</xsl:text>
  480. <xsl:call-template name="tracklinktitle">
  481. <xsl:with-param name="url" select="link" />
  482. </xsl:call-template>
  483. <xsl:text disable-output-escaping="yes">"&gt;</xsl:text>
  484. <!--img src="img/button-left.png" alt="Button links" width="25" height="60" border="0" style="display: block;" /-->
  485. <img src="[%embedded-image(3562);button-left.png]" alt="Button links" width="25" height="60" border="0" style="display: block;" />
  486. <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
  487. </td>
  488. <td bgcolor="white" height="60">
  489. <xsl:text disable-output-escaping="yes">&lt;a href="</xsl:text>
  490. <xsl:call-template name="tracklinktitle">
  491. <xsl:with-param name="url" select="link" />
  492. </xsl:call-template>
  493. <xsl:text disable-output-escaping="yes">" style="display: block; white-space: nowrap; font-size: 20px; padding: 15px 0; line-height: 30px; color: #003366; text-decoration: none;" &gt;</xsl:text>
  494. <xsl:choose>
  495. <xsl:when test="infobanner_cta_text and string-length(infobanner_cta_text) > 0">
  496. <font color="#003366">
  497. <xsl:value-of select="infobanner_cta_text" />
  498. </font>
  499. </xsl:when>
  500. <xsl:otherwise>
  501. <font color="#003366">
  502. <xsl:text>Mehr erfahren</xsl:text>
  503. </font>
  504. </xsl:otherwise>
  505. </xsl:choose>
  506. <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
  507. </td>
  508. <td width-="50" height="60">
  509. <xsl:text disable-output-escaping="yes">&lt;a href="</xsl:text>
  510. <xsl:call-template name="tracklinktitle">
  511. <xsl:with-param name="url" select="link" />
  512. </xsl:call-template>
  513. <xsl:text disable-output-escaping="yes">"&gt;</xsl:text>
  514. <!--img src="img/button-right.png" alt="Button rechts" width="50" height="60" border="0" style="display: block;" /-->
  515. <img src="[%embedded-image(3564);button-right.png]" alt="Button rechts" width="50" height="60" border="0" style="display: block;" />
  516. <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
  517. </td>
  518. </tr>
  519. </table>
  520. </td>
  521. </tr>
  522. </xsl:if>
  523. </table>
  524. <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
  525. </tr>
  526. <tr>
  527. <td height="30"></td>
  528. </tr>
  529. </xsl:template>
  530. <xsl:template name="getLastBigIndex">
  531. <xsl:param name="i" select="1" />
  532. <xsl:choose>
  533. <xsl:when test="(not(/ihknewsletter/news[$i]/one_row_article) or /ihknewsletter/news[$i]/one_row_article != 'ja') and /ihknewsletter/news[$i]/title_show = 'ja'">
  534. <xsl:value-of select="$i - 1" />
  535. </xsl:when>
  536. <xsl:when test="/ihknewsletter/news[$i]/one_row_article = 'ja' or /ihknewsletter/news[$i]/title_show = 'ja' or /ihknewsletter/news[$i]/is_infobanner">
  537. <xsl:value-of select="$i" />
  538. </xsl:when>
  539. <xsl:otherwise>
  540. <xml:if test="$i > 1">
  541. <xsl:call-template name="getLastBigIndex">
  542. <xsl:with-param name="i" select="$i - 1" />
  543. </xsl:call-template>
  544. </xml:if>
  545. </xsl:otherwise>
  546. </xsl:choose>
  547. </xsl:template>
  548. <xsl:template name="leftCol">
  549. <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
  550. <xsl:text disable-output-escaping="yes">&lt;td&gt;</xsl:text>
  551. <xsl:text disable-output-escaping="yes">&lt;table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;"&gt;</xsl:text>
  552. <xsl:text disable-output-escaping="yes">&lt;tr&gt;</xsl:text>
  553. <xsl:text disable-output-escaping="yes">&lt;td width="300" valign="top" style="padding-right: 15px;" class="col-left sm-block"&gt;</xsl:text>
  554. <xsl:text disable-output-escaping="yes">&lt;table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;"&gt;</xsl:text>
  555. <xsl:call-template name="news">
  556. <xsl:with-param name="coltype" select="'half'" />
  557. </xsl:call-template>
  558. <xsl:text disable-output-escaping="yes">&lt;/table&gt;</xsl:text>
  559. <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
  560. </xsl:template>
  561. <xsl:template name="rightCol">
  562. <xsl:text disable-output-escaping="yes">&lt;td width="300" valign="top" style="padding-left: 15px;" class="col-right sm-block"&gt;</xsl:text>
  563. <xsl:text disable-output-escaping="yes">&lt;table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;"&gt;</xsl:text>
  564. <xsl:call-template name="news">
  565. <xsl:with-param name="coltype" select="'half'" />
  566. </xsl:call-template>
  567. <xsl:text disable-output-escaping="yes">&lt;/table&gt;</xsl:text>
  568. <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
  569. <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
  570. <xsl:text disable-output-escaping="yes">&lt;/table&gt;</xsl:text>
  571. <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
  572. <xsl:text disable-output-escaping="yes">&lt;/tr&gt;</xsl:text>
  573. </xsl:template>
  574. <xsl:template name="targets">
  575. <xsl:text>[%if </xsl:text>
  576. <xsl:for-each select="news">
  577. <xsl:if test="position()!=1">
  578. <xsl:text> AND </xsl:text>
  579. </xsl:if>
  580. <xsl:choose>
  581. <xsl:when test="target">
  582. <xsl:for-each select="target">
  583. <xsl:if test="position()!=1">
  584. <xsl:text> AND </xsl:text>
  585. </xsl:if>
  586. <xsl:choose>
  587. <xsl:when test="string-length(.) > 0">
  588. <xsl:text>BelongsNotToGroup("</xsl:text><xsl:value-of disable-output-escaping="yes" select="."/><xsl:text>")</xsl:text>
  589. </xsl:when>
  590. <xsl:otherwise>
  591. <xsl:text> FALSE </xsl:text>
  592. </xsl:otherwise>
  593. </xsl:choose>
  594. </xsl:for-each>
  595. </xsl:when>
  596. <xsl:otherwise>
  597. <xsl:text> FALSE </xsl:text>
  598. </xsl:otherwise>
  599. </xsl:choose>
  600. </xsl:for-each>
  601. <xsl:text>] [%no-mail] </xsl:text>
  602. <xsl:text> [%endif] </xsl:text>
  603. </xsl:template>
  604. <xsl:template name="logo">
  605. <xsl:if test="string-length(header/logo) > 0">
  606. <xsl:choose>
  607. <xsl:when test="string-length(//ihknewsletter/imprint/website) > 0">
  608. <a>
  609. <xsl:attribute name="href">http://<xsl:value-of select="//ihknewsletter/imprint/website"/></xsl:attribute>
  610. <img alt="Logo" class="logo" width="108" height="54" border="0">
  611. <xsl:attribute name="src"><xsl:value-of select="header/logo"/></xsl:attribute>
  612. </img>
  613. </a>
  614. </xsl:when>
  615. <xsl:otherwise>
  616. <img alt="Logo" calss="logo" width="108" height="54" border="0">
  617. <xsl:attribute name="src"><xsl:value-of select="header/logo"/></xsl:attribute>
  618. </img>
  619. </xsl:otherwise>
  620. </xsl:choose>
  621. </xsl:if>
  622. </xsl:template>
  623. <xsl:template name="salutation">
  624. <xsl:value-of select="salutation/address"/><br /><br />
  625. <xsl:if test="string-length(salutation/paragraph) > 0">
  626. <xsl:for-each select="salutation/paragraph">
  627. <xsl:call-template name="render_text">
  628. <xsl:with-param name="text" select="."/>
  629. </xsl:call-template>
  630. <br /><br />
  631. </xsl:for-each>
  632. </xsl:if>
  633. <xsl:if test="string-length(salutation/greeting) > 0">
  634. <xsl:value-of select="salutation/greeting"/><br />
  635. </xsl:if>
  636. <xsl:if test="string-length(salutation/sig_name) > 0">
  637. <xsl:value-of select="salutation/sig_name"/>
  638. </xsl:if>
  639. </xsl:template>
  640. <xsl:template name="index">
  641. <xsl:for-each select="news">
  642. <xsl:variable name="feld">
  643. <xsl:choose>
  644. <xsl:when test="string-length(//ihknewsletter/all_gesch_feld/gesch_feld) > 0">
  645. <xsl:value-of select="//ihknewsletter/all_gesch_feld/gesch_feld"/>
  646. </xsl:when>
  647. <xsl:otherwise>
  648. <xsl:value-of select="news_gesch_feld"/>
  649. </xsl:otherwise>
  650. </xsl:choose>
  651. </xsl:variable>
  652. <xsl:if test="target">
  653. <xsl:call-template name="start_target"/>
  654. </xsl:if>
  655. <xsl:choose>
  656. <xsl:when test="//ihknewsletter/allg_Infos/index_only_themes = 'ja'">
  657. <xsl:if test="title_show = 'ja'">
  658. <xsl:if test="string-length($feld) > 0">
  659. <tr>
  660. <td width="40" height="60" style="border-bottom: 1px solid #ccd6e0; border-top: 1px solid #ccd6e0;">
  661. <img src="[%embedded-image(3557);redesign-anchor.png]" width="30" height="30" border="0" style="display: block;" />
  662. </td>
  663. <td style="border-bottom: 1px solid #ccd6e0; border-top: 1px solid #ccd6e0;">
  664. <a style="display: block; font-size: 18px; line-height: 22px; text-decoration: underline; color: #003366; padding: 8px 0">
  665. <xsl:attribute name="href">#anchor<xsl:value-of select="position()"/></xsl:attribute>
  666. <xsl:attribute name="title"><xsl:value-of select='normalize-space($feld)'/></xsl:attribute>
  667. <font color="#003366">
  668. <xsl:value-of select='normalize-space($feld)'/>
  669. </font>
  670. </a>
  671. </td>
  672. </tr>
  673. </xsl:if>
  674. </xsl:if>
  675. </xsl:when>
  676. <xsl:otherwise>
  677. <tr>
  678. <td width="40" height="60" style="border-bottom: 1px solid #ccd6e0; border-top: 1px solid #ccd6e0;">
  679. <img src="[%embedded-image(3557);redesign-anchor.png]" width="30" height="30" border="0" style="display: block;" />
  680. </td>
  681. <td style="border-bottom: 1px solid #ccd6e0; border-top: 1px solid #ccd6e0;">
  682. <a style="display: block; font-size: 18px; line-height: 22px; text-decoration: underline; color: #003366; padding: 8px 0">
  683. <xsl:attribute name="href">#anchor<xsl:value-of select="position()"/></xsl:attribute>
  684. <xsl:attribute name="title"><xsl:value-of select='normalize-space(title)'/></xsl:attribute>
  685. <font color="#003366">
  686. <xsl:value-of select='normalize-space(title)'/>
  687. </font>
  688. </a>
  689. </td>
  690. </tr>
  691. </xsl:otherwise>
  692. </xsl:choose>
  693. <xsl:if test="target">
  694. <xsl:call-template name="end_target"/>
  695. </xsl:if>
  696. </xsl:for-each>
  697. </xsl:template>
  698. <xsl:template name="newstitle">
  699. <xsl:variable name="feld">
  700. <xsl:choose>
  701. <xsl:when test="string-length(//ihknewsletter/all_gesch_feld/gesch_feld) > 0">
  702. <xsl:value-of select="//ihknewsletter/all_gesch_feld/gesch_feld"/>
  703. </xsl:when>
  704. <xsl:otherwise>
  705. <xsl:value-of select="news_gesch_feld"/>
  706. </xsl:otherwise>
  707. </xsl:choose>
  708. </xsl:variable>
  709. <xsl:if test="title_show = 'ja'">
  710. <xsl:if test="string-length($feld) > 0">
  711. <xsl:if test="target">
  712. <xsl:call-template name="start_target"/>
  713. </xsl:if>
  714. <tr>
  715. <td height="40" class="offset-medium"></td>
  716. </tr>
  717. <tr>
  718. <td width="600" style="border-bottom: 4px solid #56BD66; max-width: 100%;">
  719. <span style="display: block; font-size: 42px; line-height: 48px; padding-bottom: 10px;" class="h2">
  720. <xsl:value-of select="$feld"/>
  721. </span>
  722. </td>
  723. </tr>
  724. <tr>
  725. <td height="20"></td>
  726. </tr>
  727. <xsl:if test="target">
  728. <xsl:call-template name="end_target"/>
  729. </xsl:if>
  730. <xsl:if test="target">
  731. <xsl:call-template name="start_target"/>
  732. </xsl:if>
  733. <xsl:if test="target">
  734. <xsl:call-template name="end_target"/>
  735. </xsl:if>
  736. </xsl:if>
  737. </xsl:if>
  738. </xsl:template>
  739. <xsl:template name="news">
  740. <xsl:param name="coltype" />
  741. <xsl:variable name="fontStyle">
  742. <xsl:choose>
  743. <xsl:when test="$coltype = 'full'">
  744. <xsl:text>font-size: 20px; line-height: 30px;</xsl:text>
  745. </xsl:when>
  746. <xsl:otherwise>
  747. <xsl:text>font-size: 18px; line-height: 26px;</xsl:text>
  748. </xsl:otherwise>
  749. </xsl:choose>
  750. </xsl:variable>
  751. <xsl:variable name="headlineStyle">
  752. <xsl:choose>
  753. <xsl:when test="$coltype = 'full'">
  754. <xsl:text>font-size: 32px; line-height: 40px;</xsl:text>
  755. </xsl:when>
  756. <xsl:otherwise>
  757. <xsl:text>font-size: 24px; line-height: 30px;</xsl:text>
  758. </xsl:otherwise>
  759. </xsl:choose>
  760. </xsl:variable>
  761. <xsl:variable name="imageWidth">
  762. <xsl:choose>
  763. <xsl:when test="$coltype = 'full'">
  764. <xsl:text>600</xsl:text>
  765. </xsl:when>
  766. <xsl:otherwise>
  767. <xsl:text>285</xsl:text>
  768. </xsl:otherwise>
  769. </xsl:choose>
  770. </xsl:variable>
  771. <xsl:variable name="imageHeight">
  772. <xsl:choose>
  773. <xsl:when test="$coltype = 'full'">
  774. <xsl:text>400</xsl:text>
  775. </xsl:when>
  776. <xsl:otherwise>
  777. <xsl:text>190</xsl:text>
  778. </xsl:otherwise>
  779. </xsl:choose>
  780. </xsl:variable>
  781. <xsl:variable name="haslink" select="link and string-length(link) > 0"></xsl:variable>
  782. <xsl:if test="target">
  783. <xsl:call-template name="start_target"/>
  784. </xsl:if>
  785. <a>
  786. <xsl:attribute name="id">anchor<xsl:value-of select="position()"/></xsl:attribute>
  787. <xsl:attribute name="name">anchor<xsl:value-of select="position()"/></xsl:attribute>
  788. </a>
  789. <tr>
  790. <td height="20"></td>
  791. </tr>
  792. <tr>
  793. <td>
  794. <span class="dachzeile" style="display: block; text-transform: uppercase; font-size: 16px; line-height: 20px;">
  795. <font color="#003366">
  796. <xsl:value-of select="headline"/>
  797. </font>
  798. </span>
  799. </td>
  800. </tr>
  801. <tr>
  802. <td height="10"></td>
  803. </tr>
  804. <xsl:choose>
  805. <xsl:when test="is_chart_teaser = 'ja'">
  806. <xsl:variable name="chartImage">
  807. <xsl:choose>
  808. <xsl:when test="$coltype = 'full'">
  809. <xsl:text>[%embedded-image(3565);redesign-gradient.jpg]</xsl:text>
  810. </xsl:when>
  811. <xsl:otherwise>
  812. <xsl:text>[%embedded-image(3566);redesign-gradient-small.jpg]</xsl:text>
  813. </xsl:otherwise>
  814. </xsl:choose>
  815. </xsl:variable>
  816. <tr>
  817. <xsl:text disable-output-escaping="yes">&lt;td bgcolor="#003366" valign="middle" align="center" background="</xsl:text><xsl:value-of select="$chartImage" /><xsl:text disable-output-escaping="yes">" height="</xsl:text><xsl:value-of select="$imageHeight" /><xsl:text disable-output-escaping="yes">" class="chart-teaser</xsl:text><xsl:if test="$coltype != 'full'"> half</xsl:if><xsl:text disable-output-escaping="yes">" style="border-bottom: 8px solid #56BD66; font-weight: 600; padding: 0 20px; background-size: cover; background-position: right bottom; </xsl:text><xsl:value-of select="$headlineStyle" /><xsl:text disable-output-escaping="yes">"&gt;</xsl:text>
  818. <font color="#ffffff">
  819. <xsl:value-of select="chart_teaser_text" />
  820. </font>
  821. <xsl:text disable-output-escaping="yes">&lt;/td&gt;</xsl:text>
  822. </tr>
  823. <tr>
  824. <td height="20"></td>
  825. </tr>
  826. </xsl:when>
  827. <xsl:otherwise>
  828. <xsl:if test="group_picture">
  829. <tr>
  830. <td>
  831. <xsl:call-template name="picture">
  832. <xsl:with-param name="source" select="group_picture/picture"/>
  833. <xsl:with-param name="alt" select="group_picture/picture_alt"/>
  834. <xsl:with-param name="copyright" select="group_picture/picture_copyright"/>
  835. <xsl:with-param name="width"><xsl:value-of select="$imageWidth"/></xsl:with-param>
  836. <xsl:with-param name="height"><xsl:value-of select="$imageHeight"/></xsl:with-param>
  837. </xsl:call-template>
  838. </td>
  839. </tr>
  840. </xsl:if>
  841. </xsl:otherwise>
  842. </xsl:choose>
  843. <tr>
  844. <td>
  845. <xsl:choose>
  846. <xsl:when test="$haslink">
  847. <xsl:text disable-output-escaping="yes">&lt;a href="</xsl:text>
  848. <xsl:call-template name="tracklinktitle">
  849. <xsl:with-param name="url" select="link" />
  850. </xsl:call-template>
  851. <xsl:text disable-output-escaping="yes">" style="display: block; </xsl:text>
  852. <xsl:value-of select="$headlineStyle" />
  853. <xsl:text disable-output-escaping="yes"> color: #003366; text-decoration: underline;" class="h3"&gt;&lt;font color="#003366"&gt;</xsl:text>
  854. <xsl:value-of select="title" />
  855. <xsl:text disable-output-escaping="yes">&lt;/font&gt;&lt;/a&gt;</xsl:text>
  856. </xsl:when>
  857. <xsl:otherwise>
  858. <xsl:text disable-output-escaping="yes">&lt;span style="display: block; </xsl:text>
  859. <xsl:value-of select="$headlineStyle" />
  860. <xsl:text disable-output-escaping="yes"> color: #003366; text-decoration: underline;" class="h3"&gt;&lt;font color="#003366"&gt;</xsl:text>
  861. <xsl:value-of select="title" />
  862. <xsl:text disable-output-escaping="yes">&lt;/font&gt;&lt;/span&gt;</xsl:text>
  863. </xsl:otherwise>
  864. </xsl:choose>
  865. </td>
  866. </tr>
  867. <tr>
  868. <td height="20"></td>
  869. </tr>
  870. <tr>
  871. <td>
  872. <xsl:for-each select="paragraph">
  873. <xsl:text disable-output-escaping="yes">&lt;span style="</xsl:text>
  874. <xsl:value-of select="$fontStyle" />
  875. <xsl:text disable-output-escaping="yes"> display: inline;" class="p"&gt;&lt;font color="#003366"&gt;</xsl:text>
  876. <xsl:variable name="p" select="." />
  877. <xsl:value-of select="$p" />
  878. <xsl:text disable-output-escaping="yes">&lt;/font&gt;&lt;/span&gt;</xsl:text>
  879. <xsl:if test="position() = last()">
  880. <xsl:if test="$haslink">
  881. <xsl:text disable-output-escaping="yes">&nbsp; &lt;a href="</xsl:text>
  882. <xsl:call-template name="tracklinktitle">
  883. <xsl:with-param name="url" select="link" />
  884. </xsl:call-template>
  885. <xsl:text disable-output-escaping="yes">" style="</xsl:text>
  886. <xsl:value-of select="$fontStyle" />
  887. <xsl:text disable-output-escaping="yes"> color: #003366; text-decoration: underline;" class="p"&gt;&lt;font color="#003366"&gt;Weiterlesen&lt;/font&gt;&lt;/a&gt;</xsl:text>
  888. </xsl:if>
  889. </xsl:if>
  890. <xsl:if test="position() != last()">
  891. <br/>
  892. </xsl:if>
  893. </xsl:for-each>
  894. </td>
  895. </tr>
  896. <tr>
  897. <td height="20"></td>
  898. </tr>
  899. <xsl:if test="target">
  900. <xsl:call-template name="end_target"/>
  901. </xsl:if>
  902. </xsl:template>
  903. <xsl:template name="news_title">
  904. </xsl:template>
  905. <xsl:template match="imprint">
  906. <tr>
  907. <td>
  908. <table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  909. <tr>
  910. <td width="240" valign="top" class="sm-block">
  911. <span style="font-weight: 600; font-size: 20px; line-height: 30px;" class="p title"><font color="#003366">Herausgeber</font></span>
  912. </td>
  913. <td width="360" valign="top" class="sm-block">
  914. <span style="font-size: 20px; line-height: 30px;" class="p">
  915. <font color="#003366">
  916. <xsl:value-of select="name"/><br />
  917. <xsl:value-of select="street"/><br />
  918. <xsl:value-of select="city"/>
  919. </font>
  920. </span>
  921. </td>
  922. </tr>
  923. </table>
  924. </td>
  925. </tr>
  926. <tr>
  927. <td height="20"></td>
  928. </tr>
  929. <tr>
  930. <td>
  931. <table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  932. <tr>
  933. <td width="240" valign="top" class="sm-block">
  934. <span style="font-weight: 600; font-size: 20px; line-height: 30px;" class="p title"><font color="#003366">Redaktion &amp; Inhalt</font></span>
  935. </td>
  936. <td width="360" valign="top" class="sm-block">
  937. <table>
  938. <tr>
  939. <td valign="middle" width="40">
  940. <img src="[%embedded-image(3559);redesign-mail.png]" width="30" height="30" border="0" style="display: inline-block; vertical-align: middle; margin-right: 7px; margin-bottom: 6px;" />
  941. </td>
  942. <td valign="middle">
  943. <a href="mailto:{email}" style="font-size: 20px; line-height: 30px; color: #003366; text-decoration: underline; display: inline-block; vertical-align: middle; margin-bottom: 6px;" class="p"><font color="#003366">E-Mail schreiben</font></a>
  944. </td>
  945. </tr>
  946. <xsl:if test="phone and string-length(phone) > 0">
  947. <tr>
  948. <td valign="middle" width="40">
  949. <img src="[%embedded-image(3560);redesign-phone.png]" width="30" height="30" border="0" style="display: inline-block; vertical-align: middle; margin-right: 7px; margin-bottom: 6px;" />
  950. </td>
  951. <td valign="middle">
  952. <a href="tel:{phone}" style="font-size: 20px; line-height: 30px; color: #003366; text-decoration: underline; display: inline-block; vertical-align: middle; margin-bottom: 6px;" class="p">
  953. <font color="#003366">
  954. <xsl:value-of select="phone"/>
  955. </font>
  956. </a>
  957. </td>
  958. </tr>
  959. </xsl:if>
  960. <xsl:if test="fax and string-length(fax) > 0">
  961. <tr>
  962. <td valign="middle" width="40">
  963. <img src="[%embedded-image(3558);redesign-fax.png]" width="30" height="30" border="0" style="display: inline-block; vertical-align: middle; margin-right: 7px; margin-bottom: 6px;" />
  964. </td>
  965. <td valign="middle">
  966. <span style="font-size: 20px; line-height: 30px; color: #003366; text-decoration: underline; display: inline-block; vertical-align: middle; margin-bottom: 6px;" class="p">
  967. <font color="#003366">
  968. <xsl:value-of select="fax"/>
  969. </font>
  970. </span>
  971. </td>
  972. </tr>
  973. </xsl:if>
  974. </table>
  975. </td>
  976. </tr>
  977. </table>
  978. </td>
  979. </tr>
  980. <tr>
  981. <td height="20"></td>
  982. </tr>
  983. <xsl:if test="editorial_office and string-length(editorial_office) > 0">
  984. <tr>
  985. <td>
  986. <table style="table-layout: fixed; border-collapse: collapse; border-spacing: 0;">
  987. <tr>
  988. <td width="240" valign="top" class="sm-block">
  989. <span style="font-weight: 600; font-size: 20px; line-height: 30px;" class="p title"><font color="#003366">Vertretungsberechtigte</font></span>
  990. </td>
  991. <td width="360" valign="top" class="sm-block">
  992. <span style="font-size: 20px; line-height: 30px;" class="p">
  993. <font color="#003366">
  994. <xsl:value-of select="editorial_office"/>
  995. </font>
  996. </span>
  997. </td>
  998. </tr>
  999. </table>
  1000. </td>
  1001. </tr>
  1002. </xsl:if>
  1003. </xsl:template>
  1004. <xsl:template match="footer">
  1005. <xsl:for-each select="paragraph">
  1006. <xsl:call-template name="insert_break">
  1007. <xsl:with-param name="text" select="."/>
  1008. </xsl:call-template>
  1009. <br /><br />
  1010. </xsl:for-each>
  1011. <xsl:call-template name="insert_break">
  1012. <xsl:with-param name="text" select="copyright"/>
  1013. </xsl:call-template>
  1014. </xsl:template>
  1015. <xsl:template name="picture">
  1016. <xsl:param name="source"></xsl:param>
  1017. <xsl:param name="alt"></xsl:param>
  1018. <xsl:param name="copyright"><xsl:text></xsl:text></xsl:param>
  1019. <xsl:param name="width">280</xsl:param>
  1020. <xsl:param name="height">186</xsl:param>
  1021. <xsl:text disable-output-escaping="yes">&lt;span class="image-box" style="display: block; border-bottom: 8px solid #56BD66;"&gt;&lt;img src="</xsl:text>
  1022. <xsl:if test="not(contains($source, '[%embedded-image'))">
  1023. <xsl:value-of disable-output-escaping="yes" select="$source"/>
  1024. </xsl:if>
  1025. <xsl:if test="contains($source, '[%embedded-image')">
  1026. <xsl:variable name="embed_part" select="substring-after($source, 'src=')"/>
  1027. <xsl:variable name="embed" select="substring-before($embed_part, 'alt=')"/>
  1028. <xsl:value-of select="$embed"/>
  1029. </xsl:if>
  1030. " border="0" alt="<xsl:value-of select="$alt"/>" width="<xsl:value-of select="$width"/>" height="<xsl:value-of select="$height"/>" style="display: block; margin: 0; max-width: 100%; width: 100%;"<xsl:text disable-output-escaping="yes">/&gt;&lt;/span&gt;</xsl:text>
  1031. <xsl:choose>
  1032. <xsl:when test="string-length($copyright) > 0">
  1033. <tr>
  1034. <td class="copyright" valign="top" height="20" style="font-size: 14px; color: #003366; text-align: right; height: 20px; padding-bottom: 10px;">
  1035. <xsl:value-of select="$copyright" />
  1036. </td>
  1037. </tr>
  1038. </xsl:when>
  1039. <xsl:otherwise>
  1040. <tr>
  1041. <td height="20"></td>
  1042. </tr>
  1043. </xsl:otherwise>
  1044. </xsl:choose>
  1045. </xsl:template>
  1046. <xsl:template name="insert_break">
  1047. <xsl:param name="text"/>
  1048. <xsl:choose>
  1049. <xsl:when test="contains($text,'&#10;')">
  1050. <xsl:value-of select="substring-before($text,'&#10;')"/>
  1051. <xsl:text>&lt;br&gt;</xsl:text>
  1052. <xsl:call-template name="insert_break">
  1053. <xsl:with-param name="text" select="substring-after($text,'&#10;')"/>
  1054. </xsl:call-template>
  1055. </xsl:when>
  1056. <xsl:otherwise>
  1057. <xsl:value-of select="$text"/>
  1058. </xsl:otherwise>
  1059. </xsl:choose>
  1060. </xsl:template>
  1061. <xsl:template name="render_text">
  1062. <xsl:param name="text"/>
  1063. <font color="#003366">
  1064. <xsl:value-of select="$text"/>
  1065. </font>
  1066. </xsl:template>
  1067. <xsl:template name="tracklinktitle">
  1068. <xsl:param name="url" />
  1069. <xsl:param name="title">
  1070. </xsl:param>
  1071. <xsl:value-of select="substring-before($url,']')" /><xsl:text>; "</xsl:text>
  1072. <xsl:value-of select="$title"/>
  1073. <xsl:text>"]</xsl:text>
  1074. </xsl:template>
  1075. <xsl:template name="start_target">
  1076. <xsl:variable name="ending">
  1077. <xsl:for-each select="target">
  1078. <xsl:sort select="." data-type="text" order="descending" />
  1079. <xsl:if test="position()=1">
  1080. <xsl:if test="string-length(.) > 0">]
  1081. </xsl:if>
  1082. </xsl:if>
  1083. </xsl:for-each>
  1084. </xsl:variable>
  1085. <xsl:for-each select="target">
  1086. <xsl:sort select="." data-type="text" order="descending" />
  1087. <xsl:if test="string-length(.) > 0">
  1088. <xsl:if test="position() = 1">
  1089. <xsl:text>
  1090. [%if </xsl:text>
  1091. </xsl:if>
  1092. <xsl:if test="position() != 1">
  1093. <xsl:text> OR </xsl:text>
  1094. </xsl:if>
  1095. <xsl:text>BelongsToGroup("</xsl:text><xsl:value-of disable-output-escaping="yes" select="."/><xsl:text>")</xsl:text>
  1096. </xsl:if>
  1097. <xsl:if test="position()=last()">
  1098. <xsl:value-of select="$ending"/>
  1099. </xsl:if>
  1100. </xsl:for-each>
  1101. </xsl:template>
  1102. <xsl:template name="end_target">
  1103. <xsl:for-each select="target">
  1104. <xsl:sort select="." data-type="text" order="descending" />
  1105. <xsl:if test="string-length(.) > 0">
  1106. <xsl:if test="position() = 1">
  1107. <xsl:text>
  1108. [%endif]
  1109. </xsl:text>
  1110. </xsl:if>
  1111. </xsl:if>
  1112. </xsl:for-each>
  1113. </xsl:template>
  1114. </xsl:stylesheet>