/usr/share/liferea/xslt/item.xml is in liferea-data 1.10.17-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 | <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
<xsl:output version="1.0" method="xml" indent="yes"/>
<xsl:param name="pixmapsDir"/>
<xsl:param name="baseUrl"/>
<xsl:param name="summary"/>
<xsl:param name="showFeedName"/>
<xsl:param name="single"/>
<xsl:param name="txtDirection"/>
<xsl:param name="appDirection"/>
<xsl:template match="/itemset">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
</head>
<xsl:element name="body">
<xsl:if test="item/attributes/attribute[ @name = 'point' ]">
<xsl:attribute name="onload">load()</xsl:attribute>
</xsl:if>
<div href="{$baseUrl}">
<xsl:for-each select="item">
<xsl:choose>
<xsl:when test="$summary = '1'">
<xsl:call-template name="item_summary"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="item"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:element>
</html>
</xsl:template>
<xsl:template name="item">
<div href="{/itemset/feed/feedSource}">
<xsl:variable name="onMouseOver">
<xsl:text disable-output-escaping='yes'>doShow('</xsl:text>
<xsl:value-of select="sourceId"/>-<xsl:value-of select="nr"/>
<xsl:text disable-output-escaping='yes'>');</xsl:text>
</xsl:variable>
<div onmouseover="{$onMouseOver}" onmouseout="stopShow();">
<table dir="{$txtDirection}" class="itemhead" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" class="headleft">
<xsl:variable name="favicon">
<xsl:choose>
<xsl:when test="not(sourceFavicon)">
<xsl:value-of select="/itemset/feed/favicon"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="sourceFavicon"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{/itemset/feed/attributes/attribute[ @name = 'homepage' ]}" class="favicon">
<img src="{$favicon}"/>
</a>
</td>
<td width="100%" valign="middle" class="headright">
<a href="{source}" class="itemhead">
<xsl:value-of select="title"/>
<xsl:if test="title = ''">
<xsl:value-of select="timestr"/>
</xsl:if>
</a>
</td>
</tr>
</table>
<table dir="{$appDirection}" class='headmeta' cellspacing="0" cellpadding="0">
<xsl:if test="attributes/attribute[ @name = 'slash' ]">
<tr>
<td valign="top" class='slash'>
<xsl:apply-templates select="attributes/attribute[ @name = 'slash']"/>
</td>
</tr>
</xsl:if>
<xsl:if test="attributes/attribute[ @name = 'realSourceUrl' ]">
<tr>
<td valign="top" class='source'>
<span>Source</span>
<span xml:lang="ar">المصدر</span>
<span xml:lang="ast">Fonte</span>
<span xml:lang="be@latin">Krynica</span>
<span xml:lang="ca">Font</span>
<span xml:lang="cs">Zdroj</span>
<span xml:lang="da">Kilde</span>
<span xml:lang="de">Quelle</span>
<span xml:lang="el">Πηγή</span>
<span xml:lang="es">Fuente</span>
<span xml:lang="eu">Iturburua</span>
<span xml:lang="fi">Lähde</span>
<span xml:lang="fr">Source</span>
<span xml:lang="gl">Fonte</span>
<span xml:lang="he">מקור</span>
<span xml:lang="hu">Forrás</span>
<span xml:lang="it">Fonte</span>
<span xml:lang="ja">ソース</span>
<span xml:lang="lt">Šaltinis</span>
<span xml:lang="lv">Avots</span>
<span xml:lang="nl">Bron</span>
<span xml:lang="pl">Zasób</span>
<span xml:lang="pt">Fonte</span>
<span xml:lang="pt_BR">Fonte</span>
<span xml:lang="ro">Sursă</span>
<span xml:lang="ru">Источник</span>
<span xml:lang="sk">Zdroj</span>
<span xml:lang="sq">Burim</span>
<span xml:lang="sv">Källa</span>
<span xml:lang="tr">Kaynak</span>
<span xml:lang="uk">Джерело</span>
<span xml:lang="vi">Nguồn</span>
<span xml:lang="zh_CN">来源</span>
<b><span class='source'>
<a href="{attributes/attribute[ @name = 'realSourceUrl' ]}">
<xsl:value-of select="attributes/attribute[ @name = 'realSourceTitle' ]"/>
</a>
</span></b>
</td>
</tr>
</xsl:if>
<xsl:if test="$summary = '1' or $showFeedName = '1'">
<tr>
<td valign="top" class='source'>
<span>Feed</span>
<span xml:lang="ar">تلقيمة</span>
<span xml:lang="ast">Canal</span>
<span xml:lang="be@latin">Kanał</span>
<span xml:lang="bg">Емисия</span>
<span xml:lang="ca">Canal</span>
<span xml:lang="cs">Kanál</span>
<span xml:lang="da">Nyhedskilde</span>
<span xml:lang="de">Abonnement</span>
<span xml:lang="el">Ροή</span>
<span xml:lang="es">Canal</span>
<span xml:lang="eu">Iturria</span>
<span xml:lang="fi">Syöte</span>
<span xml:lang="fr">Flux</span>
<span xml:lang="gl">Fonte</span>
<span xml:lang="he">ערוץ</span>
<span xml:lang="hu">Hírforrás</span>
<span xml:lang="it">Notiziario</span>
<span xml:lang="ja">配信元</span>
<span xml:lang="ko">피드</span>
<span xml:lang="lt">Naujienų kanalas</span>
<span xml:lang="lv">Plūsma</span>
<span xml:lang="mk">Вест</span>
<span xml:lang="nl">Feed</span>
<span xml:lang="pl">Kanał</span>
<span xml:lang="pt">Fonte</span>
<span xml:lang="pt_BR">Fontes de Notícias</span>
<span xml:lang="ro">Flux</span>
<span xml:lang="ru">Лента</span>
<span xml:lang="sk">Kanál</span>
<span xml:lang="sq">Prurje</span>
<span xml:lang="sv">Kanal</span>
<span xml:lang="tr">Haber</span>
<span xml:lang="uk">Подача</span>
<span xml:lang="vi">Feed</span>
<span xml:lang="zh_CN">Feed</span>
<span xml:lang="zh_TW">饋流</span>
<b><span class='source'>
<a href="{/itemset/feed/attributes/attribute[ @name = 'homepage' ]}">
<xsl:value-of select="/itemset/feed/feedTitle"/>
</a>
</span></b>
</td>
</tr>
</xsl:if>
<xsl:if test="attributes/attribute[ @name = 'category' ]">
<tr>
<td valign="top" class='categories'>
<span>Filed under</span>
<span xml:lang="ar">وُضِع تحت</span>
<span xml:lang="ast">Archiváu en</span>
<span xml:lang="be@latin">Vykładziena na</span>
<span xml:lang="ca">Arxivat a</span>
<span xml:lang="cs">Zařazeno do</span>
<span xml:lang="da">Arkiveret under</span>
<span xml:lang="de">Unter</span>
<span xml:lang="el">Αρχειοθετημένο στο</span>
<span xml:lang="es">Archivado en</span>
<span xml:lang="eu">Hemen artxibatua</span>
<span xml:lang="fi">Avainsanat</span>
<span xml:lang="fr">Classé sous</span>
<span xml:lang="gl">Arquivado en</span>
<span xml:lang="he">תויק תחת</span>
<span xml:lang="hu">Beküldve</span>
<span xml:lang="it">Archiviato sotto</span>
<span xml:lang="ja">カテゴリ:</span>
<span xml:lang="lt">Etiketės:</span>
<span xml:lang="lv">Saglabāts zem</span>
<span xml:lang="nl">Opgeslagen onder</span>
<span xml:lang="pl">Zaszeregowany w</span>
<span xml:lang="pt">Arquivado sob</span>
<span xml:lang="pt_BR">Arquivado sob</span>
<span xml:lang="ro">Clasat sub</span>
<span xml:lang="ru">Опубликовано в</span>
<span xml:lang="sk">Zaradené pod</span>
<span xml:lang="sq">Skeduar te:</span>
<span xml:lang="sv">Arkiverad under</span>
<span xml:lang="tr">Dosyalandığı yer</span>
<span xml:lang="uk">Додано до теки</span>
<span xml:lang="vi">Được lọc dưới</span>
<span xml:lang="zh_CN">分类:</span>
<b><span class='categories'>
<xsl:for-each select="attributes/attribute[ @name = 'category' ]">
<xsl:if test="position() != 1">, </xsl:if>
<xsl:value-of select="." disable-output-escaping='yes'/>
</xsl:for-each>
</span></b>
</td>
</tr>
</xsl:if>
<xsl:if test="attributes/attribute[ @name = 'author' ]">
<tr>
<td valign="top" class='author'>
<span>Author</span>
<span xml:lang="ar">المؤلّف</span>
<span xml:lang="ast">Autor</span>
<span xml:lang="be@latin">Aŭtar</span>
<span xml:lang="ca">Autor</span>
<span xml:lang="cs">Autor</span>
<span xml:lang="da">Forfatter</span>
<span xml:lang="de">Autor</span>
<span xml:lang="el">Συγγραφέας</span>
<span xml:lang="es">Autor</span>
<span xml:lang="eu">Egilea</span>
<span xml:lang="fi">Tekijä</span>
<span xml:lang="fr">Auteur</span>
<span xml:lang="gl">Autor</span>
<span xml:lang="he">מחבר</span>
<span xml:lang="hu">Szerző</span>
<span xml:lang="it">Autore</span>
<span xml:lang="ja">作者</span>
<span xml:lang="lt">Autorius</span>
<span xml:lang="lv">Autors</span>
<span xml:lang="nl">Auteur</span>
<span xml:lang="pl">Autor</span>
<span xml:lang="pt">Autor</span>
<span xml:lang="pt_BR">Autor</span>
<span xml:lang="ro">Autor</span>
<span xml:lang="ru">Автор</span>
<span xml:lang="sk">Autor</span>
<span xml:lang="sq">Autor</span>
<span xml:lang="sv">Författare</span>
<span xml:lang="tr">Yazar</span>
<span xml:lang="uk">Автор</span>
<span xml:lang="vi">Tác giả</span>
<span xml:lang="zh_CN">作者</span>
<b><span class='author'>
<xsl:value-of select="attributes/attribute[ @name = 'author' ]" disable-output-escaping='yes'/>
</span></b>
</td>
</tr>
</xsl:if>
<xsl:if test="attributes/attribute[ @name = 'sharedby' ]">
<tr>
<td valign="top" class='sharedby'>
<span>Shared by</span>
<span xml:lang="ar">شارَكهُ</span>
<span xml:lang="ast">Compartíu por</span>
<span xml:lang="ca">Compartit per</span>
<span xml:lang="da">Delt af</span>
<span xml:lang="de">Empfohlen von</span>
<span xml:lang="es">Compartido por</span>
<span xml:lang="eu">Honek elkarbanatua</span>
<span xml:lang="fi">Jaettu:</span>
<span xml:lang="fr">Partagé par</span>
<span xml:lang="gl">Compartido por</span>
<span xml:lang="he">מומלץ על ידי</span>
<span xml:lang="hu">Megosztotta</span>
<span xml:lang="it">Condiviso da</span>
<span xml:lang="ja">共有</span>
<span xml:lang="lt">Pasidalino</span>
<span xml:lang="lv">Dalījās</span>
<span xml:lang="nl">Gedeeld met</span>
<span xml:lang="pl">Udostępnił </span>
<span xml:lang="pt">Partilhado por</span>
<span xml:lang="pt_BR">Compartilhado por</span>
<span xml:lang="ro">Partajat de</span>
<span xml:lang="ru">Опубликовано</span>
<span xml:lang="sk">Zdielané cez</span>
<span xml:lang="sq">Ndarë nga</span>
<span xml:lang="sv">Delad av</span>
<span xml:lang="uk">Спільно використовується</span>
<span xml:lang="vi">Chia sẻ bởi</span>
<span xml:lang="zh_CN">分享:</span>
<b><span class='sharedby'>
<xsl:value-of select="attributes/attribute[ @name = 'sharedby' ]" disable-output-escaping='yes'/>
</span></b>
</td>
</tr>
</xsl:if>
<xsl:for-each select="attributes/attribute[ @name = 'via' ]">
<tr>
<td valign="top" class='source'>
<span>Via</span>
<span xml:lang="ar">عبر</span>
<span xml:lang="ast">Vía</span>
<span xml:lang="be@latin">Ad</span>
<span xml:lang="ca">A través de</span>
<span xml:lang="da">Via</span>
<span xml:lang="de">Via</span>
<span xml:lang="es">Vía</span>
<span xml:lang="eu">Honen bitartez</span>
<span xml:lang="fi">Kautta</span>
<span xml:lang="fr">Via</span>
<span xml:lang="gl">Vía</span>
<span xml:lang="he">דרך</span>
<span xml:lang="hu">Forrás:</span>
<span xml:lang="it">Tramite</span>
<span xml:lang="ja">経由</span>
<span xml:lang="lt">per</span>
<span xml:lang="lv">Caur</span>
<span xml:lang="nl">Via</span>
<span xml:lang="pl">Za</span>
<span xml:lang="pt">Via</span>
<span xml:lang="pt_BR">Via</span>
<span xml:lang="ro">Via</span>
<span xml:lang="ru">Через</span>
<span xml:lang="sk">Cez</span>
<span xml:lang="sq">Përmes</span>
<span xml:lang="sv">Via</span>
<span xml:lang="uk">Проміжні</span>
<span xml:lang="vi">Thông qua</span>
<span xml:lang="zh_CN">通过</span>
<b><span class='source'>
<a href="{.}">
<xsl:value-of select="."/>
</a>
</span></b>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="attributes/attribute[ @name = 'related' ]">
<tr>
<td valign="top" class='source'>
<span>Related</span>
<span xml:lang="ar">متعلق</span>
<span xml:lang="ast">Rellacionáu</span>
<span xml:lang="be@latin">Padobnyja</span>
<span xml:lang="ca">Relacionats</span>
<span xml:lang="cs">Související</span>
<span xml:lang="da">Forbundne</span>
<span xml:lang="de">Verwandt</span>
<span xml:lang="es">Relacionado</span>
<span xml:lang="eu">Erlazionatua</span>
<span xml:lang="fi">Suhteessa kohteeseen</span>
<span xml:lang="fr">Lié</span>
<span xml:lang="gl">Relacionado</span>
<span xml:lang="he">קשורים</span>
<span xml:lang="hu">Kapcsolódó</span>
<span xml:lang="it">Correlato</span>
<span xml:lang="ja">関連</span>
<span xml:lang="lt">Susiję</span>
<span xml:lang="lv">Saistīts</span>
<span xml:lang="nl">Verwant</span>
<span xml:lang="pl">Zmień nazwę</span>
<span xml:lang="pt">Relacionado</span>
<span xml:lang="pt_BR">Relacionados</span>
<span xml:lang="ro">Asociat</span>
<span xml:lang="ru">Сопутствующий</span>
<span xml:lang="sk">Príbuzné</span>
<span xml:lang="sq">Relatuar</span>
<span xml:lang="sv">Relaterade</span>
<span xml:lang="uk">Пов’язано з</span>
<span xml:lang="vi">Quan hệ</span>
<span xml:lang="zh_CN">相关</span>
<b><span class='source'>
<a href="{.}">
<xsl:value-of select="."/>
</a>
</span></b>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="duplicates/duplicateNode">
<tr>
<td valign="top" class='source'>
<span>Also posted in</span>
<span xml:lang="ar">منشورة أيضا في</span>
<span xml:lang="ast">Tamién escritu en</span>
<span xml:lang="be@latin">Taksama napisana ŭ</span>
<span xml:lang="ca">Publicat també a</span>
<span xml:lang="cs">Také zasláno do</span>
<span xml:lang="da">Også sendt til</span>
<span xml:lang="de">Auch in</span>
<span xml:lang="el">Καταχωρήθηκε και στο</span>
<span xml:lang="es">Publicada también en</span>
<span xml:lang="eu">Hemen argitaratua ere</span>
<span xml:lang="fi">Myös lähetetty kohteessa</span>
<span xml:lang="fr">Aussi posté dans</span>
<span xml:lang="gl">Tamén publicado en</span>
<span xml:lang="he">פורסם גם בערוץ</span>
<span xml:lang="hu">Beküldve továbbá</span>
<span xml:lang="it">Inserito anche in</span>
<span xml:lang="ja">別の投稿先</span>
<span xml:lang="lt">Taip pat paskelbė</span>
<span xml:lang="lv">Ievietots arī</span>
<span xml:lang="nl">Ook gepubliceerd in</span>
<span xml:lang="pl">Opublikowane również w</span>
<span xml:lang="pt">Também publicado em</span>
<span xml:lang="pt_BR">Também publicado em</span>
<span xml:lang="ro">Postat și în</span>
<span xml:lang="ru">Также размещён в</span>
<span xml:lang="sk">Tiež poslané v</span>
<span xml:lang="sq">Postuar edhe te</span>
<span xml:lang="sv">Även postad i</span>
<span xml:lang="tr">Tekrarlanan yer</span>
<span xml:lang="uk">Також оприлюднено у</span>
<span xml:lang="vi">Đồng thời post tại</span>
<span xml:lang="zh_CN">还发表在:</span>
<b><span class='source'>
<xsl:value-of select="."/>
</span></b>
</td>
</tr>
</xsl:for-each>
<xsl:if test="attributes/attribute[ @name = 'creator' ]">
<tr>
<td valign="top" class='creator'>
<span>Creator</span>
<span xml:lang="ar">المنشيء</span>
<span xml:lang="ast">Creador</span>
<span xml:lang="be@latin">Stvaralnik</span>
<span xml:lang="ca">Creador</span>
<span xml:lang="cs">Tvůrce</span>
<span xml:lang="da">Forfatter</span>
<span xml:lang="de">Ersteller</span>
<span xml:lang="el">Δημιουργός</span>
<span xml:lang="es">Creador</span>
<span xml:lang="eu">Sortzailea</span>
<span xml:lang="fi">Kirjoittaja</span>
<span xml:lang="fr">Créateur</span>
<span xml:lang="gl">Creador</span>
<span xml:lang="he">יוצר</span>
<span xml:lang="hu">Létrehozó</span>
<span xml:lang="it">Creatore</span>
<span xml:lang="ja">作者</span>
<span xml:lang="lt">Sukūrė</span>
<span xml:lang="lv">Veidotājs</span>
<span xml:lang="nl">Producent</span>
<span xml:lang="pl">Autor</span>
<span xml:lang="pt">Criador</span>
<span xml:lang="pt_BR">Criador</span>
<span xml:lang="ro">Realizat de</span>
<span xml:lang="ru">Создатель</span>
<span xml:lang="sk">Tvorca</span>
<span xml:lang="sq">Krijues</span>
<span xml:lang="sv">Skapare</span>
<span xml:lang="tr">Oluşturan</span>
<span xml:lang="uk">Створено у</span>
<span xml:lang="vi">Người tạo</span>
<span xml:lang="zh_CN">创作者</span>
<b><span class='creator'>
<xsl:value-of select="attributes/attribute[ @name = 'creator' ]" disable-output-escaping='yes'/>
</span></b>
</td>
</tr>
</xsl:if>
</table>
<xsl:variable name="shading">
<xsl:if test="$single = '0' and readStatus = '0'">itemshaded</xsl:if>
<xsl:if test="$single = '0' and readStatus != '0'">itemunshaded</xsl:if>
</xsl:variable>
<div id="shading" class="{$shading}">
<div class='content'>
<xsl:if test="attributes/attribute[ @name = 'point' ]">
<p style="width:400px;height:200px;float:right; border: 1px solid #000;" id="mapdiv"/>
</xsl:if>
<xsl:if test="attributes/attribute[ @name = 'point' ]">
<script src="http://www.openlayers.org/api/OpenLayers.js"/>
<script type="text/javascript">
<![CDATA[var lat=]]><xsl:value-of select="substring-before(attributes/attribute[ @name = 'point' ],' ')"/><![CDATA[
var lon=]]><xsl:value-of select="substring-after(attributes/attribute[ @name = 'point' ],' ')"/>
var zoom=9
var map;
function load() {
map = new OpenLayers.Map("mapdiv");
map.addLayer(new OpenLayers.Layer.OSM());
var lonLat = new OpenLayers.LonLat(lon,lat)
.transform(
new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
map.getProjectionObject() // to Spherical Mercator Projection
);
var markers = new OpenLayers.Layer.Markers("Markers");
map.addLayer(markers);
markers.addMarker(new OpenLayers.Marker(lonLat));
map.setCenter (lonLat, zoom);
}
</script>
</xsl:if>
<p dir="{$txtDirection}">
<xsl:if test="attributes/attribute[ @name = 'gravatar' ]">
<img src="{attributes/attribute[ @name = 'gravatar' ]}" class='gravatar' align='left'/>
</xsl:if>
<xsl:value-of select="description" disable-output-escaping='yes'/>
</p>
<xsl:if test="attributes/attribute[ @name = 'photo' ]">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:call-template name="substring-after-last">
<xsl:with-param select="attributes/attribute[ @name = 'photo' ]" name="input"/>
<xsl:with-param select="','" name="substr"/>
</xsl:call-template>
</xsl:attribute>
</xsl:element>
</xsl:if>
<xsl:if test="attributes/attribute[ @name = 'commentFeedUri' ] and not(./commentsSuppressed) and $single = 1">
<p>
<xsl:if test="count(comments/item) != 0">
<b><span>Comments</span>
<span xml:lang="ar">التعليقات</span>
<span xml:lang="ast">Comentarios</span>
<span xml:lang="be@latin">Kamentary</span>
<span xml:lang="ca">Comentaris</span>
<span xml:lang="cs">Komentáře</span>
<span xml:lang="da">Bemærkninger</span>
<span xml:lang="de">Kommentare</span>
<span xml:lang="el">Σχόλια</span>
<span xml:lang="es">Comentarios</span>
<span xml:lang="eu">Iruzkinak</span>
<span xml:lang="fi">Kommentit</span>
<span xml:lang="fr">Commentaires</span>
<span xml:lang="gl">Comentarios</span>
<span xml:lang="he">תגובות</span>
<span xml:lang="hu">Hozzászólások</span>
<span xml:lang="it">Commenti</span>
<span xml:lang="ja">コメント</span>
<span xml:lang="lt">Komentarai</span>
<span xml:lang="lv">Komentāri</span>
<span xml:lang="nl">Commentaren</span>
<span xml:lang="pl">Komentarze</span>
<span xml:lang="pt">Comentários</span>
<span xml:lang="pt_BR">comentários</span>
<span xml:lang="ro">Comentarii</span>
<span xml:lang="ru">Комментарии</span>
<span xml:lang="sk">Komentáre</span>
<span xml:lang="sq">Komente</span>
<span xml:lang="sv">Kommentarer</span>
<span xml:lang="tr">Yorumlar</span>
<span xml:lang="uk">Коментарі</span>
<span xml:lang="vi">Ghi chú</span>
<span xml:lang="zh_CN">评论</span></b>
</xsl:if>
<xsl:if test="comments/updateState = 'updating'">
(<span>
<span>Updating...</span>
<span xml:lang="ar">يجري تحديث...</span>
<span xml:lang="ast">Anovando...</span>
<span xml:lang="be@latin">Aktualizacyja...</span>
<span xml:lang="ca">S'està actualitzant...</span>
<span xml:lang="cs">Aktualizuje se…</span>
<span xml:lang="da">Opdaterer ...</span>
<span xml:lang="de">Aktualisiere...</span>
<span xml:lang="el">Ενημέρωση...</span>
<span xml:lang="es">Actualizando...</span>
<span xml:lang="eu">Eguneratzen...</span>
<span xml:lang="fi">Päivitetään...</span>
<span xml:lang="fr">Mise à jour …</span>
<span xml:lang="gl">Actualizando...</span>
<span xml:lang="he">מעדכן כעת…</span>
<span xml:lang="hu">Frissítés…</span>
<span xml:lang="it">Aggiornamento...</span>
<span xml:lang="ja">更新中...</span>
<span xml:lang="lt">Atnaujinama...</span>
<span xml:lang="lv">Atjaunina...</span>
<span xml:lang="nl">Bijwerken...</span>
<span xml:lang="pl">Uaktualnianie...</span>
<span xml:lang="pt">A Actualizar...</span>
<span xml:lang="pt_BR">Atualizando...</span>
<span xml:lang="ro">În curs de actualizare...</span>
<span xml:lang="ru">Обновление...</span>
<span xml:lang="sk">Aktualizuje sa...</span>
<span xml:lang="sq">Po përditësohet...</span>
<span xml:lang="sv">Uppdaterar...</span>
<span xml:lang="tr">Güncelleniyor...</span>
<span xml:lang="uk">Оновлення…</span>
<span xml:lang="vi">Đang cập nhật...</span>
<span xml:lang="zh_CN">正在更新...</span>
</span>)
</xsl:if>
</p>
<xsl:if test="comments/updateError">
<p>
<div id="errors">
<div id="updateError">
<xsl:value-of select="comments/updateError"/>
</div>
</div>
</p>
</xsl:if>
<p>
<xsl:apply-templates select="comments/item">
<xsl:sort select="time"/>
</xsl:apply-templates>
</p>
</xsl:if>
</div>
</div>
</div>
</div>
<xsl:if test="attributes/attribute[ @name = 'point' ]">
<script src="http://www.openlayers.org/api/OpenLayers.js"/>
<script type="text/javascript">
<![CDATA[var lat=]]><xsl:value-of select="substring-before(attributes/attribute[ @name = 'point' ],' ')"/><![CDATA[
var lon=]]><xsl:value-of select="substring-after(attributes/attribute[ @name = 'point' ],' ')"/>
var zoom=9
var map;
function load() {
map = new OpenLayers.Map("mapdiv");
map.addLayer(new OpenLayers.Layer.OSM());
var lonLat = new OpenLayers.LonLat(lon,lat)
.transform(
new OpenLayers.Projection("EPSG:4326"), // transform from WGS 1984
map.getProjectionObject() // to Spherical Mercator Projection
);
var markers = new OpenLayers.Layer.Markers("Markers");
map.addLayer(markers);
markers.addMarker(new OpenLayers.Marker(lonLat));
map.setCenter (lonLat, zoom);
}
</script>
</xsl:if>
</xsl:template>
<xsl:template match="attributes/attribute[ @name = 'slash']">
<span class="slashSection"><span>Section</span>
<span xml:lang="ar">القسم</span>
<span xml:lang="ast">Seición</span>
<span xml:lang="be@latin">Raździeł</span>
<span xml:lang="ca">Secció</span>
<span xml:lang="cs">Sekce</span>
<span xml:lang="da">Afsnit</span>
<span xml:lang="de">Sektion</span>
<span xml:lang="el">Τομέας</span>
<span xml:lang="es">Sección</span>
<span xml:lang="eu">Sekzioa</span>
<span xml:lang="fi">Lohko</span>
<span xml:lang="fr">Section</span>
<span xml:lang="gl">Sección</span>
<span xml:lang="he">סעיף</span>
<span xml:lang="hu">Szakasz</span>
<span xml:lang="it">Sezione</span>
<span xml:lang="ja">セクション</span>
<span xml:lang="lt">Sekcija</span>
<span xml:lang="lv">Sadaļa</span>
<span xml:lang="nl">Sectie</span>
<span xml:lang="pl">Sekcja</span>
<span xml:lang="pt">Secção</span>
<span xml:lang="pt_BR">Seção</span>
<span xml:lang="ro">Secțiune</span>
<span xml:lang="ru">Раздел</span>
<span xml:lang="sk">Sekcia</span>
<span xml:lang="sq">Ndarje</span>
<span xml:lang="sv">Avsnitt</span>
<span xml:lang="tr">Kısım</span>
<span xml:lang="uk">Розділ</span>
<span xml:lang="vi">Phần</span>
<span xml:lang="zh_CN">章节</span></span>
<span class="slashValue"><xsl:value-of select="substring-before(., ',')"/></span>
<span class="slashDepartment"><span>Department</span>
<span xml:lang="ar">المصلحة</span>
<span xml:lang="ast">Departamentu</span>
<span xml:lang="be@latin">Addzieł</span>
<span xml:lang="ca">Departament</span>
<span xml:lang="cs">Oddělení</span>
<span xml:lang="da">Afdeling</span>
<span xml:lang="de">Department</span>
<span xml:lang="el">Τμήμα</span>
<span xml:lang="es">Departamento</span>
<span xml:lang="eu">Saila</span>
<span xml:lang="fi">Osasto</span>
<span xml:lang="fr">Département</span>
<span xml:lang="gl">Departamento</span>
<span xml:lang="he">מחלקה</span>
<span xml:lang="hu">Részleg</span>
<span xml:lang="it">Reparto</span>
<span xml:lang="ja">部門</span>
<span xml:lang="lt">Padalinys</span>
<span xml:lang="lv">Nodaļa</span>
<span xml:lang="nl">Afdeling</span>
<span xml:lang="pl">Wydział</span>
<span xml:lang="pt">Departamento</span>
<span xml:lang="pt_BR">Departamento</span>
<span xml:lang="ro">Departament</span>
<span xml:lang="ru">Отдел</span>
<span xml:lang="sk">Odelenie</span>
<span xml:lang="sq">Degë</span>
<span xml:lang="sv">Avdelning</span>
<span xml:lang="tr">Bölüm</span>
<span xml:lang="uk">Відділ</span>
<span xml:lang="vi">Phòng ban</span>
<span xml:lang="zh_CN">部门</span></span>
<span class="slashValue"><xsl:value-of select="substring-after(., ',')"/></span>
</xsl:template>
<xsl:template match="comments/item">
<div dir="{$txtDirection}" class="comment">
<div class="comment_title"><xsl:value-of select="title"/></div>
<div class="comment_body"><xsl:value-of select="description" disable-output-escaping='yes'/></div>
</div>
</xsl:template>
<xsl:template name="item_summary">
<xsl:variable name="summaryShading">
<xsl:choose>
<xsl:when test="readStatus = '0'">summaryshaded</xsl:when>
<xsl:otherwise>summaryunshaded</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div class="{$summaryShading}">
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" class="summarytime">
<xsl:value-of select="timestr"/>
</td>
<td width="100%">
<a href="{source}">
<xsl:value-of select="title"/>
</a>
<xsl:if test="description">
<br/><br/>
<xsl:value-of select="description" disable-output-escaping='yes'/>
</xsl:if>
</td>
</tr>
</table>
<hr class='summary'/>
</div>
</xsl:template>
<xsl:template name="substring-after-last">
<xsl:param name="input"/>
<xsl:param name="substr"/>
<xsl:variable select="substring-after($input,$substr)" name="temp"/>
<xsl:choose>
<xsl:when test="$substr and contains($temp,$substr)">
<xsl:call-template name="substring-after-last">
<xsl:with-param select="$temp" name="input"/>
<xsl:with-param select="$substr" name="substr"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$temp"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
|