Es ist ein Fehler aufgetreten

file:/www/deutrik/deutrik/class/cms/mod/wikipedia/Interface.php line:48 file_get_contents(https://de.wikipedia.org/w/api.php?action=parse&origin=*&format=json&pageid=52546): failed to open stream: Connection timed out(2)
Backtrace:

file: 24 - /www/deutrik/fad-server/class/system/Error.php
call: system_Error::backtrace

file: 211 - /www/deutrik/fad-server/class/system/Error.php
call: system_Error::getErrorPage
0file:/www/deutrik/deutrik/class/cms/mod/wikipedia/Interface.php line:48 file_get_contents(https://de.wikipedia.org/w/api.php?action=parse&origin=*&format=json&pageid=52546): failed to open stream: Connection timed out(2)

file: ? - ?
call: system_Error::handle
02
1file_get_contents(https://de.wikipedia.org/w/api.php?action=parse&origin=*&format=json&pageid=52546): failed to open stream: Connection timed out
2/www/deutrik/deutrik/class/cms/mod/wikipedia/Interface.php
348
4Array(8) a:8:{s:7:"keyword";s:14:"Die Gefährten";s:3:"ctx";i:0;s:4:"word";s:18:"Die+Gef%C3%A4hrten";s:3:"res";s:194:"{"batchcomplete":"","query":{"pages":{"52546":{"pageid":52546,"ns":0,"title":"Die Gef\u00e4hrten","pageprops":{"defaultsort":"Die Gefahrten","disambiguation":"","wikibase_item":"Q122867518"}}}}}";s:4:"info";a:4:{s:6:"pageid";i:52546;s:2:"ns";i:0;s:5:"title";s:14:"Die Gefährten";s:9:"pageprops";a:3:{s:11:"defaultsort";s:13:"Die Gefahrten";s:14:"disambiguation";s:0:"";s:13:"wikibase_item";s:10:"Q122867518";}}s:6:"pageid";i:52546;s:5:"title";s:14:"Die Gefährten";s:20:"http_response_header";a:28:{i:0;s:15:"HTTP/1.1 200 OK";i:1;s:35:"date: Sat, 20 Apr 2024 02:52:53 GMT";i:2;s:46:"server: mw-api-ext.eqiad.main-6748bf4564-42cqm";i:3;s:31:"x-content-type-options: nosniff";i:4;s:32:"mediawiki-login-suppressed: true";i:5;s:30:"access-control-allow-origin: *";i:6;s:39:"access-control-allow-credentials: false";i:7;s:107:"access-control-expose-headers: MediaWiki-API-Error, Retry-After, X-Database-Lag, MediaWiki-Login-Suppressed";i:8;s:21:"x-frame-options: DENY";i:9;s:53:"content-disposition: inline; filename=api-result.json";i:10;s:79:"vary: Accept-Encoding,Treat-as-Untrusted,X-Forwarded-Proto,Cookie,Authorization";i:11;s:50:"cache-control: private, must-revalidate, max-age=0";i:12;s:19:"content-length: 194";i:13;s:45:"content-type: application/json; charset=utf-8";i:14;s:6:"age: 0";i:15;s:33:"x-cache: cp3069 miss, cp3069 pass";i:16;s:20:"x-cache-status: pass";i:17;s:52:"server-timing: cache;desc="pass", host;desc="cp3069"";i:18;s:72:"strict-transport-security: max-age=106384710; includeSubDomains; preload";i:19;s:214:"report-to: { "group": "wm_nel", "max_age": 604800, "endpoints": [{ "url": "https://intake-logging.wikimedia.org/v1/events?stream=w3c.reportingapi.network_error&schema_uri=/w3c/reportingapi/network_error/1.0.0" }] }";i:20;s:99:"nel: { "report_to": "wm_nel", "max_age": 604800, "failure_fraction": 0.05, "success_fraction": 0.0}";i:21;s:100:"set-cookie: WMF-Last-Access=20-Apr-2024;Path=/;HttpOnly;secure;Expires=Wed, 22 May 2024 00:00:00 GMT";i:22;s:129:"set-cookie: WMF-Last-Access-Global=20-Apr-2024;Path=/;Domain=.wikipedia.org;HttpOnly;secure;Expires=Wed, 22 May 2024 00:00:00 GMT";i:23;s:27:"x-client-ip: 168.119.162.93";i:24;s:87:"set-cookie: GeoIP=DE:RP:Hachenburg:50.66:7.83:v4; Path=/; secure; Domain=.wikipedia.org";i:25;s:62:"set-cookie: NetworkProbeLimit=0.001;Path=/;Secure;Max-Age=3600";i:26;s:20:"accept-ranges: bytes";i:27;s:17:"connection: close";}}

file: 48 - /www/deutrik/deutrik/class/cms/mod/wikipedia/Interface.php
call: file_get_contents
0https://de.wikipedia.org/w/api.php?action=parse&origin=*&format=json&pageid=52546
10
2Resource(#87)

file: ? - ?
call: cms_mod_wikipedia_Interface::getPage
0Die Gefährten

file: 170 - /www/deutrik/fad-server/class/cms/mod/Module.php
call: XSLTProcessor->transformToDoc
0Object(DOMDocument) O:11:"DOMDocument":0:{}

file: 338 - /www/deutrik/fad-server/class/cms/mod/Interface.php
call: cms_mod_Module::getContent
0mod_wikipedia
14902335
2lesering

file: ? - ?
call: cms_mod_Interface::getModule
04902335

file: 399 - /www/deutrik/fad-server/class/system/Transformer.php
call: XSLTProcessor->transformToXml
0Object(DOMDocument) O:11:"DOMDocument":0:{}

file: 131 - /www/deutrik/fad-server/class/web/content/HTML.php
call: system_Transformer::transform
0<?xml version="1.0"?>
<content nr="4081" holderlogin="lesering" browser_caption="Die Gef&#xE4;hrten" comment="no" pdf="no" advise="yes" description="Die Gef&#xE4;hrten" keywords="Die Gef&#xE4;hrten"><metadata><schema>WebPage</schema><nr>4081</nr><same_alias_count>0</same_alias_count><publisher_content_id/><title>Newsreader</title><holder>12</holder><visible_start>2015-05-18 17:42:00+02</visible_start><visible_end/><publishtype>page_blogreader</publishtype><pagetypename>News Reader</pagetypename><created>2015-05-18 17:41:58.81859</created><img/><rss_date>Mon, 18 May 2015 17:42:00 +0100</rss_date><author>67</author><alias>index</alias><publish_id>2578</publish_id><imgtype/><imgmime/><holderlogin>lesering</holderlogin><authorname>Ute Pappelbaum</authorname><auth_type>none</auth_type><auth_page/><schema/><visible>t</visible><publisher_login/><menu/><advise>yes</advise><pdf>no</pdf><headline>yes</headline><useTags>t</useTags><rssShowFulltext>f</rssShowFulltext><mappings/><text/><holder>12</holder><Tags/><modgroups><modgroup layout="" place="navigation_assets" nr="2373" name="Navigation Assets"><module nr="4125" holderlogin="lesering" publishtype="mod_search_form" language=""/><params/></modgroup><modgroup layout="" place="navigation_main" nr="2375" name="Navigation Hauptmen&#xFC;"><module nr="4901382" holderlogin="lesering" publishtype="mod_sitemap" language=""/><params/></modgroup><modgroup layout="" place="navigation_ad" nr="2376" name="Navigation ADS"><module nr="4901409" holderlogin="lesering" publishtype="mod_html" language=""/><module nr="4901405" holderlogin="lesering" publishtype="mod_html" language=""/><module nr="4901377" holderlogin="lesering" publishtype="mod_html" language=""/><module nr="4901410" holderlogin="lesering" publishtype="mod_html" language=""/><module nr="8327" holderlogin="lesering" publishtype="mod_code" language=""/><params/></modgroup><modgroup layout="" place="navigation_menu" nr="2374" name="Navigation Men&#xFC;"><module nr="4907410" holderlogin="lesering" publishtype="mod_search_form" language=""/><module nr="4907416" holderlogin="lesering" publishtype="mod_html" language=""/><module nr="4901382" holderlogin="lesering" publishtype="mod_sitemap" language=""/><module nr="4901400" holderlogin="lesering" publishtype="mod_sitemap" language=""/><module nr="4901385" holderlogin="lesering" publishtype="mod_blog_tags" language=""/><module nr="4907414" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="8525" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="4904958" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="4906686" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><params/></modgroup><modgroup layout="" place="head-top" nr="2287" name="Kopf oben Newsreader"><module nr="4902335" holderlogin="lesering" publishtype="mod_wikipedia" language=""/><params/></modgroup><modgroup layout="" place="sidebar_site" nr="2388" name="Seitenleiste Volltextsuche"><module nr="4901390" holderlogin="lesering" publishtype="mod_html" language=""/><params/></modgroup><modgroup layout="" place="footer" nr="15" name="Fuss"><module nr="4903895" holderlogin="lesering" publishtype="mod_sitemap" language=""/><module nr="4901382" holderlogin="lesering" publishtype="mod_sitemap" language=""/><params/></modgroup><modgroup layout="" place="footer-down" nr="310" name="Fuss Unten"><params/></modgroup><modgroup layout="" place="footer-down-social-media" nr="2389" name="Fuss Social Media"><module nr="8232" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="8525" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="4904958" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="4906686" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="4906687" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><module nr="4909046" holderlogin="lesering" publishtype="mod_social_fanpage" language=""/><params/></modgroup></modgroups><layout type="layout" name="site-newsreader">site-newsreader</layout><Translations/><language>de</language><imagemeta/></metadata><text><div id="page_blogreader_4081" class="tag_list" itemscope="itemscope" itemtype="http://schema.org/BreadcrumbList"><h1 itemprop="name" class="tag">Die Gef&#xE4;hrten</h1><article itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem" class="fad_blog_article layout_news"><meta name="skin.asin" content="B01M0PVG5W, B00563BPZU"/><meta itemprop="position" content="1"/><a itemprop="item" itemscope="itemscope" itemtype="http://schema.org/Thing" id="/id/4907981/audible-Horbuch-Charts-Andreas-Gruber-steigt-auf-Platz-1/" href="/id/4907981/audible-Horbuch-Charts-Andreas-Gruber-steigt-auf-Platz-1/" title="&quot;audible&quot; H&#xF6;rbuch-Charts: Andreas Gruber steigt auf Platz 1" class="fad_blog_article_content"><time class="fad_blog_article_date" datetime="2022-09-26 11:40:31+02:00">26.09.2022</time><div class="fad_blog_article_topic">Charts</div><h3 itemprop="name"><span class="fad_blog_article_teaser">Bestseller</span><span class="fad_blog_article_title">"audible" H&#xF6;rbuch-Charts: Andreas Gruber steigt auf Platz 1</span></h3><figure class="fad_blog_article_figure"><img class="fad_blog_article_img" width="1920" height="1280" src="/content.4907981.images.mftsd.girl-g082e2e67d_1920.jpg" path="/content.4907981.images.mftsd.girl-g082e2e67d_1920" type="jpg" title="Eine neue Top-3 und zwei altbekannte Neueinsteiger: Das sind die aktuellen Entwicklungen der &quot;audible&quot; H&#xF6;rbuch-Charts."><meta name="mediatype" content="2"/></img></figure><div class="fad_blog_article_text">Es tut sich wenig auf der "audible" Bestsellerliste. Als einzige Neu- beziehungsweise Wiedereinsteiger der Woche k&#xF6;nnen sich J. R. R. Tolkien mit seinem Herr der Ringe-Auftakt "Die Gef&#xE4;hrten" und J. K. Rowling mit dem dritten Band ihrer Harry Potter-Reihe - "Der Gefangene von Askaban" - positionieren. Andreas Gruber schafft es indessen, Charlotte Links "Einsame Nacht" von der Spitze zu verdr&#xE4;ngen. Wir schauen uns die aktuelle Entwicklungen an.</div></a></article><article itemprop="itemListElement" itemscope="itemscope" itemtype="http://schema.org/ListItem" class="fad_blog_article layout_news"><meta name="skin.asin" content="B005OS7CAY, B00563BPZU, B0BB83KCB2"/><meta itemprop="position" content="2"/><a itemprop="item" itemscope="itemscope" itemtype="http://schema.org/Thing" id="/id/4907839/audible-Horbuch-Charts-JRR-Tolkien-kann-doppelt-punkten/" href="/id/4907839/audible-Horbuch-Charts-JRR-Tolkien-kann-doppelt-punkten/" title="&quot;audible&quot; H&#xF6;rbuch-Charts: J.R.R. Tolkien kann doppelt punkten" class="fad_blog_article_content"><time class="fad_blog_article_date" datetime="2022-09-12 11:28:00+02:00">12.09.2022</time><div class="fad_blog_article_topic">Charts</div><h3 itemprop="name"><span class="fad_blog_article_teaser">Besteller</span><span class="fad_blog_article_title">"audible" H&#xF6;rbuch-Charts: J.R.R. Tolkien kann doppelt punkten</span></h3><figure class="fad_blog_article_figure"><img class="fad_blog_article_img" width="1920" height="1280" src="/content.4907839.images.nfqxz.girl-g082e2e67d_1920.jpg" path="/content.4907839.images.nfqxz.girl-g082e2e67d_1920" type="jpg" title="J.R.R. Tolkien steigt in dieser Woche mit zwei Titeln ins &quot;audible&quot; H&#xF6;rbuch-Ranking ein. Gesprochen werden die H&#xF6;rb&#xFC;cher von Achim H&#xF6;ppner, der deutschen Synchronstimme des Zauberers Gandalf."><meta name="mediatype" content="2"/></img></figure><div class="fad_blog_article_text">Mit "Das Silmarillion" und "Die Gef&#xE4;hrten" sind in dieser Woche gleich zwei Werke des britischen Schriftstellers und "Der Herr der Ringe"-Erfinders J.R.R. Tolkien im Ranking der "audible"-Bestsellerliste zu finden. Das mag nicht zuletzt an dem Erz&#xE4;hler der H&#xF6;rb&#xFC;cher - Achim H&#xF6;ppler - liegen, dessen Stimme eingefleischte Mittelerde-Fans sofort dem Zauberer Gandalf zuordnen werden. Die Neueinsteiger sowie die aktuelle Top10 der H&#xF6;rbuch-Charts im &#xDC;berblick.</div></a></article></div></text></content>
1<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:php="http://php.net/xsl"
xmlns:inveda="http://www.inveda.de"
xmlns:fad="http://www.fad-server.org"
exclude-result-prefixes="php inveda fad">

<!-- HTML 5 Doctype -->
<!-- <xsl:output -->
<!-- encoding="utf-8" -->
<!-- method="xml" -->
<!-- omit-xml-declaration="yes" -->
<!-- doctype-system="about:legacy-compat" -->
<!-- indent="no"/> -->
<xsl:output
encoding="utf-8"
method="xml"
omit-xml-declaration="yes"
indent="no"/>



<xsl:include href="arg://lib"/>
<xsl:include href="arg://lib2"/>
<xsl:include href="arg://skin"/>
<xsl:include href="arg://schema"/>


<xsl:variable name="registerSkin" select="php:function('web_Session::registerSkin',document('arg://skin')/*/inveda:skin)"/>

<xsl:variable name="secure">
<xsl:choose>
<xsl:when test="document('ibs://issecure')/result/@value='yes'">1</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="skin">
<xsl:choose>
<xsl:when test="$secure = '0'">
<xsl:value-of select="document('ibs://holder_value,skin_filename')/content/@value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="document('ibs://user_value,skin_filename')/content/@value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="skin_scheme">
<xsl:choose>
<xsl:when test="$secure = '0'">
<xsl:value-of select="document('ibs://holder_value,skin_scheme')/content/@value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="document('ibs://user_value,skin_scheme')/content/@value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="skin_scheme_default">
<xsl:choose>
<xsl:when test="$secure = '0'">
<xsl:value-of select="document('ibs://holder_value,skin_scheme_default')/content/@value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="document('ibs://user_value,skin_scheme_default')/content/@value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:template name="onbeforeunload">
<script type="text/javascript" >
function setsubmit(t) {
submit = t;
};
</script>
</xsl:template>

</xsl:stylesheet>
2Array(5) a:5:{s:10:"/inveda_cm";s:1494:"<?xml version="1.0" encoding="utf-8" ?><inveda_cm><coverage></coverage><description>Lesering.de ist ein Literaturmagazin. Wir berichten über Bücher und Aktuelles aus der Literaturszene.</description><holder_headline>Aufschlagen und Verbinden</holder_headline><page_title>Lesering.de</page_title><holder_page_title>Lesering.de</holder_page_title><holder_adresse1>Deutrik GmbH</holder_adresse1><holder_strasse>Tauchaer Straße 5</holder_strasse><holder_plz>04425</holder_plz><holder_ort>Taucha OT Pönitz</holder_ort><holder_telefon></holder_telefon><holder_telefax></holder_telefax><holder_email>ute.pappelbaum@deutrik.de</holder_email><holder_news></holder_news><holder_accountlevel></holder_accountlevel><holder_url>https://www.lesering.de/</holder_url><holder_domain>www.lesering.de</holder_domain><skin_scheme>lesering-two</skin_scheme><skin_scheme_default>lesering-two</skin_scheme_default><preview_mode></preview_mode><user></user><keywords>Literaturmagazin</keywords><slogan>Eigene Homepage erstellen - Sofort Online</slogan><page>index</page><page_para>tag/Die%20Gef%C3%A4hrten</page_para><request_type>html</request_type><site_url>https://www.deutrik.de/</site_url><site_name>default</site_name><session>PHPSESSID=p09ue8f2of1uq5q3bhglv8au9j</session><date>20.04.2024</date><time>04:52:51</time><now>2024-04-20 04:52:51</now><inveda_cm_debug></inveda_cm_debug><inveda_cm_debug_webcontrol></inveda_cm_debug_webcontrol><skin>lesering-two</skin><skin_original></skin_original></inveda_cm>";s:5:"/skin";s:215864:"<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet extension-element-prefixes="xs php exslt inveda xsl str"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:php="http://php.net/xsl"
xmlns:exslt="http://exslt.org/common"
xmlns:str="http://exslt.org/strings"
xmlns:inveda="http://www.inveda.de" version="1.0">
<xsl:output
encoding="utf-8"
method="xml"
omit-xml-declaration="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
xmlns="http://www.w3.org/1999/xhtml"
indent="yes"/>
<xsl:variable name="ibs_skin_version" select="'1'"/>
<xsl:variable name="ibs_textbox_spacing" select="'5'"/>
<xsl:variable name="nr" select="/content/@nr"/>
<xsl:variable name="topic" select="/content/@topic"/>
<xsl:variable name="content" select="/content"/>
<xsl:variable name="domain" select="php:function('mandant_Holder::getCurrentHolderURL')"/>
<xsl:variable name="page-title" select="php:function('mandant_Holder::getValue','page_title')"/>
<xsl:variable name="headline" select="php:function('mandant_Holder::getValue','headline')"/>
<xsl:variable name="header" select="/content/text/div/h1[@class='fad_caption']"/>


<xsl:variable name="metadata" select="/content/metadata"/>

<xsl:variable name="modgroups" select="$metadata/modgroups"/>
<xsl:variable name="modgroup" select="$metadata/modgroup"/>
<xsl:variable name="layout" select="$metadata/layout"/>
<xsl:variable name="isnews" select="$metadata/schema='blog'"/>




<xsl:variable name="justify_text" select="/content/metadata/skin.justify_text"/>

<xsl:variable name="center_text" select="/content/metadata/skin.center_text"/>




<inveda:skin>

<link>
<style className="ctab_ghosty_mode" name="CTAB Ghost" description="Ghost"/>
<style className="ctab_floating_mode" name="CTAB Float" description="Float"/>
<style className="ctab_raised_mode" name="CTAB Raised" description="Raised"/>
</link>

<lists>
<ul name="checkmark" className="checkmark" description="Mit Häkchen"/>
</lists>

<images>
<size name="facebook" description="Facebook">820x462</size>
<size name="preview" description="Vorschau">700x400</size>

<size>650x300</size>
<size>450x450</size>
<size>150x150</size> <!-- Plista -->
<size>250x250</size> <!-- Plista -->

<size description="Landschaft Hintergrundbild tile-design l1 g" width="900" height="600">900x600</size>

<size description="Landschaft klein" value="landscape_img" width="750" height="420">800x400</size>
<size description="Landschaft mittel" value="landscape_img" width="1458" height="820">1000x500</size>
<size description="Landschaft groß" value="landscape_img" width="1920" height="1080">1200x600</size>

<size description="Newsletter Titelbild">600x300</size>

</images>

<layouts>

<param type="option" value="layout_modnewslist" name="Layout Für:">
<cmstype>mod_blog_newslist</cmstype>
<option value="tile-design" name="Kachel"/>
<option value="horizontal-scroll-box" name="Horizontale Scrollbox"/>
<option value="swipebox" name="Swipebox"/>
</param>

<param type="option" value="show_news_in_steps" name="In Schritten anzeigen:">
<cmstype>mod_blog_newslist</cmstype>
<option name="/"/>
<option value="10" name="10 News"/>
<option value="15" name="15 News"/>
<option value="20" name="20 News"/>
</param>

<param type="option" value="layout_modnewslist_news" name="Layout News:">
<cmstype>mod_blog_newslist</cmstype>
<option name="/"/>
<option value="layout_one" name="Layout 1" img="/skins/lesering-two/img/layout_one.png"/>
<option value="layout_two" name="Layout 2" img="/skins/lesering-two/img/layout_two.png" />
<option value="layout_three" name="Layout 3" img="/skins/lesering-two/img/layout_three.png"/>
</param>

<param type="image" value="background-image" name="Hintergrundbild" group="Hintergrundbild">
<cmstype>page_page</cmstype>
</param>

<param type="text" value="szm-code" name="IVW Code (szm-code)">
<cmstype>page_page</cmstype>
</param>

<cmstype>mod_blog_newslist</cmstype>

<param type="option" value="max_width" name="Maximal Breite:">
<cmstype>mod_blog_newslist</cmstype>
<cmstype>mod_code</cmstype>
<cmstype>mod_html</cmstype>
<cmstype>mod_gallery</cmstype>
<option value="slim_width" name="Schmal(300px)"/>
<option value="wide_width" name="Breit (600px)"/>
<option value="full-width" name="Volle Breite (1200px)"/>
<option value="ultra-width" name="Randlos (100%)"/>
</param>

<param type="option" value="mode" name="Modus">
<cmstype>mod_blog_newslist</cmstype>
<cmstype>mod_code</cmstype>
<cmstype>mod_html</cmstype>
<cmstype>mod_gallery</cmstype>
<option value="ghosty" name="Ghosty"/>
<option value="raised" name="Raised"/>
</param>

<param type="option" value="layout_newsletter" name="Layout für Newsletter">
<cmstype>mod_html</cmstype>
<option name="/"/>
<option value="layout_split" name="Layout Split 1/1"/>
</param>

<param type="option" value="mirrow" name="Layout Spiegeln">
<cmstype>mod_html</cmstype>
<option name="/"/>
<option value="mirrow" name="Mirrow"/>
</param>

<param type="text" value="css_class" name="CSS Klasse setzen">
<cmstype>mod_page_preview</cmstype>
<cmstype>mod_sitemap</cmstype>
<cmstype>mod_gallery</cmstype>
<cmstype>mod_social_fanpage</cmstype>
<cmstype>mod_code</cmstype>
<cmstype>mod_html</cmstype>
<option name="/"/>
<option name="Css Klasse"/>
</param>

<param type="text" value="ctab" name="CTAB">
<cmstype>mod_page_preview</cmstype>
<option name="/"/>
<option name="CTAB"/>
</param>

<param type="image" value="icon_header" name="Icon">
<cmstype>mod_sitemap</cmstype>
</param>

<param type="option" value="slider" name="Slider">
<cmstype>mod_pagelist</cmstype>
<option name="/"/>
<option value="yes" name="yes"/>
<option value="no" name="no"/>
</param>

<param type="text" value="author_name" name="Autor">
<cmstype>blog</cmstype>
</param>

<param type="text" value="instagram_link" name="Instagram">
<cmstype>blog</cmstype>
</param>

<param type="text" value="facebook_link" name="Facebook">
<cmstype>blog</cmstype>
</param>

<param type="text" value="isbn" name="ISBN">
<cmstype>blog</cmstype>
</param>

<param type="text" value="asin" name="ASIN">
<cmstype>blog</cmstype>
</param>


<param type="option" value="gallery_layout" name="Layout für:">
<cmstype>mod_gallery</cmstype>
<option name="/"/>
<option value="layout-icons" name="Icons"/>
</param>

<param type="option" value="html_layout" name="Layout für:">
<cmstype>mod_html</cmstype>
<option name="/"/>
<option value="freetext_ad" name="Freie Texte AD"/>
</param>

<layout name="Startseite" value="home" description="Layout der Startseite" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>head-top</place>

<place>book-of-week</place>
<place>multibox</place>

<place>unten</place>

<place>footer</place>
<place>footer-formular</place>
<place>footer-down</place>
<place>footer-down-social-media</place>

</layout>


<layout name="Unterseite" value="site" description="Unterseite" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>
<place>bottom-landingpage</place>
<place>bottom-freetext</place>
<place>bottom</place>
<place>sidebar</place>

<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="Unterseite Freie Text Landingpage Neu" value="site_free_text_new" description="Unterseite" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>
<place>bottom-landingpage</place>
<place>bottom-freetext</place>
<place>bottom</place>
<place>sidebar</place>
<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="Unterseite Angebote" value="site_offers" description="Unterseite" type="page">
<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>
<place>bottom-landingpage</place>
<place>bottom</place>
<place>sidebar</place>
<place>footer</place>
<place>footer-down</place>
</layout>

<layout name="Unterseite-Landingpage" value="site-landingpage" description="Unterseite-Landingpage" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>


<place>bottom-landingpage</place>
<place>sidebar</place>
<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="Unterseite-Landingpage-News-Freie-Texte" value="site-landingpage-news-freetext" description="Unterseite-Landingpage-News" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>landingpage-news</place>
<place>landingpage-sidebar</place>
<place>bottom</place>
<place>sidebar</place>
<place>footer</place>
<place>footer-down</place>

</layout>


<layout name="Unterseite-Landingpage-News" value="site-landingpage-news" description="Unterseite-Landingpage-News" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>landingpage-news</place>
<place>landingpage-sidebar</place>

<place>bottom</place>
<place>sidebar</place>
<place>footer</place>
<place>footer-down</place>

</layout>


<layout name="Unterseite-Veranstaltung" value="site-event" description="Unterseite-Veranstaltung" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>landingpage-news</place>
<place>landingpage-sidebar</place>

<place>bottom-landingpage</place>
<place>landingpage-sidebar</place>
<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="Unterseite-Landingpage-Author" value="landingpage_author" description="landingpage_author" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>landingpage-news</place>
<place>landingpage-sidebar</place>

<place>bottom</place>
<place>sidebar</place>
<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="Unterseite-Author" value="page_author" description="page_author" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>landingpage-news</place>
<place>landingpage-sidebar</place>

<place>bottom</place>
<place>sidebar</place>
<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="Newsletter" value="newsletter" description="Newsletter" type="newsletter">
<place>before_newsletter</place>
<place>after_newsletter</place>
<place>between_newsletter</place>
<place>newsletter_footer</place>
</layout>

<layout name="Unterseite-Newsreader" value="site-newsreader" description="Unterseite Newsreader" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>
<place>head-top</place>
<place>sidebar_site</place>

<place>footer</place>
<place>footer-down</place>
<place>footer-down-social-media</place>

</layout>

<layout name="Unterseite Breit" value="site_wide" description="Unterseite Breit" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>head-top</place>
<place>bottom</place>
<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="Unterseite Freie Texte" value="site_freetext" description="Unterseite Freie Texte" type="page">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>freetext_block</place>
<place>content_landingpage</place>

<place>contact</place>
<place>icons</place>


<place>sidebar_freetext</place>
<place>bottom</place>
<place>footer</place>
<place>footer-down</place>

</layout>

<layout name="News" value="news" description="News" type="blog">
<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>
<place>sharing</place>


<place>head-top</place>

<place>sidebar_news_ad</place>

<place>inside1</place>
<place>inside2</place>


<place>bottom</place>

<place>footer</place>
<place>footer-down</place>
<place>footer-down-social-media</place>
</layout>

<layout name="Konzept Artikel" value="concept" description="Concept" type="blog">
<place>navigation</place>
<place>navigation_up</place>
<place>navigation_middle</place>
<place>navigation_menu</place>

<place>head-top</place>

<place>sidebar_news_ad</place>

<place>inside1</place>
<place>inside2</place>


<place>bottom</place>

<place>footer</place>
<place>footer-down</place>
<place>footer-down-social-media</place>
</layout>

<layout name="news_freietexte" value="news_freetext" description="News Freie Texte" type="blog">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>
<place>sharing</place>


<place>head-top</place>
<place>bewertung</place>
<place>sidebar_news_ad</place>
<place>inside1</place>
<place>inside2</place>


<place>bottom</place>
<place>footer</place>
<place>footer-down</place>
<place>footer-down-social-media</place>
</layout>

<layout name="Rezension" value="rezension" description="News" type="blog">

<place>navigation_assets</place>
<place>navigation_main</place>
<place>navigation_ad</place>
<place>navigation_menu</place>

<place>head-top</place>
<place>beneath_top-img</place>

<place>sharing</place>

<place>inside1</place>
<place>inside2</place>

<place>bottom</place>

<place>footer</place>
<place>footer-down</place>
<place>footer-down-social-media</place>

</layout>

</layouts>

<lazyload>yes</lazyload>

<places>
<place name="Navigation-Assets" value="navigation_assets"/>
<place name="Navigation Menü" value="navigation_menu"/>
<place name="Naivgation Haupt-Menü" value="navigation_main"/>
<place name="Naivgation Ad" value="navigation_ad"/>
<place name="Unter Hauptbild" value="beneath_top-img"/>

<place name="Icons" value="icons"/>
<place name="content_landingpage" value="content_landingpage"/>

<place name="Teilenfunktion" value="sharing"/>
<place name="Bewertung Oben" value="bewertung"/>

<place name="Oben Startseite" value="book-of-week"/>
<place name="Seitenleiste Top" value="sidebar_top"/>

<place name="Mitte Startseite" value="current-news"/>
<place name="Mitte Seitenleiste" value="sidebar"/>

<place name="Multibox" value="multibox"/>

<place name="Unten Startseite" value="unten"/>

<place name="Kopf oben" value="head-top" mode="random"/>

<place name="Kopf links" value="head-left"/>
<place name="Kopf rechts" value="head-right"/>
<place name="Unten Landingpage" value="bottom-landingpage"/>

<place name="Seitenleiste" value="sidebar_site"/>
<place name="Landingpage News" value="landingpage-news"/>
<place name="Landingpage Sidebar" value="landingpage-sidebar"/>

<place name="Seitenleiste News Werbung" value="sidebar_news_ad"/>

<place name="Inhalt" value="content"/>
<place name="Header" value="header"/>
<place name="Seitenleiste Freie Texte" value="sidebar_freetext"/>

<place name="Seitenleiste Freie Texte Aktuell" value="sidebar_freetext-current"/>

<place name="Seitenleiste Kopf Oben" value="sidebar_top_head"/>
<place name="Fuss" value="footer"/>
<place name="Fuss-Unten" value="footer-down"/>
<place name="Oben" value="top"/>
<place name="Im Text 1" value="inside1"/>
<place name="Im Text 2" value="inside2"/>


<place name="Unten" value="bottom"/>
<place name="Kontaktieren" value="contact"/>
<place name="Freietext Block" value="freetext_block"/>


<place name="Unten Freie Texte" value="bottom-freetext"/>


<place name="Fuß Unten Social Media" value="footer-down-social-media"/>
<place name="Fuß Formular" value="footer-formular"/>


<place name="after_newsletter" value="after_newsletter"/>
<place name="between_newsletter" value="between_newsletter"/>
<place name="newsletter_footer" value="newsletter_footer"/>



</places>

</inveda:skin>

<xsl:template match="/">

<html class="layout_{$metadata/layout}">

<xsl:variable name="body">

<body class="layout_{$metadata/layout}">

<xsl:call-template name="fad_counter"/>

<xsl:variable name="js_add" select="php:function('web_Content::addScript','/scripts/jquery/jquery.min.js','text/javascript',0)"/>
<xsl:variable name="js_add2" select="php:function('web_Content::addScript','/skins/js/jquery.lazy.min.js','text/javascript',7)"/>
<xsl:variable name="js_add3" select="php:function('web_Content::addScript',concat('/skins/js/slider.js?',php:function('system_SVN::version')),'text/javascript',12)"/>
<xsl:variable name="js_add4s" select="php:function('web_Content::addScript',concat('/skins/lesering-two/js/lesering.js?',php:function('system_SVN::version')),'text/javascript',13)"/>
<div id="content">

<div id="cover_page_lesering" onclick="toggle_menu()" style="display:none"/>

<div class="overlay"/>
<xsl:call-template name="magazine_header"/>

<xsl:variable name="top-img_dimension">
<xsl:apply-templates select="/content/text/*/*[@class='post-image']" mode="news-reader">
<xsl:with-param name="only_dimension" select="'true'"/>
</xsl:apply-templates>
</xsl:variable>

<xsl:apply-templates select="/content/text/*/*[@class='post-image']" mode="primaryImageOfPage"/>

<div id="magazine_inner">

<xsl:attribute name="class">
<xsl:value-of select="$layout"/>
<xsl:if test="/content/metadata/imagemeta/image/media/gallery='t'"> gallery</xsl:if>
<xsl:value-of select="' '"/>
top-img-<xsl:value-of select="$top-img_dimension"/>
</xsl:attribute>

<xsl:choose>

<xsl:when test="$metadata/layout='site-newsreader'">

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'head-top'"/>
</xsl:call-template>

<xsl:apply-templates select="*"/>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'sidebar_site'"/>
</xsl:call-template>

</xsl:when>

<xsl:when test="$metadata/layout='home'">


<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'head-top'"/>
</xsl:call-template>

<div class="mod_news_list_wrapper">
<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'book-of-week'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'multibox'"/>
</xsl:call-template>
</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'unten'"/>
</xsl:call-template>

</xsl:when>
<xsl:when test="$metadata/layout='site'">

<div id="magazine-content-container" class="clear layout_site">

<div id="magazine_site_content">

<div class="page_wrapper">
<xsl:apply-templates select="/content/text/*"/>
</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-freetext'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom'"/>
</xsl:call-template>

</div>

</div>


</xsl:when>
<xsl:when test="$metadata/layout='site-landingpage'">

<div id="magazine-content-container" class="clear layout_site">

<div id="magazine_site_content">

<div class="page_wrapper opener">
<xsl:apply-templates select="/content/text/*" mode="landingpage"/>
</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-freetext'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-landingpage'"/>
</xsl:call-template>

</div>

</div>

</xsl:when>

<xsl:when test="$metadata/layout='site_freetext'">

<div id="magazine-content-container" class="clear layout_site">

<div id="magazine_site_content">

<div class="page_wrapper opener">

<xsl:apply-templates select="/content/text/*/h1"/>

<div class="opener_text">
<div class="text">
<xsl:apply-templates select="/content/text/*/*[not(self::img or self::h1[@class='fad_caption'])]"/>
</div>
</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'contact'"/>
</xsl:call-template>

<xsl:apply-templates select="/content/text/*/img"/>

</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'icons'"/>
</xsl:call-template>

<div id="content_landingpage">

<xsl:call-template name="chapterchapter"/>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'content_landingpage'"/>
</xsl:call-template>


</div>




<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'head-top'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'sidebar_freetext'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-landingpage'"/>
</xsl:call-template>

</div>

</div>
</xsl:when>

<xsl:when test="$metadata/layout='site_free_text_new'">

<div id="magazine-content-container" class="clear layout_site">

<div id="magazine_site_content">

<div class="page_wrapper opener">

<div class="opener_text">
<xsl:apply-templates select="/content/text/*/h1"/>
<div class="text">
<xsl:apply-templates select="/content/text/*/*[not(self::img or self::h1[@class='fad_caption'])]"/>
</div>
</div>


<div class="top-img_container">
<xsl:apply-templates select="/content/text/*/img"/>
</div>
</div>


<div id="content_landingpage">

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-landingpage'"/>
</xsl:call-template>

</div>


<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-freetext'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom'"/>
</xsl:call-template>

</div>

</div>
</xsl:when>

<xsl:when test="$metadata/layout='site_offers'">

<div id="magazine-content-container" class="clear layout_site">

<div class="opener_wrapper" style="position:relative;float:left;overflow:hidden;">

<xsl:variable name="background-image" select="/content/metadata/skin.background-image"/>
<xsl:variable name="split_path" select="str:tokenize($background-image,'.')"/>
<xsl:variable name="bg_path" select="concat($split_path[1],'.',$split_path[2])"/>
<xsl:variable name="bg_meta" select="$metadata/imagemeta/image[@searchname=$bg_path]"/>

<xsl:variable name="landscape_img" select="$skin_defs/images/size[contains(@value,'landscape_img')][last()]"/>

<xsl:variable name="landscape_src" select="concat($bg_meta/@url,'.',$landscape_img,'.',$bg_meta/@imgtype)"/>

<div id="magazine_site_content">

<div class="page_wrapper opener" style="position:relative;">

<style>
.<xsl:value-of select="$metadata/layout"/> .opener_wrapper::before{content:"";
background-image:url(<xsl:value-of select="$landscape_src"/>);
position: absolute;
top: 0;
left: 0;
right: 0;
width:100%;
transition:200ms all linear;
transform: var(--scroll-position-background);
background-size: cover;
height: 100%;
z-index:-2;
background-position: center;}

</style>



<xsl:apply-templates select="/content/text/*/h1"/>

<div class="opener_text">
<div class="text">
<xsl:apply-templates select="/content/text/*/*[not(self::img or self::h1[@class='fad_caption'])]"/>
</div>
</div>

<div class="top-img_container">
<xsl:apply-templates select="/content/text/*/img"/>
</div>

</div>

</div>

</div>

<div id="content_landingpage">
<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-landingpage'"/>
</xsl:call-template>
</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom'"/>
</xsl:call-template>

</div>
</xsl:when>

<xsl:when test="$metadata/layout='site-landingpage-news' or $metadata/layout='site-landingpage-news-freetext' or $metadata/layout='landingpage_author' or $metadata/layout='page_author'">

<div id="magazine-content-container" class="clear layout_site">

<div id="magazine_site_content">

<xsl:choose>

<xsl:when test="$metadata/layout='page_author'">
<div class="page_wrapper opener">
<xsl:apply-templates select="/content/text/*" mode="page_author"/>
</div>
</xsl:when>

<xsl:when test="$metadata/layout='landingpage_author'">
<div class="page_wrapper opener">
<xsl:apply-templates select="/content/text/*" mode="landingpage_author"/>
</div>
</xsl:when>


<xsl:when test="$metadata/layout='site-event'">
<div class="page_wrapper opener">
<xsl:apply-templates select="/content/text/*" mode="site-event"/>
</div>
</xsl:when>


<xsl:otherwise>
<div class="page_wrapper opener">
<xsl:apply-templates select="/content/text/*" mode="landingpage"/>
</div>
</xsl:otherwise>

</xsl:choose>


<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'landingpage-news'"/>
</xsl:call-template>

<xsl:if test="$metadata/layout != 'site-event'">
<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'landingpage-sidebar'"/>
</xsl:call-template>
</xsl:if>

<xsl:if test="$metadata/layout='page_author'">
<div id="chapter_container">
<xsl:apply-templates select="/content/chapter" mode="page_author"/>
</div>
</xsl:if>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-landingpage'"/>
</xsl:call-template>


</div>

</div>

</xsl:when>


<xsl:when test="$metadata/layout='site-event'">

<div id="magazine-content-container" class="clear layout_site">

<div id="magazine_site_content">


<div class="page_wrapper opener">
<xsl:apply-templates select="/content/text/*" mode="site-event"/>
</div>



<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'landingpage-news'"/>
</xsl:call-template>




</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'landingpage-sidebar'"/>
</xsl:call-template>


</div>


<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom-landingpage'"/>
</xsl:call-template>

</xsl:when>

<xsl:when test="$isnews='true'">

<xsl:call-template name="news"/>

</xsl:when>

<xsl:otherwise>

<div id="column-container" class="clear {$metadata/layout}">
<div id="left-column">
<div id="post-header">
<div class="post-title clear">
<div class="header-title">
<h3><xsl:value-of select="$content/@teaser"/></h3>
<h1><xsl:value-of select="$content/@caption"/></h1>
</div>
</div>
</div>
<div class="post-columns clear">
<div class="post type-post status-publish format-standard hentry post-entry">
<p><xsl:apply-templates select="$content/text"/></p>
</div>
</div>
</div>

</div>

</xsl:otherwise>

</xsl:choose>

</div>

<div id="footer">

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'footer'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'footer-formular'"/>
</xsl:call-template>

<div class="footer_down">

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'footer-down'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'footer-down-social-media'"/>
</xsl:call-template>
</div>

<xsl:call-template name="deutrik_link"/>


</div>


<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'sharing'"/>
</xsl:call-template>

</div>

</body>

</xsl:variable>
<xsl:variable name="visible_start"
select="translate($metadata/visible_start,' ','T')"/>
<xsl:variable name="meta" select="/content/metadata"/>
<xsl:call-template name="inveda_html_header">

<xsl:with-param name="css" select="php:function('web_Content::addStyle',concat('/skins/lesering-two/css/lesering-two.css?', php:function('system_SVN::version')),'text/css')"/>
<xsl:with-param name="author" select="$page-title"/>
<xsl:with-param name="contributor" select="$page-title"/>
<xsl:with-param name="rss"><a href="/feed/" title=""/></xsl:with-param>
<xsl:with-param name="publisher" select="$page-title"/>
<xsl:with-param name="icons" select="''"/>
<xsl:with-param name="image">
<xsl:choose>
<xsl:when test="$metadata/img!=''">
<xsl:value-of select="concat('/content.',$metadata/nr,'.images.',$metadata/img,'.820x462.',$metadata/imgtype)"/>
</xsl:when>
<xsl:when test="php:function('mandant_Holder::archiveFileExists',concat('alt_image_',$layout,'.png'))">
<xsl:value-of select="concat('/alt_image_',$layout,'.820x462.png')"/>
</xsl:when>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="image_type">
<xsl:choose>
<xsl:when test="$metadata/img!=''">
<xsl:value-of select="/content/@image_type"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'image/png'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="image_width" select="'820'"/>
<xsl:with-param name="image_height" select="'462'"/>


<xsl:with-param name="load-jquery-ui" select="'no'"/>

<xsl:with-param name="title">
<xsl:choose>
<xsl:when test="/content/@browser_caption!=''">
<xsl:value-of select="concat(/content/@browser_caption,'&#160;-&#160;',$page-title)"/>
</xsl:when>
<xsl:when test="/content/@caption!=''">
<xsl:value-of select="concat(/content/@caption,' | ',$page-title)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($page-title,' | ',$headline)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="add">
<xsl:if test="$visible_start">
<meta name="date" content="{$visible_start}+01:00"/>
<meta name="DC.date.issued" content="{$visible_start}+01:00"/>
</xsl:if>
<xsl:variable name="isbn" select="str:tokenize($metadata/skin.isbn,',')"/>
<xsl:for-each select="$isbn">
<meta name="book:isbn" content="{translate(.,' -ISBN','')}"/>
</xsl:for-each>



</xsl:with-param>
</xsl:call-template>
<xsl:copy-of select="$body"/>

</html>

</xsl:template>

<xsl:template name="deutrik_link">
<a href="https://www.deutrik.de" target="_blank" style="float: left;
width: 100%;
display: flex;
justify-content: center;
text-decoration: none;
color: initial;
background-color: white;">
<img src="/skins/lesering-two/img/logo-deutrik.svg" style="width: 100px;
height: 35px;
float: left;
display: block;"/>
<span style="float: left;
line-height: 35px;
vertical-align: middle;
margin-left: 10px;
text-decoration: none;
font-size: 12px;">Ihre Digitalagentur</span>
</a>

</xsl:template>


<xsl:template match="img[@class='page-image']">

<div class="top-img">

<div class="loader_page"></div>





<xsl:variable name="sizes">
<size width="600"/>
<size width="800"/>
<size width="1200"/>
</xsl:variable>


<xsl:choose>


<xsl:when test="$layout='site_freetext'">
<xsl:apply-templates select="." mode="bg_lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>
</xsl:when>

<xsl:otherwise>
<xsl:apply-templates select="." mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
<xsl:with-param name="lazyload" select="false()"/>
</xsl:apply-templates>
</xsl:otherwise>

</xsl:choose>

</div>

</xsl:template>

<xsl:template name="chapterchapter">

<div class="chapter_container">

<xsl:for-each select="/content/chapter">

<div class="chapter">
<xsl:apply-templates select="*"/>
</div>

</xsl:for-each>

</div>

</xsl:template>


<xsl:template match="/content/text/*" mode="site-event">

<div class="landing-page-event">

<div class="wrapper">
<div class="hero_section_top event">
<xsl:apply-templates select="img"/>
<xsl:apply-templates select="h1"/>
</div>

<div class="properties">
<xsl:apply-templates select="*[not(self::img) and not(self::h1) and not(self::div[@class='fad_description']) ]"/>
</div>

<div class="text event">
<div class="description_text">
<xsl:apply-templates select="*[not(self::img) and not(self::h1) and not(self::div[@class='fad_schema_properties']) ]"/>
</div>
</div>
</div>

</div>

</xsl:template>

<xsl:template match="/content/text/*" mode="landingpage_author">

<div class="landing-page-text">
<div class="hero_section_top">
<xsl:apply-templates select="img"/>
<xsl:apply-templates select="h1"/>
</div>

<div class="text">
<xsl:apply-templates select="*[not(self::img) and not(self::h1)]"/>
</div>
</div>

</xsl:template>

<xsl:template match="/content/text/*" mode="page_author">

<div class="landing-page-text">
<div class="hero_section_top {$metadata/layout}">
<xsl:apply-templates select="img"/>
<xsl:apply-templates select="h1"/>
</div>

<div class="text">
<xsl:apply-templates select="*[not(self::img) and not(self::h1)]"/>
</div>
</div>

</xsl:template>

<xsl:template match="/content/chapter" mode="page_author">


<xsl:for-each select=".">

<xsl:variable name="id">
<xsl:value-of select="generate-id(.)"/>
</xsl:variable>

<div class="text text_chapter" tabindex="0">

<label for="chapter_{$id}"><h3><xsl:value-of select="@caption"/>

</h3>

</label>

<input type="checkbox" id="chapter_{$id}" class="chapter_toggle"/>
<div class="chapter">
<xsl:apply-templates select="*"/>

</div>
</div>

</xsl:for-each>



</xsl:template>






<xsl:template match="/content/text/*" mode="landingpage">

<div class="landing-page-text">
<xsl:apply-templates select="*[not(self::img)]"/>
</div>

</xsl:template>

<xsl:template match="img[@class='page_box_image_img']">

<xsl:apply-templates select="." mode="lazy_img"/>

</xsl:template>


<xsl:template match="long_text">
<xsl:apply-templates select="node()|text()"/>
</xsl:template>

<xsl:template match="comments">
<xsl:if test="count(comment//DataSet) &gt; 0">
<h3><xsl:value-of select="count(comment//DataSet)"/> Kommentare</h3>
</xsl:if>
<xsl:for-each select="comment//DataSet">
<h3><xsl:value-of select="@title"/></h3> <!--titel oder name?-->
<small>von <xsl:value-of select="@name"/> geschrieben am <xsl:value-of select="concat(substring(@created,9,2),'.',substring(@created,6,2),'.',substring(@created,1,4),' @ ',substring(@created,12,5))"/></small>
<p><xsl:apply-templates select="comment/text"/></p>
</xsl:for-each>
</xsl:template>

<xsl:template match="zitat">
<br/><div class="blockquote"><xsl:value-of select="."/></div>
</xsl:template>

<xsl:template match="em">
<div class="em"><br/><xsl:copy-of select="."/></div>
</xsl:template>

<xsl:template match="chapter">
<div class="chapter"><xsl:apply-templates select="*"/></div>
</xsl:template>

<xsl:template name="info">
<div class="info">
<xsl:value-of select="@blog_created"/>
<xsl:choose>
<xsl:when test="@count_comment = 0">
&#160;|&#160;<a href="/news.blog.post.html?id={@nr}">Kommentar schreiben&#160;</a>
</xsl:when>
<xsl:when test="@count_comment &gt; 1">
&#160;|&#160;<a href="/news.blog.post.html?id={@nr}">Kommentare(<xsl:value-of select="@count_comment"/>)&#160;</a>
</xsl:when>
<xsl:otherwise>
&#160;|&#160;<a href="/news.blog.post.html?id={@nr}">Kommentar(<xsl:value-of select="@count_comment"/>)&#160;</a>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>




<!--Menü-->
<xsl:template match="menu_kat">
<xsl:for-each select="//Data[@name='topic']/Content/DataSet">
<a href="index.html?topic={@topic}"><xsl:value-of select="@topic"/></a>
</xsl:for-each>
<a href="index.html">Startseite</a>
<a href="impressum.html">Impressum</a>
</xsl:template>

<xsl:template name="chapter_teaser">

<xsl:variable name="total_pages">
<xsl:value-of select="count(/content/text/*/*[@class='chapter']/div[@class='chapter_list']/ul/li)"/>
</xsl:variable>

<span class="chapter_teaser">- <xsl:value-of select="$total_pages"/> Seiten -</span>


</xsl:template>


<xsl:template name="navigation_chapter">

<xsl:variable name="current_chapter">
<xsl:choose>
<xsl:when test="/content/text/div/h1/span/@data-chapter">
<xsl:value-of select="/content/text/div/h1/span/@data-chapter"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="1"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="total_pages">
<xsl:value-of select="count(/content/text/*/*[@class='chapter']/div[@class='chapter_list']/ul/li)"/>
</xsl:variable>

<div class="navigation_chapter">

<xsl:variable name="next_chapter">
<xsl:if test="$current_chapter">
<xsl:value-of select="$current_chapter + 1"/>
</xsl:if>
</xsl:variable>

<xsl:variable name="prev_chapter">
<xsl:if test="$current_chapter">
<xsl:value-of select="$current_chapter - 1"/>
</xsl:if>
</xsl:variable>

<xsl:variable name="next_chapter_link">
<xsl:value-of select="/content/text/*/*[@class='chapter']/div[@class='chapter_list']/ul/li[@data-chapter=($next_chapter)]/a/@href"/>
</xsl:variable>

<xsl:variable name="prev_chapter_link">
<xsl:value-of select="/content/text/*/*[@class='chapter']/div[@class='chapter_list']/ul/li[@data-chapter=($prev_chapter)]/a/@href"/>
</xsl:variable>

<xsl:if test="$current_chapter = $total_pages">
<a class="prev_chapter_nav last_page chapter_element" href="{$prev_chapter_link}">
<img src="/skins/lesering-two/img/prev-slide.svg"></img>
<span>Seite <xsl:value-of select="$prev_chapter"/></span>
</a>
</xsl:if>

<xsl:if test="$current_chapter !='1' and $current_chapter != $total_pages">
<a class="prev_chapter_nav chapter_element" href="{$prev_chapter_link}">
<img src="/skins/lesering-two/img/prev-slide.svg"></img>
<span>Seite <xsl:value-of select="$prev_chapter"/></span>
</a>
</xsl:if>

<xsl:if test="$current_chapter != $total_pages">
<a class="next_chapter_nav chapter_element" href="{$next_chapter_link}">
<span>Seite <xsl:value-of select="$next_chapter"/></span>
<img src="/skins/lesering-two/img/next-slide.svg"></img>
</a>
</xsl:if>


</div>

</xsl:template>

<xsl:template name="sharing-container">

<xsl:choose>

<xsl:when test="/content/metadata/imagemeta/image/media/gallery='t'">

</xsl:when>

<xsl:otherwise>
<xsl:variable name="comments" select="/content/metadata/comments"/>

<div class="sharing-container">

<div class="icon_bar">

<div class="sharing_icon">
<img class="sharing_icon" src="/skins/lesering-two/img/sharing.svg"/>
</div>

<xsl:variable name="comments_existing">
<xsl:if test="$comments = '0'">
comments_empty
</xsl:if>
</xsl:variable>

<a class="comment_icon {$comments_existing}" data-scrollto="#magazine_place_bottom #comments" commentnumber="{$comments}" style="display:inline-block;">
<img class="comment" src="/skins/lesering-two/img/chatbubble.svg"/>
</a>

<xsl:if test="/content/metadata/modgroups/modgroup/module[@publishtype='mod_adbooks'] and ($metadata/skin.isbn!='' or $metadata/skin.asin!='')">
<a class="basket_icon" data-scrollto="#magazine_place_bottom" style="display:inline-block;">
<img class="comment" src="/skins/lesering-two/img/basket.svg"/>
</a>
</xsl:if>

</div>

</div>

</xsl:otherwise>

</xsl:choose>


</xsl:template>

<xsl:template match="*">
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

<xsl:template match="*" mode="news_reader">
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

<!--xsl:template match="p">
< xsl:if test=".=//p[2]">
<p style="width:620px;height:100%;">
<xsl:apply-templates select="document('ibs:/include,advertising.news-reader')/content/text"/>
</p>
</xsl:if>
<xsl:if test="document('ibs:/page_allowed,advertising.news-reader')/result/@value='yes' and count(//p) &gt; 3 and (.=//p[count(//p)-1]) and string-length(.) &gt; 10">
<p style="width:620px;height:100%;">
<xsl:apply-templates select="document('ibs:/include,advertising.news-reader')/content/text"/>
</p>
</xsl:if>
<xsl:apply-templates select="."/>
</xsl:template -->

<xsl:template name="news_img">

<xsl:variable name="current_page" select="/content/text/*/h1[@class='fad_news_caption']/span[@class='chapter_title']/@data-chapter"/>


<xsl:choose>
<xsl:when test="$current_page and $layout!='rezension'">
</xsl:when>

<xsl:otherwise>
<xsl:apply-templates select="/content/text/*/*[@class='post-image']" mode="news-reader"/>
<xsl:apply-templates select="/content//*[@class='fad_gallery_image']" mode="news-reader"/>
</xsl:otherwise>

</xsl:choose>

</xsl:template>

<xsl:template match="img" mode="author">
<xsl:choose>
<xsl:when test="@path!='' and @width!='' and @height!=''">
<xsl:variable name="height" select="round(590 div @width * @height)"/>
<xsl:variable name="isize" select="php:function('web_Session::registerImageSize',concat(590,'x',$height))"/>
<xsl:variable name="img">
<img itemprop="image" style="width:590px;height:{$height}px" src="{@path}.{$isize}.{@type}" alt="{@alt}.{$isize}" title="{@description}"/>
</xsl:variable>
<xsl:for-each select="exslt:node-set($img)/img">
<xsl:call-template name="render_cms_image"/>
</xsl:for-each>

</xsl:when>
<xsl:when test="substring(@alt,1,4)='cms.'">
<xsl:call-template name="render_cms_image"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="author"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="*" mode="author">
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="author"/>
</xsl:element>
</xsl:template>


<xsl:template match="img" mode="news-reader">
<xsl:param name="only_dimension"/>

<xsl:variable name="landscape">
<xsl:choose>
<xsl:when test="@width div @height &gt; 1.2">landscape</xsl:when>
<xsl:otherwise>portrait</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$only_dimension">
<xsl:value-of select="$landscape"/>
</xsl:when>
<xsl:otherwise>
<div class="top_img_wrapper_inside">

<xsl:choose>

<xsl:when test="@media!='youtube' and @path!='' and @width!='' and @height!=''">

<span id="{generate-id(.)}" class="{@class} {$landscape}" itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject">

<!--xsl:if test="$landscape='portrait'">
<div class="background">
<xsl:apply-templates select="." mode="lazy_news_img_small">
<xsl:with-param name="src_only" select="true"/>
</xsl:apply-templates>
</div>
</xsl:if-->

<xsl:choose>

<xsl:when test="$layout='concept'">

<xsl:attribute name="class">
<xsl:value-of select="@class"></xsl:value-of>
<xsl:value-of select="$landscape"></xsl:value-of>
background
</xsl:attribute>

<xsl:apply-templates select="." mode="lazy_news_img_bg"/>
</xsl:when>

<xsl:otherwise>

<div class="news_img">

<xsl:if test="/content/metadata/imagemeta/image/media/gallery='t'">

<xsl:attribute name="class">post-image gallery</xsl:attribute>

<xsl:variable name="img_amount" select="count(/content/metadata/imagemeta/image[media/gallery='t'])"/>

<xsl:variable name="id_img" select="/content/metadata/imagemeta/image[media/gallery='t'][$img_amount]/@id"/>

<xsl:variable name="next_number" select="$img_amount"/>

<xsl:variable name="id_img_last" select="/content/metadata/imagemeta/image[media/gallery='t'][$img_amount]/@id"/>

<xsl:variable name="href_id">
<xsl:value-of select="concat('?gallery=',$id_img)"/>
</xsl:variable>

<xsl:variable name="href_id_last">
<xsl:value-of select="concat('?gallery=',$id_img_last)"/>
</xsl:variable>

<div class="gallery_buttons" >

<div class="button_container">


<!--p class="img_amount" style="float:left;">1/<xsl:value-of select="$img_amount"/></p-->

<!--a class="gallery_t last" href="{$href_id_last}" style="display:block;">
<svg width="100%" height="100%" viewBox="0 0 530 530" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<rect id="Artboard4" x="0" y="0" width="529.167" height="529.167" style="fill:none;"/>
<path class="path" d="M386.051,115.903c0,7.402 -3.075,14.472 -8.49,19.518c-13.326,12.418 -40.395,37.645 -67.086,62.518c-18.431,17.177 -28.898,41.239 -28.898,66.433c-0,25.194 10.467,49.256 28.898,66.433c26.691,24.874 53.76,50.1 67.086,62.518c5.415,5.047 8.49,12.116 8.49,19.518c0,0.016 0,0.032 0,0.048c0,21.681 -12.858,41.297 -32.74,49.946c-19.881,8.648 -42.999,4.681 -58.86,-10.1c-42.182,-39.31 -91.486,-85.257 -130.838,-121.93c-18.431,-17.177 -28.898,-41.239 -28.898,-66.433c-0,-25.194 10.467,-49.256 28.898,-66.433c39.352,-36.673 88.656,-82.619 130.838,-121.93c15.861,-14.781 38.979,-18.748 58.86,-10.099c19.882,8.648 32.74,28.264 32.74,49.945c0,0.016 0,0.032 0,0.048Z" style="fill:#8ba8b0;"/>
</svg>
</a-->

<a class="gallery_t next" href="{$href_id}">

<span>Hier geht es zu den Spiegelbestellern</span>

<svg class="ranking" width="100%" height="100%" viewBox="0 0 173 173" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g transform="matrix(1,0,0,1,-1737,-1183)">
<g id="Artboard7" transform="matrix(1.48815,0,0,1.48815,-348.848,823.395)">
<rect x="1401.9" y="241.825" width="115.556" height="115.556" style="fill:none;"/>
<clipPath id="_clip1">
<rect x="1401.9" y="241.825" width="115.556" height="115.556"/>
</clipPath>
<g clip-path="url(#_clip1)">
<g>
<g transform="matrix(0.671977,-0,-0,0.671977,1401.64,241.646)">
<use xlink:href="#_Image2" x="0.377" y="1.267" width="171.964px" height="170.964px" transform="matrix(0.99979,0,0,0.99979,0,0)"/>
</g>
<g transform="matrix(0.809586,0,0,0.809586,-17.4047,-739.563)">
<circle cx="1824.65" cy="1284.51" r="66.328" style="fill:white;"/>
</g>
</g>
<g transform="matrix(0.471756,0.328287,-0.551635,0.79271,1318.41,-1312.08)">
<path class="path" d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(-0.471756,0.328287,0.551635,0.79271,1600.94,-1312.49)">
<path class="path" d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(0.770636,0,0,0.770636,55.3417,-693.264)">
<path class="path" d="M1817.3,1243.95C1817.75,1241.79 1819.91,1240.05 1822.48,1240.05C1825.04,1240.05 1827.2,1241.79 1827.65,1243.95C1828.63,1241.96 1831.16,1240.82 1833.64,1241.46C1836.12,1242.09 1837.79,1244.32 1837.69,1246.53C1839.13,1244.85 1841.86,1244.37 1844.11,1245.6C1846.35,1246.83 1847.41,1249.4 1846.77,1251.52C1848.58,1250.25 1851.35,1250.46 1853.21,1252.22C1855.08,1253.97 1855.47,1256.72 1854.32,1258.61C1856.39,1257.83 1859.02,1258.73 1860.39,1260.89C1861.76,1263.05 1861.45,1265.81 1859.87,1267.35C1862.07,1267.11 1864.39,1268.64 1865.18,1271.07C1865.97,1273.51 1864.99,1276.11 1863.07,1277.2C1865.26,1277.52 1867.13,1279.57 1867.29,1282.13C1867.45,1284.69 1865.85,1286.96 1863.72,1287.54C1865.76,1288.39 1867.06,1290.85 1866.58,1293.36C1866.1,1295.88 1863.99,1297.68 1861.78,1297.72C1863.54,1299.05 1864.2,1301.75 1863.11,1304.07C1862.01,1306.38 1859.52,1307.6 1857.37,1307.09C1858.75,1308.82 1858.71,1311.6 1857.07,1313.57C1855.44,1315.55 1852.72,1316.1 1850.76,1315.07C1851.67,1317.09 1850.94,1319.77 1848.87,1321.28C1846.8,1322.78 1844.02,1322.65 1842.38,1321.16C1842.76,1323.34 1841.39,1325.75 1839.01,1326.7C1836.62,1327.64 1833.97,1326.82 1832.75,1324.98C1832.58,1327.18 1830.65,1329.18 1828.1,1329.5C1825.56,1329.82 1823.19,1328.36 1822.48,1326.27C1821.76,1328.36 1819.39,1329.82 1816.85,1329.5C1814.31,1329.18 1812.38,1327.18 1812.2,1324.98C1810.98,1326.82 1808.33,1327.64 1805.95,1326.7C1803.56,1325.75 1802.19,1323.34 1802.57,1321.16C1800.93,1322.65 1798.15,1322.78 1796.08,1321.28C1794.01,1319.77 1793.28,1317.09 1794.19,1315.07C1792.23,1316.1 1789.51,1315.55 1787.88,1313.57C1786.24,1311.6 1786.2,1308.82 1787.58,1307.09C1785.43,1307.6 1782.94,1306.38 1781.85,1304.07C1780.76,1301.75 1781.41,1299.05 1783.17,1297.72C1780.96,1297.68 1778.85,1295.88 1778.37,1293.36C1777.89,1290.85 1779.19,1288.39 1781.23,1287.54C1779.1,1286.96 1777.5,1284.69 1777.66,1282.13C1777.82,1279.57 1779.69,1277.52 1781.88,1277.2C1779.96,1276.11 1778.98,1273.51 1779.77,1271.07C1780.56,1268.64 1782.89,1267.11 1785.08,1267.35C1783.5,1265.81 1783.19,1263.05 1784.56,1260.89C1785.94,1258.73 1788.57,1257.83 1790.63,1258.61C1789.48,1256.72 1789.87,1253.97 1791.74,1252.22C1793.61,1250.46 1796.38,1250.25 1798.18,1251.52C1797.54,1249.4 1798.6,1246.83 1800.84,1245.6C1803.09,1244.37 1805.83,1244.85 1807.26,1246.53C1807.16,1244.32 1808.83,1242.09 1811.31,1241.46C1813.79,1240.82 1816.32,1241.96 1817.3,1243.95ZM1823.36,1257.46C1838.44,1257.46 1850.69,1269.71 1850.69,1284.79C1850.69,1299.88 1838.44,1312.12 1823.36,1312.12C1808.28,1312.12 1796.03,1299.88 1796.03,1284.79C1796.03,1269.71 1808.28,1257.46 1823.36,1257.46Z" style="fill:rgb(139,168,176);"/>
<text dominant-baseline="middle"
alignment-baseline="middle" text-anchor="middle" x="1823px" y="1289px" style="font-family:'Oswald-Regular', 'Oswald';font-size:40px;fill:rgb(139,168,176);"><xsl:value-of select="$next_number"/></text>
</g>

</g>
</g>
</g>
<defs>
<image id="_Image2" width="172px" height="171px" xlink:href="data:image/png;base64,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"/>
</defs>
</svg>

<svg class="next" width="100%" height="100%" viewBox="0 0 530 534" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<path class="path" d="M134.715,119.511c-0,7.402 3.075,14.471 8.49,19.518c13.326,12.418 40.395,37.645 67.086,62.518c18.431,17.177 28.898,41.239 28.898,66.433c0,25.194 -10.467,49.256 -28.898,66.433c-26.691,24.873 -53.76,50.1 -67.086,62.518c-5.415,5.047 -8.49,12.116 -8.49,19.518c-0,0.016 -0,0.032 -0,0.048c-0,21.681 12.859,41.297 32.74,49.945c19.881,8.649 42.999,4.682 58.86,-10.099c42.182,-39.311 91.486,-85.257 130.838,-121.93c18.431,-17.177 28.898,-41.239 28.898,-66.433c0,-25.194 -10.467,-49.256 -28.898,-66.433c-39.352,-36.673 -88.656,-82.619 -130.838,-121.93c-15.861,-14.781 -38.979,-18.748 -58.86,-10.099c-19.881,8.648 -32.74,28.264 -32.74,49.945c-0,0.016 -0,0.032 -0,0.048Z" style="fill:#8ba8b0;"/>
</svg>

</a>

</div>
</div>


</xsl:if>

<xsl:apply-templates select="." mode="news_img"/>
</div>

<xsl:call-template name="sharing-container"/>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'beneath_top-img'"/>
</xsl:call-template>

</xsl:otherwise>
</xsl:choose>

</span>
</xsl:when>

<xsl:when test="substring(@alt,1,4)='cms.'">
<xsl:call-template name="render_cms_image"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="news-reader"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>


</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="*" mode="news-reader">
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="news-reader"/>
</xsl:element>
</xsl:template>

<xsl:template match="*" mode="sidebar">
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="sidebar"/>
</xsl:element>
</xsl:template>

<xsl:template match="p" mode="news-reader">
<xsl:variable name="pos" select="php:function('web_Content::count','p-tags')"/>

<xsl:if test="$pos &gt; 1">
<p class="para_{$pos} {@class}">
<xsl:copy-of select="@*[name()!='class']"/>
<xsl:apply-templates mode="news-reader"/>
</p>
</xsl:if>

<xsl:choose>

<xsl:when test="$pos=2">
<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'inside1'"/>
</xsl:call-template>
</xsl:when>

<xsl:when test="$pos=5">
<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'inside2'"/>
</xsl:call-template>
</xsl:when>

</xsl:choose>
</xsl:template>

<!--* Plätze *-->

<xsl:template name="render_place">

<xsl:param name="place"/>
<xsl:variable name="mode" select="$skin_defs/places/place[@value=$place]/@mode"/>
<xsl:variable name="mg" select="$modgroups/modgroup[@place=$place]"/>

<xsl:choose>

<xsl:when test="$modgroups/modgroup[@place=$place]/module">

<div id="magazine_place_{$place}" class="place">

<xsl:choose>

<xsl:when test="$mode='noindex'">
<xsl:for-each select="$mg/module">
<xsl:variable name="id" select="concat('fad_module_box_',@nr)"/>
<div id="{$id}">
<xsl:variable name="code">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*">
<xsl:with-param name="nr" select="@nr"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:variable name="xml" select="exslt:node-set($code)"/>
<xsl:choose>
<xsl:when test="1=2 and $xml//script or $xml/*/@class='mod_rating'">
<xsl:copy-of select="$xml"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="base64" select="php:function('system_util_XML::base64_encode',exslt:node-set($code))"/>
<xsl:variable name="script">
window.setTimeout(function() {
loadNoIndex('<xsl:value-of select="$id"/>','<xsl:value-of select="$base64"/>');
},100);
</xsl:variable>
<xsl:variable name="add1" select="php:function('web_Content::addScript','/skins/lesering-two/js/noindex.js','text/javascript',200)"/>
<xsl:variable name="add" select="php:function('web_Content::addScriptCode',$script,'text/javascript',200)"/>
<xsl:comment></xsl:comment>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:for-each>
</xsl:when>

<xsl:when test="$mode='noindex'">
<xsl:for-each select="$mg/module">
<xsl:variable name="id" select="concat('fad_module_box_',@nr)"/>
<div id="{$id}">
<xsl:variable name="code">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*">
<xsl:with-param name="nr" select="@nr"/>
</xsl:apply-templates>
</xsl:variable>
<xsl:variable name="xml" select="exslt:node-set($code)"/>
<xsl:choose>
<xsl:when test="$xml//script or $xml/*/@class='mod_rating'">
<xsl:copy-of select="$xml"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="base64" select="php:function('system_util_XML::base64_encode',exslt:node-set($code))"/>
<xsl:variable name="script">
window.setTimeout(function() {
loadNoIndex('<xsl:value-of select="$id"/>','<xsl:value-of select="$base64"/>');
},100);
</xsl:variable>
<xsl:variable name="add1" select="php:function('web_Content::addScript','/skins/lesering-two/js/noindex.js','text/javascript',200)"/>
<xsl:variable name="add" select="php:function('web_Content::addScriptCode',$script,'text/javascript',200)"/>
<xsl:comment></xsl:comment>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:for-each>
</xsl:when>


<xsl:when test="$place='sidebar_news_ad'">
<div class="sticky">
<xsl:for-each select="$mg/module">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*">
<xsl:with-param name="nr" select="@nr"/>
</xsl:apply-templates>
</xsl:for-each>
</div>
</xsl:when>


<xsl:when test="$place='sharing'">

<div class="close-sharing"/>

<xsl:for-each select="$mg/module">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*">
<xsl:with-param name="nr" select="@nr"/>
</xsl:apply-templates>
</xsl:for-each>

</xsl:when>

<xsl:when test="$place='bewertung'">
<xsl:for-each select="$mg/module">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*" mode="bewertung">
<xsl:with-param name="nr" select="@nr"/>
</xsl:apply-templates>
</xsl:for-each>
</xsl:when>


<xsl:when test="$place='multibox'">

<xsl:variable name="max_width">
<xsl:for-each select="$mg/module">
<xsl:value-of select="php:function('cms_mod_Interface::getModule',string(@nr))/*/meta[@name='skin.max_width']/@content" mode="multibox_header">
</xsl:value-of>
</xsl:for-each>
</xsl:variable>

<div class="multibox_container wide_width">
<div class="multi_box_navigation">

<xsl:for-each select="$mg/module">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*" mode="multibox_header">
<xsl:with-param name="nr" select="@nr"/>
<xsl:with-param name="position" select="concat('position_',position())"/>
</xsl:apply-templates>
</xsl:for-each>

</div>

<div class="multi_box">

<xsl:for-each select="$mg/module">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*">
<xsl:with-param name="nr" select="@nr"/>
<xsl:with-param name="multibox" select="'active'"/>
<xsl:with-param name="position" select="concat('position_',position())"/>
</xsl:apply-templates>
</xsl:for-each>

</div>
</div>



</xsl:when>

<xsl:when test="$mode='random'">
<xsl:variable name="mods" select="$mg/module"/>
<xsl:variable name="count" select="count($mods)"/>
<xsl:variable name="rand" select="php:function('rand',1,$count)"/>
<xsl:variable name="mod" select="$mods[position()=$rand]"/>
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string($mod/@nr))/*">
<xsl:with-param name="nr" select="$mod/@nr"/>
</xsl:apply-templates>
</xsl:when>

<xsl:otherwise>
<xsl:for-each select="$mg/module">
<xsl:apply-templates select="php:function('cms_mod_Interface::getModule',string(@nr))/*">
<xsl:with-param name="nr" select="@nr"/>
<xsl:with-param name="place" select="$place"/>
</xsl:apply-templates>
</xsl:for-each>
</xsl:otherwise>

</xsl:choose>




</div>

</xsl:when>

<xsl:otherwise></xsl:otherwise>



</xsl:choose>


</xsl:template>


<xsl:template match="div[@class='topic_list']|div[@class='tag_list']|div[@class='fad_search_results']|div[@class='date_list']">

<xsl:variable name="countlinks" select="count(article/a)"/>

<xsl:if test="$countlinks &gt; 0">
<div class="tag_list_container" countlinks="{$countlinks}">
<xsl:copy-of select="@itemtype|@itemprop|@itemscope|meta"/>
<xsl:copy-of select="h1"/>
<xsl:apply-templates select="ul[@class='fad_cms_blog_reader_tag_steps']"/>

<div class="tag_list" id="{@id}">

<div class="tag_list_content">

<xsl:for-each select="article/a">


<xsl:variable name="landscapebg">
<xsl:if test="figure/img/@width div figure/img/@height &gt; 1.2">landscape</xsl:if>
</xsl:variable>


<article class="item {../@class} {$landscapebg}">
<xsl:copy-of select="../@itemtype|../@itemprop|../@itemscope|../meta"/>
<a href="{@href}" rel="bookmark" itemprop="url">
<xsl:if test="figure/img">
<xsl:apply-templates select="figure" mode="lazy_img_small"/>
</xsl:if>
<div class="text_article_box">
<xsl:copy-of select="div[@class='fad_blog_article_topic']"/>
<xsl:copy-of select="h3"/>
<xsl:copy-of select="div[@class='fad_blog_article_text']"/>
</div>
</a>
</article>


</xsl:for-each>

<xsl:variable name="steplink" select="ul/li/a[@class='fad_cms_blog_reader_tags_next']/@href"/>
<xsl:if test="$steplink">
<div class="tag_list tag_list_next lazy" data-loader="myloader" data-link="{$steplink}"></div>
</xsl:if>

</div>

</div>

</div>
</xsl:if>

</xsl:template>



<xsl:template match="div[@class='mod_code']">
<xsl:variable name="max-width" select="meta[@name='skin.max_width']/@content"/>
<xsl:variable name="css_class" select="meta[@name='skin.css_class']/@content"/>
<div class="{@class} {$max-width} {$css_class}">
<xsl:copy-of select="*"></xsl:copy-of>
</div>
</xsl:template>


<xsl:template match="img[@class='attachment']">

<xsl:variable name="extension" select="php:function('system_util_File::getExtension',string(@title))"/>

<div filename="{$extension}" class="attachment_container inner-element-layer {$extension}">


<a class="file_type">

<xsl:choose>

<xsl:when test="$extension='mp4'">
<video width="400" controls="controls">
<source src="{@title}" type="video/mp4"/>
</video>
</xsl:when>

<xsl:otherwise>
<xsl:attribute name="class">attachment_unit</xsl:attribute>
<xsl:attribute name="download">download</xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="@title"/></xsl:attribute>

<span class="description">
<xsl:if test="$extension = 'mp4'">
<xsl:attribute name="class">description video</xsl:attribute>
</xsl:if>
<span>

<xsl:variable name="title">
<xsl:for-each select="str:tokenize(@title,'.')">
<tag><xsl:value-of select="."/></tag>
</xsl:for-each>
</xsl:variable>

<xsl:value-of select="exslt:node-set($title)/*[5]"></xsl:value-of>

</span>

</span>

<span class="download">
<img style="width:40px;height:auto;float:left;" src="skins/deutrikneu-template/img/basic-icons/download.svg"></img>
<span class="filename"><xsl:value-of select="$extension"/></span>
</span>

</xsl:otherwise>

</xsl:choose>


</a>
</div>

</xsl:template>


<xsl:template match="div[@class='mod_sitemap']">

<xsl:variable name="css_class" select="meta[@name='skin.css_class']/@content"/>

<div class="{@class} {$css_class}">

<xsl:copy-of select="*"></xsl:copy-of>
</div>
</xsl:template>

<xsl:template match="div[@class='mod_pagelist']">

<div class="{@class}" id="{@id}">

<xsl:copy-of select="h2[@class='pagelist_caption']"/>

<div class="{@class}_wrapper">

<xsl:for-each select="div[@itemprop='itemListElement']">

<div>
<xsl:copy-of select="@*"/>
<a>
<xsl:copy-of select="a/@*"/>
<xsl:apply-templates select="*/figure[@class='fad_page_pagelist_figure']/img" mode="lazy_news_img_small"/>
<div class="info_box">
<xsl:copy-of select="*/div[@class='fad_page_pagelist_content']/*[not(self::div[@class='fad_page_pagelist_location'])]"/>
<xsl:copy-of select="*/div[@class='fad_page_pagelist_content']/*/*/div[@class='fad_page_pagelist_city']"/>
</div>
</a>
</div>

</xsl:for-each>

</div>

</div>


</xsl:template>


<xsl:template match="div[@class='mod_pagelist']" mode="sidebar">

<xsl:copy-of select="./h2"></xsl:copy-of>


<xsl:for-each select="div/a [@href!=concat('/',$metadata/alias,'.html')]">

<li class="termin" pos="{position()}">

<a>
<xsl:copy-of select="@*"/>

<div class="date">

<div class="date_wrapper">

<xsl:value-of select="div/div[contains(@class,'fad_page_pagelist_startDate')]/span[@class='fad_page_pagelist_day']"/>

</div>

</div>

<div class="info">

<div class="info_wrapper">
<xsl:copy-of select="div[@class='fad_page_pagelist_content']/div[@class='fad_page_pagelist_entry_topic']"/>
<xsl:copy-of select="div[@class='fad_page_pagelist_content']/h3"/>
</div>
</div>

</a>
</li>
</xsl:for-each>
</xsl:template>

<xsl:template match="div[@class='mod_rating']" mode="bewertung">

<xsl:variable name="ratingvalue" select=".//meta[@itemprop='ratingValue']/@content"/>

<!--div class="rating_aspect" rating="{$ratingvalue}">

<xsl:choose>

<xsl:when test="$ratingvalue='1'">
<img src="/skins/lesering-two/img/rating-one.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='2'">
<img src="/skins/lesering-two/img/rating-two.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='3'">
<img src="/skins/lesering-two/img/rating-three.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='4'">
<img src="/skins/lesering-two/img/rating-four.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='5'">
<img src="/skins/lesering-two/img/rating-five.svg"/>
</xsl:when>


</xsl:choose>

</div-->

</xsl:template>

<xsl:template match="div[@class='mod_rating']">
<div>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="div[1=2 and @itemprop='aggregateRating']">
<div>
<xsl:copy-of select="@*"/>

<xsl:variable name="id" select="@id"/>

<xsl:apply-templates select="h3[@class='rating_caption']"/>

<xsl:copy-of select="meta"/>
<xsl:variable name="ratingvalue" select="meta[@itemprop='ratingValue']/@content"/>



<div class="rating_rating_aspect" rating="{$ratingvalue}">

<xsl:choose>


<xsl:when test="$ratingvalue='1'">
<img src="/skins/lesering-two/img/rating-one.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='2'">
<img src="/skins/lesering-two/img/rating-two.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='3'">
<img src="/skins/lesering-two/img/rating-three.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='4'">
<img src="/skins/lesering-two/img/rating-four.svg"/>
</xsl:when>

<xsl:when test="$ratingvalue='5'">
<img src="/skins/lesering-two/img/rating-five.svg"/>
</xsl:when>


</xsl:choose>

</div>



<div id="{div/div/@id}" class="ratingvalue_{$ratingvalue}">

<!-- svg width="100%" height="100%" viewBox="0 0 6513 1567" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<rect id="Artboard11" x="0" y="3.227" width="6511.35" height="1560.76" style="fill:none;"/>

<rect id="rating-bar" x="254.04" y="315.727" width="5849.78" height="891.501" style="fill:#fff900;cursor:pointer;"/>
<path id="Cover" d="M6310.98,761.878c-0,-338.559 -274.457,-613.016 -613.017,-613.016c-1195.92,-0 -3827.6,-0 -5023.52,-0c-338.56,-0 -613.017,274.457 -613.017,613.017c0,-0 0,-0 0,-0c0,338.559 274.457,613.016 613.017,613.016c1195.92,0 3827.6,0 5023.52,0c338.56,0 613.017,-274.457 613.017,-613.016c-0,-0 -0,-0 -0,-0.001Zm-3149.28,-494.766c271.624,-0 492.149,220.524 492.149,492.149c0,271.625 -220.525,492.15 -492.149,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c0,-271.625 220.525,-492.149 492.15,-492.149Zm1199.32,-0c271.625,-0 492.15,220.524 492.15,492.149c-0,271.625 -220.525,492.15 -492.15,492.15c-271.625,-0 -492.149,-220.525 -492.149,-492.15c-0,-271.625 220.524,-492.149 492.149,-492.149Zm1199.32,-0c271.625,-0 492.149,220.524 492.149,492.149c0,271.625 -220.524,492.15 -492.149,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c0,-271.625 220.525,-492.149 492.15,-492.149Zm-4797.29,-0c271.624,-0 492.149,220.524 492.149,492.149c0,271.625 -220.525,492.15 -492.149,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c-0,-271.625 220.525,-492.149 492.15,-492.149Zm1199.32,-0c271.625,-0 492.15,220.524 492.15,492.149c-0,271.625 -220.525,492.15 -492.15,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c0,-271.625 220.525,-492.149 492.15,-492.149Z" style="fill:#fff;cursor: pointer;"/>

<g id="Stars" class="rating_deutrik" onmouseup="{div/div/div/@onmouseup}" onmouseout="{div/div/div/@onmouseout}">
<path class="star 1 rating_value_1" onmouseout="starout()" onmouseover="hover('1')" onclick="setStarCountDeutrik(event,'{$id}','1','t' )" d="M787.56,291.455c271.625,0 492.149,220.525 492.149,492.15c0,271.625 -220.524,492.15 -492.149,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c0,-271.625 220.525,-492.15 492.15,-492.15Zm-30.744,165.436c5.711,-10.882 16.986,-17.698 29.275,-17.698c12.289,-0 23.564,6.816 29.275,17.698c26.952,51.356 65.109,124.064 81.175,154.676c4.787,9.123 13.554,15.492 23.71,17.227c34.079,5.819 115.019,19.641 172.19,29.404c12.114,2.069 22.081,10.686 25.879,22.373c3.797,11.688 0.799,24.517 -7.786,33.311c-40.514,41.503 -97.872,100.261 -122.022,125c-7.196,7.372 -10.545,17.678 -9.056,27.873c4.996,34.209 16.863,115.459 25.245,172.849c1.776,12.16 -3.34,24.302 -13.282,31.526c-9.942,7.223 -23.07,8.336 -34.086,2.889c-51.991,-25.706 -125.598,-62.099 -156.589,-77.423c-9.235,-4.566 -20.071,-4.566 -29.307,0c-30.991,15.324 -104.597,51.717 -156.589,77.423c-11.016,5.447 -24.144,4.334 -34.086,-2.889c-9.942,-7.224 -15.057,-19.366 -13.281,-31.526c8.381,-57.39 20.248,-138.64 25.244,-172.849c1.489,-10.195 -1.859,-20.501 -9.056,-27.873c-24.15,-24.739 -81.508,-83.497 -122.022,-125c-8.584,-8.794 -11.583,-21.623 -7.785,-33.311c3.797,-11.687 13.764,-20.304 25.878,-22.373c57.171,-9.763 138.112,-23.585 172.191,-29.404c10.155,-1.735 18.922,-8.104 23.71,-17.227c16.065,-30.612 54.223,-103.32 81.175,-154.676Z" style="cursor: pointer;fill:#fff;stroke:#3c6d7c;stroke-width:62.5px;"/>
<path class="star 2 rating_value_2" onmouseout="starout()" onmouseover="hover('2')" onclick="setStarCountDeutrik(event,'{$id}','2','t' )" d="M1986.88,291.455c271.625,0 492.15,220.525 492.15,492.15c0,271.625 -220.525,492.15 -492.15,492.15c-271.624,-0 -492.149,-220.525 -492.149,-492.15c-0,-271.625 220.525,-492.15 492.149,-492.15Zm-30.744,165.436c5.711,-10.882 16.986,-17.698 29.275,-17.698c12.289,-0 23.564,6.816 29.275,17.698c26.952,51.356 65.11,124.064 81.175,154.676c4.788,9.123 13.555,15.492 23.71,17.227c34.079,5.819 115.02,19.641 172.191,29.404c12.114,2.069 22.081,10.686 25.878,22.373c3.798,11.688 0.799,24.517 -7.785,33.311c-40.514,41.503 -97.872,100.261 -122.022,125c-7.197,7.372 -10.545,17.678 -9.056,27.873c4.996,34.209 16.863,115.459 25.244,172.849c1.776,12.16 -3.339,24.302 -13.281,31.526c-9.942,7.223 -23.07,8.336 -34.086,2.889c-51.992,-25.706 -125.598,-62.099 -156.589,-77.423c-9.236,-4.566 -20.072,-4.566 -29.307,0c-30.991,15.324 -104.598,51.717 -156.589,77.423c-11.016,5.447 -24.144,4.334 -34.086,-2.889c-9.942,-7.224 -15.058,-19.366 -13.282,-31.526c8.382,-57.39 20.249,-138.64 25.245,-172.849c1.489,-10.195 -1.86,-20.501 -9.056,-27.873c-24.15,-24.739 -81.508,-83.497 -122.022,-125c-8.585,-8.794 -11.583,-21.623 -7.786,-33.311c3.798,-11.687 13.765,-20.304 25.879,-22.373c57.171,-9.763 138.111,-23.585 172.19,-29.404c10.156,-1.735 18.923,-8.104 23.71,-17.227c16.066,-30.612 54.223,-103.32 81.175,-154.676Z" style="cursor: pointer;fill:#fff;stroke:#3c6d7c;stroke-width:62.5px;"/>
<path class="star 3 rating_value_3" onmouseout="starout()" onmouseover="hover('3')" onclick="setStarCountDeutrik(event,'{$id}','3','t' )" d="M3186.2,291.455c271.625,0 492.15,220.525 492.15,492.15c-0,271.625 -220.525,492.15 -492.15,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c0,-271.625 220.525,-492.15 492.15,-492.15Zm-30.744,165.436c5.711,-10.882 16.986,-17.698 29.275,-17.698c12.289,-0 23.564,6.816 29.275,17.698c26.952,51.356 65.109,124.064 81.175,154.676c4.787,9.123 13.554,15.492 23.71,17.227c34.079,5.819 115.019,19.641 172.191,29.404c12.113,2.069 22.08,10.686 25.878,22.373c3.797,11.688 0.799,24.517 -7.786,33.311c-40.514,41.503 -97.871,100.261 -122.021,125c-7.197,7.372 -10.546,17.678 -9.057,27.873c4.997,34.209 16.863,115.459 25.245,172.849c1.776,12.16 -3.339,24.302 -13.281,31.526c-9.943,7.223 -23.071,8.336 -34.087,2.889c-51.991,-25.706 -125.597,-62.099 -156.589,-77.423c-9.235,-4.566 -20.071,-4.566 -29.307,0c-30.991,15.324 -104.597,51.717 -156.588,77.423c-11.017,5.447 -24.145,4.334 -34.087,-2.889c-9.942,-7.224 -15.057,-19.366 -13.281,-31.526c8.382,-57.39 20.248,-138.64 25.244,-172.849c1.489,-10.195 -1.859,-20.501 -9.056,-27.873c-24.15,-24.739 -81.508,-83.497 -122.022,-125c-8.584,-8.794 -11.583,-21.623 -7.785,-33.311c3.798,-11.687 13.764,-20.304 25.878,-22.373c57.171,-9.763 138.112,-23.585 172.191,-29.404c10.156,-1.735 18.922,-8.104 23.71,-17.227c16.066,-30.612 54.223,-103.32 81.175,-154.676Z" style="cursor: pointer;fill:#fff;stroke:#3c6d7c;stroke-width:62.5px;"/>
<path class="star 4 rating_value_4" onmouseout="starout()" onmouseover="hover('4')" onclick="setStarCountDeutrik(event,'{$id}','4','t' )" d="M4385.53,291.455c271.624,0 492.149,220.525 492.149,492.15c0,271.625 -220.525,492.15 -492.149,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c-0,-271.625 220.525,-492.15 492.15,-492.15Zm-30.744,165.436c5.71,-10.882 16.985,-17.698 29.274,-17.698c12.289,-0 23.565,6.816 29.275,17.698c26.952,51.356 65.11,124.064 81.175,154.676c4.788,9.123 13.555,15.492 23.71,17.227c34.079,5.819 115.02,19.641 172.191,29.404c12.114,2.069 22.081,10.686 25.878,22.373c3.798,11.688 0.799,24.517 -7.785,33.311c-40.514,41.503 -97.872,100.261 -122.022,125c-7.197,7.372 -10.545,17.678 -9.056,27.873c4.996,34.209 16.863,115.459 25.244,172.849c1.776,12.16 -3.339,24.302 -13.281,31.526c-9.942,7.223 -23.07,8.336 -34.086,2.889c-51.991,-25.706 -125.598,-62.099 -156.589,-77.423c-9.236,-4.566 -20.072,-4.566 -29.307,0c-30.991,15.324 -104.598,51.717 -156.589,77.423c-11.016,5.447 -24.144,4.334 -34.086,-2.889c-9.942,-7.224 -15.058,-19.366 -13.282,-31.526c8.382,-57.39 20.249,-138.64 25.245,-172.849c1.489,-10.195 -1.86,-20.501 -9.056,-27.873c-24.15,-24.739 -81.508,-83.497 -122.022,-125c-8.585,-8.794 -11.583,-21.623 -7.785,-33.311c3.797,-11.687 13.764,-20.304 25.878,-22.373c57.171,-9.763 138.111,-23.585 172.191,-29.404c10.155,-1.735 18.922,-8.104 23.709,-17.227c16.066,-30.612 54.223,-103.32 81.176,-154.676Z" style="cursor: pointer;fill:#fff;stroke:#3c6d7c;stroke-width:62.5px;"/>
<path class="star 5 rating_value_5" onmouseout="starout()" onmouseover="hover('5')" onclick="setStarCountDeutrik(event,'{$id}','5','t' )" d="M5584.85,291.455c271.625,0 492.15,220.525 492.15,492.15c-0,271.625 -220.525,492.15 -492.15,492.15c-271.625,-0 -492.15,-220.525 -492.15,-492.15c0,-271.625 220.525,-492.15 492.15,-492.15Zm-30.744,165.436c5.711,-10.882 16.986,-17.698 29.275,-17.698c12.289,-0 23.564,6.816 29.275,17.698c26.952,51.356 65.109,124.064 81.175,154.676c4.788,9.123 13.554,15.492 23.71,17.227c34.079,5.819 115.019,19.641 172.191,29.404c12.113,2.069 22.08,10.686 25.878,22.373c3.797,11.688 0.799,24.517 -7.785,33.311c-40.515,41.503 -97.872,100.261 -122.022,125c-7.197,7.372 -10.546,17.678 -9.057,27.873c4.997,34.209 16.863,115.459 25.245,172.849c1.776,12.16 -3.339,24.302 -13.281,31.526c-9.942,7.223 -23.071,8.336 -34.087,2.889c-51.991,-25.706 -125.597,-62.099 -156.589,-77.423c-9.235,-4.566 -20.071,-4.566 -29.306,0c-30.992,15.324 -104.598,51.717 -156.589,77.423c-11.016,5.447 -24.145,4.334 -34.087,-2.889c-9.942,-7.224 -15.057,-19.366 -13.281,-31.526c8.382,-57.39 20.248,-138.64 25.245,-172.849c1.488,-10.195 -1.86,-20.501 -9.057,-27.873c-24.15,-24.739 -81.508,-83.497 -122.022,-125c-8.584,-8.794 -11.582,-21.623 -7.785,-33.311c3.798,-11.687 13.764,-20.304 25.878,-22.373c57.172,-9.763 138.112,-23.585 172.191,-29.404c10.156,-1.735 18.922,-8.104 23.71,-17.227c16.066,-30.612 54.223,-103.32 81.175,-154.676Z" style="cursor: pointer;fill:#fff;stroke:#3c6d7c;stroke-width:62.5px;"/>
</g>

</svg -->

<div class="rating_deutrik" onmouseup="{div/div/div/@onmouseup}" onmouseout="{div/div/div/@onmouseout}">

<div class="star 1 rating_value_1" onmouseout="starout()" onmouseover="hover('1')" onclick="setStarCountDeutrik(event,'{$id}','1','t' )" position="1"/>
<div class="star 2 rating_value_2" onmouseout="starout()" onmouseover="hover('2')" onclick="setStarCountDeutrik(event,'{$id}','2','t' )" position="2"/>
<div class="star 3 rating_value_3" onmouseout="starout()" onmouseover="hover('3')" onclick="setStarCountDeutrik(event,'{$id}','3','t' )" position="3"/>
<div class="star 4 rating_value_4" onmouseout="starout()" onmouseover="hover('4')" onclick="setStarCountDeutrik(event,'{$id}','4','t' )" position="4"/>
<div class="star 5 rating_value_5" onmouseout="starout()" onmouseover="hover('5')" onclick="setStarCountDeutrik(event,'{$id}','5','t' )" position="5"/>

</div>

<div class="rating_aspect">

<span>Dieser Text hat</span>
<span><xsl:value-of select="$ratingvalue"/> von 5 Punkten</span></div>

<xsl:apply-templates select="div/div/span[@class='count_value']"></xsl:apply-templates>

</div>

<xsl:copy-of select="div/div/a"/>

</div>

</xsl:template>




<xsl:template match="div[contains(@class,'fad_gallery') and contains(@class,'gallery-Raster')]">

<xsl:param name="nr" select="@nr"/>

<xsl:variable name="images" select="php:function('cms_CMS::getImages',string($nr))"/>

<xsl:variable name="gallery_layout" select="meta[@name='skin.gallery_layout']/@content"/>
<xsl:variable name="max_width" select="meta[@name='skin.max_width']/@content"/>

<xsl:variable name="image-widths">
<width>300</width>
<width>450</width>
<width>600</width>
</xsl:variable>

<xsl:variable name="largest-width" select="exslt:node-set($image-widths)/width[last()]"/>

<div class="gallery_wrapper {$max_width}">
<div class="caption gallery">
<xsl:apply-templates select="h3[@class='gallery_caption']"/>
</div>
<div id="{@id}" nr="{@nr}" class="gallery modul {@class} {$gallery_layout}">


<xsl:copy-of select="@*[name()!='class']"/>

<xsl:if test="$gallery_layout ='layout-icons'">

<!--xsl:copy-of select="$images"/-->

<xsl:for-each select="$images/*/image">

<xsl:variable name="image-alt" select="str:tokenize(@url,'.')"/>
<xsl:variable name="image-src" select="str:tokenize(@url,'.')"/>

<xsl:variable name="metai" select="php:function('cms_CMS::getImageMeta',string($image-src[2]),string($image-src[4]))/media"/>

<xsl:variable name="image-sizes-alt">
<xsl:if test="count($image-alt) = 3 and contains($image-alt[3], 'x')">
<xsl:value-of select="exslt:node-set($image-alt[3])"/>
</xsl:if>
</xsl:variable>

<xsl:variable name="image-size-alt" select="str:tokenize($image-sizes-alt,'x')"/>

<xsl:variable name="image-width">
<xsl:choose>
<xsl:when test="$image-size-alt[1] != ''">
<xsl:value-of select="$image-size-alt[1]"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$metai/width"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="image-height">
<xsl:choose>
<xsl:when test="$image-size-alt[2] != ''">
<xsl:value-of select="$image-size-alt[2]"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$metai/height"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="image-dims">

<xsl:for-each select="exslt:node-set($image-widths)/width">
<dim w="{.}" h="{ceiling(. div $image-width * $image-height)}"/>
</xsl:for-each>

</xsl:variable>

<xsl:variable name="id" select="@searchname"/>
<xsl:variable name="type" select="@imgtype"/>
<xsl:variable name="path" select="concat('/content.',$nr,'.images.',$id)"/>

<div class="item">

<xsl:variable name="i">
<img data-srcset="" class="" src="/content.{$nr}.images.{@id}.{@name}" path="/content.{$nr}.images.{@id}" meta_nr="{$nr}" alt="cms.{@id}">
<xsl:if test="$type !='svg'">
<xsl:attribute name="srcset">
<xsl:for-each select="exslt:node-set($image-dims)/dim">
<xsl:if test="position() &gt; 1">
<xsl:value-of select="','"/>
</xsl:if>
<xsl:variable name="reg" select="php:function('web_Session::registerImageSize',concat(@w,'x',@h))"/>
<xsl:value-of select="concat($path, '.', @w, 'x', @h, '.', $type, ' ', @w, 'w')"/>
</xsl:for-each>
<xsl:if test="$image-width &lt; $largest-width">
<xsl:value-of select="','"/>
<xsl:value-of select="concat(@src, ' ', $image-width, 'w')"/>
</xsl:if>
</xsl:attribute>
</xsl:if>
</img>
</xsl:variable>

<xsl:apply-templates select="exslt:node-set($i)/img"/>

</div>

</xsl:for-each>

</xsl:if>

</div>
</div>


</xsl:template>

<xsl:template match="div[@class='mod_page_preview']" mode="sidebar_freetext">

<div class="freetext_sidebar">

<div class="box">
<xsl:copy-of select="h3[@class='page_box_caption']"/>

<xsl:copy-of select="div[@class='page_box_text']"/>
</div>
</div>

</xsl:template>

<xsl:template match="div[@class='mod_page_preview']">


<xsl:variable name="css_class" select="meta[@name='skin.css_class']/@content"/>
<xsl:variable name="ctab" select="meta[@name='skin.ctab']/@content"/>

<div class="{@class} lazy {$css_class}" id="{@id}" data-loader="customLoaderName">
<a class="{*/@class}" href="{*/@href}" title="{*/@title}">

<xsl:apply-templates select="*/div[@class='page_box_image']"></xsl:apply-templates>

<div class="{@class}_container">
<xsl:apply-templates select="*/h3[@class='page_box_caption']"></xsl:apply-templates>
<xsl:apply-templates select="*/div[@class='page_box_text']"></xsl:apply-templates>

<xsl:if test="$ctab">
<span class="ctab_{@class}" href="{*/@href}"><xsl:value-of select="$ctab"/></span>
</xsl:if>

</div>

</a>
</div>

</xsl:template>


<xsl:template match="div[@class='mod_comment_list']" mode="sidebar">
<div class="{@class}">
<xsl:copy-of select="h3"/>
<xsl:copy-of select="div[@class='feed']"/>
<ol>
<xsl:for-each select="ol/li/a">
<li>
<a href="{@href}" rel="bookmark">
<xsl:copy-of select="div[@class='author']"/>
<xsl:copy-of select="date"/>
<xsl:copy-of select="div[@class='comment']"/>
</a>
</li>
</xsl:for-each>
</ol>
</div>
</xsl:template>

<xsl:template match="div[@class='mod_faq']">

<xsl:copy-of select="*"/>

</xsl:template>

<xsl:template match="div[@class='mod_social_fanpage']">

<xsl:variable name="css_class" select="meta[@name='skin.css_class']/@content"/>

<div id="{@id}" nr="{@nr}" class="{@class} {$css_class}">

<xsl:copy-of select="*"/>

</div>

</xsl:template>


<xsl:template match="div[@class='mod_html']">

<xsl:variable name="layout_html" select="meta[@name='skin.html_layout']/@content"/>
<xsl:variable name="css_class" select="meta[@name='skin.css_class']/@content"/>
<xsl:variable name="max_width" select="meta[@name='skin.max_width']/@content"/>
<xsl:variable name="mode" select="meta[@name='skin.mode']/@content"/>

<xsl:variable name="top-img">
<xsl:choose>
<xsl:when test="img[@class='mod-html-image']"> top-img </xsl:when>
<xsl:otherwise>single_element</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<div id="{@id}" class="{@class} {$top-img} card_{$mode} {$top-img} {$layout_html} {$css_class} {$max_width}">

<div class="text_container">
<xsl:copy-of select="h3[@class='html_caption']"/>
<xsl:apply-templates select="div[@class='html_text']"/>
</div>

<div class="top-img_container">
<xsl:apply-templates select="img[@class='mod-html-image']" mode="lazy_img"/>
</div>

</div>

</xsl:template>

<xsl:template name="navigation_header">

<div class="navigation_main">

<div class="logo" itemscope="itemscope" itemprop="publisher" itemtype='http://schema.org/Organization'>
<a itemprop="url" href="/">
<meta itemprop="name" content="Lesering.de"/>
<span itemprop="logo" itemscope="itemscope" itemtype="http://schema.org/ImageObject">
<img src="/logo.svg"/>
<meta itemprop="contentUrl" content="/logo.svg"/>
<meta itemprop="width" content="300"/>
<meta itemprop="height" content="300"/>
</span>
</a>
</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'navigation_main'"/>
</xsl:call-template>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'navigation_assets'"/>
</xsl:call-template>

</div>

</xsl:template>

<xsl:template match="div[@class='mod_blog_newslist']" mode="test">
<a class="header-link" data-scrollto="{@id}">
<xsl:value-of select="h3[@class='newslist_caption']"/>
</a>
</xsl:template>


<xsl:template match="div[@class='mod_blog_newslist']" mode="multibox_header">

<xsl:param name="position"/>

<xsl:variable name="open">
<xsl:if test="$position='position_1'">
open
</xsl:if>
</xsl:variable>

<span target="{@id}" class="{$open} newslist_caption" itemprop="name" onclick="multibox('{@id}')" style="cursor:pointer;font-size:1.25em;margin:0.5em 0.5em;">
<xsl:value-of select="h3[@class='newslist_caption']"/>
</span>

</xsl:template>

<xsl:template match="div[@class='mod_blog_newslist']">

<xsl:param name="place"/>
<xsl:param name="multibox"/>
<xsl:param name="position"/>

<xsl:if test="article/a">

<xsl:variable name="layout_modnewslist" select="meta[@name='skin.layout_modnewslist']/@content"/>
<xsl:variable name="layout_modnewslist_news" select="meta[@name='skin.layout_modnewslist_news']/@content"/>
<xsl:variable name="max_width" select="meta[@name='skin.max_width']/@content"/>
<xsl:variable name="show_news_in_steps" select="meta[@name='skin.show_news_in_steps']/@content"/>

<xsl:variable name="open">
<xsl:if test="$position='position_1'">open</xsl:if>
</xsl:variable>

<div target="" data-loader="" class="mod_blog_newslist_box {$open} {$position} {$max_width} {$layout_modnewslist} {$layout_modnewslist_news}" itemscope="{@itemscope}" itemtype="{@itemtype}">

<xsl:if test="$multibox">
<xsl:attribute name="target"><xsl:value-of select="@id"/></xsl:attribute>
<xsl:attribute name="data-loader">customLoaderName</xsl:attribute>
</xsl:if>

<xsl:variable name="testlink" select="div[@class='newslist_link']"></xsl:variable>

<xsl:choose>
<xsl:when test="$testlink">
<h3 class="newslist_caption" itemprop="name">
<a class="newslist_caption" href="{div[@class='newslist_link']/a/@href}">
<xsl:value-of select="h3[@class='newslist_caption']"/>
</a>
</h3>
</xsl:when>

<xsl:when test="$multibox">
</xsl:when>

<xsl:otherwise>
<h3 class="newslist_caption" itemprop="name">
<xsl:value-of select="h3[@class='newslist_caption']"/>
</h3>
</xsl:otherwise>

</xsl:choose>

<xsl:variable name="count_news">

<xsl:choose>

<xsl:when test="count(article/a)='1'">
count_one
</xsl:when>

<xsl:when test="count(article/a)='2'">
count_two
</xsl:when>

<xsl:when test="count(article/a)='3'">
count_three
</xsl:when>

<xsl:when test="count(article/a)='3'">
count_four
</xsl:when>

</xsl:choose>


</xsl:variable>

<div id="{@id}" class="{@class} {$layout_modnewslist} {$count_news}" style="position:relative;">

<xsl:variable name="class" select="str:tokenize(article/@class,' ')"/>
<xsl:variable name="layout_news" select="$class[2]"/>

<xsl:variable name="special_class">
<xsl:if test="$layout_modnewslist='horizontal-scroll-box'">
scroll_box
</xsl:if></xsl:variable>

<div id="" class="{@class}container {$special_class}">

<xsl:if test="$layout_modnewslist='horizontal-scroll-box'">
<xsl:attribute name="id">scroll_bar_special<xsl:value-of select="generate-id()"/></xsl:attribute>
</xsl:if>

<xsl:variable name="articles">

<xsl:variable name="count_all_news" select="count(article)"/>

<xsl:for-each select="article/a">

<xsl:variable name="bg_active">
<xsl:if test="$layout_modnewslist_news = 'layout_one' and position() = 1">bg_avtive</xsl:if>
</xsl:variable>

<xsl:variable name="landscapebg">
<xsl:if test="figure/img/@width div figure/img/@height &gt; 1.2">landscape</xsl:if>
</xsl:variable>

<xsl:variable name="news_position" select="concat('position_',position())"/>

<xsl:variable name="load_lazy">
<xsl:if test="position() &gt; 10 and $show_news_in_steps != ''">load_lazy</xsl:if>
<xsl:if test="$multibox">load_multibox_lazy</xsl:if>
</xsl:variable>

<article class="place_{$place} {$load_lazy} {$bg_active} slides item {../@class} {$landscapebg} {$layout_modnewslist} {$news_position}" style="grid-area:article_{position()};" data-loader="">

<xsl:if test="position() &gt; 10">
<xsl:attribute name="data-loader">customLoaderName</xsl:attribute>
</xsl:if>

<xsl:copy-of select="../@itemtype|../@itemprop|../@itemscope|../meta"/>

<a href="{@href}" rel="bookmark" itemprop="url">

<xsl:if test="$layout_modnewslist!='freetext' and $layout_modnewslist!='tile-design-freetext'">

<xsl:choose>

<xsl:when test="$layout_modnewslist='teaser-news'">
</xsl:when>

<xsl:otherwise>

<xsl:choose>

<xsl:when test="$layout_modnewslist_news = 'layout_one' and position() = 1">
<xsl:apply-templates select="figure" mode="lazy_img_preview_big"/>
</xsl:when>

<xsl:when test="$layout_modnewslist_news = 'layout_three' and position() = 1">
<xsl:apply-templates select="figure" mode="lazy_img_big_bg"/>
</xsl:when>

<xsl:when test="$layout_modnewslist_news = 'layout_one'">
<xsl:apply-templates select="figure" mode="lazy_img_preview"/>
</xsl:when>

<xsl:otherwise>

<xsl:choose>
<xsl:when test="$landscapebg='landscape'">
<xsl:apply-templates select="figure" mode="lazy_img_preview"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="figure" mode="lazy_img_preview_full"/>
</xsl:otherwise>
</xsl:choose>

</xsl:otherwise>

</xsl:choose>

</xsl:otherwise>

</xsl:choose>

</xsl:if>

<div class="text_container {$landscapebg}">


<xsl:variable name="author_name" select="../meta[@name='skin.author_name']/@content"/>



<xsl:copy-of select="div[@class='fad_blog_article_topic']"/>
<xsl:copy-of select="h3"/>

<xsl:if test="$layout_news='layout_news_freetext'">
<h4 class="author-speical" itemprop="name">
<xsl:value-of select="$author_name"/>
</h4>
</xsl:if>


<xsl:if test="$layout_modnewslist_news = 'layout_one' and position() = 1">
<xsl:copy-of select="div[@class='fad_blog_article_text']"/>
</xsl:if>

<xsl:if test="$layout_modnewslist_news = 'layout_two' or $layout_modnewslist_news='layout_three'">
<xsl:copy-of select="div[@class='fad_blog_article_text']"/>
</xsl:if>

</div>


<xsl:if test="$layout_modnewslist_news='layout_three'">
<xsl:apply-templates select="figure" mode="lazy_img_preview_full">
<xsl:with-param name="extra_container" select="'extra_container'"/>
</xsl:apply-templates>
</xsl:if>


</a>

</article>

</xsl:for-each>



<xsl:if test="$show_news_in_steps != ''">
<button class="news_list_button" onclick="load_lazy({$show_news_in_steps},{$count_all_news})" data-scrollto=""><span>Mehr Laden</span></button>
</xsl:if>

</xsl:variable>

<xsl:choose>

<xsl:when test="$layout_modnewslist = 'freetext' or $layout_modnewslist = 'vertical-scroll-box' or $layout_modnewslist ='horizontal-scroll-box' or $layout_modnewslist ='tile-design' or $layout_modnewslist ='tile-design-freetext' or $layout_modnewslist ='teaser-news'">
<xsl:copy-of select="$articles"/>
</xsl:when>

<xsl:when test="$layout_modnewslist = 'swipebox'">
<div id="fad_slider">
<div class="fad_slider_wrapper">
<xsl:copy-of select="$articles"/>
</div>
</div>
</xsl:when>

</xsl:choose>

<xsl:if test="$layout_modnewslist='horizontal-scroll-box'">
<xsl:apply-templates select="div[@class='newslist_link']"/>
</xsl:if>
</div>


<xsl:if test="$layout_modnewslist ='horizontal-scroll-box'">
<div class="short_nav">
<span class="next" onclick="Scrolltolast('{@id}')"><img src="/next.svg"></img></span>
<span class="prev" onclick="Scrolltofirst('{@id}')"><img src="/prev.svg"></img></span>
</div>
</xsl:if>


<xsl:if test="$layout_modnewslist='horizontal-scroll-box'">

<script>

document.addEventListener('DOMContentLoaded', function () {
const ele = document.getElementById('scroll_bar_special<xsl:value-of select="generate-id()"/>');

let pos = { top: 0, left: 0, x: 0, y: 0 };
let isdown = false;

const mouseDownHandler = function (e) {
ele.style.cursor = 'grabbing';
ele.style.userSelect = 'none';
pos = {
left: ele.scrollLeft,
top: ele.scrollTop,
x: e.clientX,
y: e.clientY,
};

document.addEventListener('mousedown', mouseMoveDown);
document.addEventListener('mousemove', mouseMoveHandler);
document.addEventListener('mouseup', mouseUpHandler);

};

const mouseMoveDown = function (e) {
console.log('mousedown ')
if(isdown === false){
$('body').removeClass("grabbing-container");
}

}

const mouseMoveHandler = function (e) {
isdown = true;

console.log('mousemove ')

const dx = e.clientX - pos.x;
const dy = e.clientY - pos.y;
ele.scrollTop = pos.top - dy;
ele.scrollLeft = pos.left - dx;

if(isdown === true){
$('body').addClass("grabbing-container");
}

};


const mouseUpHandler = function () {

setTimeout(function () {$('body').removeClass("grabbing-container")},300);


ele.style.cursor = 'grab';
ele.style.removeProperty('user-select');

document.removeEventListener('mousemove', mouseMoveHandler);
document.removeEventListener('mouseup', mouseUpHandler);
};

// Attach the handler
ele.addEventListener('mousedown', mouseDownHandler);
});


</script>
</xsl:if>




</div>
</div>


</xsl:if>


</xsl:template>


<xsl:template match="div[@class='mod_comment_editor']">
<div class="{@class}" id="{@id}">
<xsl:apply-templates select="*"/>
</div>
</xsl:template>

<xsl:template match="div[@class='newslist_link']">

<article class="article {@class}">
<a href="{a/@href}">
<span><xsl:value-of select="a/."/></span>
<div class="newslist_link_icon"/>
</a>

</article>

</xsl:template>

<xsl:template match="div[@class='mod_adbooks']">

<xsl:param name="short_links"/>
<xsl:param name="place"/>

<xsl:if test="ul/li">

<script>
$('body').addClass('buy_link')
</script>

<div id="amazone_container {$short_links}" class="amazone_container {$place}">

<xsl:if test="$place != 'beneath_top-img'">
<h3 class="caption">Hier bestellen</h3>
</xsl:if>

<xsl:if test="ul/li">
<div class="heading_head">
<xsl:apply-templates select="*"/>
</div>
</xsl:if>
</div>

</xsl:if>

</xsl:template>

<xsl:template match="a[@class='link_thalia']">
<a class="thalia" href="{@href}" style="float:left;border: 1px solid #e3000f;margin:10px 0px;">
<div style="background:no-repeat url('/skins/lesering-two/img/logo-thalia.jpg');display:inline-block;width:120px;height:20px;background-position: center;background-size: contain;"></div>
<span style="float:left;width:100%;background-color:#1a1aaa;color:white;">Kaufen</span>
</a>
</xsl:template>

<xsl:template match="a[@class='link_hugendubel']">
<a class="hugendubel" href="{@href}" style="float:left;border: 1px solid #1a1aaa;margin:10px 0px;">
<div style="background:no-repeat url('/skins/lesering-two/img/logo-hugendubel.jpg');display:inline-block;width:120px;height:20px;background-position: center;background-size: contain;"></div>
<span style="float:left;width:100%;background-color:#e3000f;color:white;">Kaufen</span>
</a>
</xsl:template>


<xsl:template match="figure" mode="lazy_img_big_bg">

<xsl:variable name="landscapebg">
<xsl:if test="img/@width div img/@height &gt; 1.2">landscape</xsl:if>
</xsl:variable>

<div class="{@class} {$landscapebg}">

<xsl:variable name="sizes">
<size width="800"/>
<size width="1000"/>
<size width="1200"/>
</xsl:variable>

<xsl:apply-templates select="img" mode="bg_lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>
</div>

</xsl:template>

<xsl:template match="figure" mode="lazy_img_bg">

<xsl:variable name="landscapebg">
<xsl:if test="img/@width div img/@height &gt; 1.2">landscape</xsl:if>
</xsl:variable>

<div class="{@class} {$landscapebg}">

<xsl:variable name="sizes">
<size width="400"/>
<size width="600"/>
</xsl:variable>

<xsl:apply-templates select="img" mode="bg_lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>
</div>

</xsl:template>

<xsl:template match="figure" mode="lazy_img_preview_big">

<xsl:param name="extra_container"/>

<xsl:variable name="landscapebg">
<xsl:if test="$extra_container =''">
<xsl:if test="img/@width div img/@height &gt; 1.2">landscape</xsl:if>
</xsl:if>
</xsl:variable>

<div class="{@class} {$landscapebg} {$extra_container}">

<xsl:variable name="sizes">
<size width="900" height="600"/>
</xsl:variable>

<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>
</div>

</xsl:template>

<xsl:template match="figure" mode="lazy_img_preview">

<xsl:param name="extra_container"/>

<xsl:variable name="landscapebg">
<xsl:if test="$extra_container =''">
<xsl:if test="img/@width div img/@height &gt; 1.2">landscape</xsl:if>
</xsl:if>
</xsl:variable>

<div class="{@class} {$landscapebg} {$extra_container}">

<xsl:variable name="sizes">
<size width="300" height="200"/>
<size width="400" height="200"/>
</xsl:variable>

<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
<xsl:with-param name="preview" select="true()"/>
</xsl:apply-templates>
</div>

</xsl:template>

<xsl:template match="figure" mode="lazy_img_preview_full">
<xsl:param name="extra_container"/>
<xsl:variable name="landscapebg">
<xsl:if test="img/@width div img/@height &gt; 1.2">landscape</xsl:if>
</xsl:variable>

<div class="{@class} {$landscapebg} {$extra_container}">
<xsl:variable name="sizes">
<size width="400"/>
<size width="700"/>
</xsl:variable>
<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
<xsl:with-param name="preview" select="true()"/>
</xsl:apply-templates>
</div>

</xsl:template>


<xsl:template match="figure" mode="lazy_img">

<xsl:variable name="landscapebg">
<xsl:if test="img/@width div img/@height &gt; 1.2">landscape</xsl:if>
</xsl:variable>

<div class="{@class} {$landscapebg}">

<xsl:variable name="sizes">
<size width="400"/>
<size width="600"/>
</xsl:variable>
<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>

</div>

</xsl:template>

<xsl:template match="img" mode="lazy_img">


<xsl:variable name="sizes">
<size width="400"/>
<size width="600"/>
</xsl:variable>

<xsl:apply-templates select="." mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>


</xsl:template>

<xsl:template match="figure" mode="lazy_img_square_big">

<xsl:copy-of select="@*"/>

<xsl:variable name="sizes">
<size width="600" height="600"/>
</xsl:variable>

<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>

</xsl:template>


<xsl:template match="figure" mode="lazy_img_square">

<xsl:copy-of select="@*"/>

<xsl:variable name="sizes">
<size width="200" height="200"/>
</xsl:variable>

<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>

</xsl:template>


<xsl:template match="figure" mode="lazy_img_small">

<div class="{@class}">

<xsl:variable name="sizes">
<size width="300"/>
<size width="400"/>
</xsl:variable>

<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
<xsl:with-param name="preview" select="true()"/>
</xsl:apply-templates>

</div>

</xsl:template>

<xsl:template match="img" mode="lazy_news_img_small">
<xsl:param name="src_only"></xsl:param>
<xsl:variable name="sizes">
<size width="300"/>
</xsl:variable>
<xsl:apply-templates select="." mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
<xsl:with-param name="src_only" select="$src_only"/>
</xsl:apply-templates>
</xsl:template>


<xsl:template match="img" mode="news_img">

<xsl:param name="src_only"/>

<xsl:variable name="sizes">
<size width="600"/>
<size width="800"/>
<size width="1200"/>
</xsl:variable>

<xsl:apply-templates select="." mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
<xsl:with-param name="src_only" select="$src_only"/>
<xsl:with-param name="lazyload" select="false()"/>
</xsl:apply-templates>

</xsl:template>

<xsl:template match="img" mode="lazy_news_img_bg">

<xsl:variable name="sizes">
<size width="400"/>
<size width="600"/>
<size width="800"/>
</xsl:variable>

<xsl:apply-templates select="." mode="bg_lazy">

<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>

</xsl:apply-templates>

</xsl:template>

<xsl:template match="figure" mode="lazy_img_q">

<xsl:copy>
<xsl:copy-of select="@*"/>

<xsl:variable name="sizes">
<size width="100" height="100"/>

</xsl:variable>

<xsl:apply-templates select="img" mode="lazy">
<xsl:with-param name="sizes" select="exslt:node-set($sizes)"/>
</xsl:apply-templates>


</xsl:copy>

</xsl:template>




<xsl:template match="div[@class='mod_blog_newslist']" mode="book-of-week">

<xsl:copy-of select="h3"/>

<xsl:for-each select="article/a">
<a href="{@href}" rel="bookmark">

<div class="info_container_wrapper">

<div class="info_container">

<xsl:copy-of select="adresse"/>
<xsl:copy-of select="time"/>
<xsl:copy-of select="h3"/>
</div>

<xsl:copy-of select="div[@class='fad_blog_article_text']"/>

</div>

<xsl:apply-templates select="figure" mode="lazy_img"/>

</a>
</xsl:for-each>

</xsl:template>


<xsl:template match="figure" mode="book-of-week">

<xsl:copy>

<xsl:copy-of select="@*"/>
<xsl:variable name="height" select="round(210 div img/@width * img/@height)"/>
<xsl:variable name="isize" select="php:function('web_Session::registerImageSize',concat(210,'x',$height))"/>

<img itemprop="image" style="width:210px;height:{$height}px" src="{img/@path}.{$isize}.{img/@type}" title="{img/@title}"/>

</xsl:copy>

</xsl:template>

<xsl:template match="img" mode="lazy">

<xsl:param name="sizes"/>
<xsl:param name="src_only"/>
<xsl:param name="preview" select="false()"/>
<xsl:param name="lazyload" select="$skin_defs/lazyload='yes'"/>


<xsl:variable name="sizessizes">
<xsl:variable name="countsizes" select="count(exslt:node-set($sizes)/size)"/>
<xsl:value-of select="100 div $countsizes"/>vw
</xsl:variable>

<xsl:variable name="w" select="$sizes/*[last()]/@width"/>
<xsl:variable name="hh" select="$sizes/*[last()]/@height"/>
<xsl:variable name="iw" select="@width"/>
<xsl:variable name="ih" select="@height"/>

<xsl:variable name="bh">
<xsl:choose>
<xsl:when test="$hh"><xsl:value-of select="$hh"/></xsl:when>
<xsl:otherwise>
<xsl:value-of select="round($w div $iw * $ih)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="path" select="@path"/>
<xsl:variable name="type" select="@type"/>

<xsl:variable name="srcset">

<xsl:for-each select="$sizes/*">
<xsl:if test="position() &gt; 1">,</xsl:if>
<xsl:variable name="h">
<xsl:choose>
<xsl:when test="@height"><xsl:value-of select="@height"/></xsl:when>
<xsl:otherwise>
<xsl:value-of select="round(@width div $iw * $ih)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="reg" select="php:function('web_Session::registerImageSize',concat(@width,'x',$h))"/>
<xsl:value-of select="concat($path,'.',$reg,'.',$type,' ',@width,'w')"/>
</xsl:for-each>

</xsl:variable>
<xsl:variable name="www" select="100"/>
<!-- xsl:variable name="sd" select="php:function('web_Session::registerImageSize',concat(100,'x',round($www div $iw * $ih)))"/ -->

<xsl:choose>

<xsl:when test="$src_only">
<xsl:variable name="split_path" select="str:tokenize(@src,'.')"/>
<xsl:variable name="bg_path" select="concat($split_path[1],'.',$split_path[2],'.',$split_path[3],'.',$split_path[4],'.',$split_path[5])"/>
<xsl:value-of select="$bg_path"/>
</xsl:when>

<xsl:otherwise>
<xsl:call-template name="render_cms_image">
<xsl:with-param name="srcset" select="$srcset"/>
<xsl:with-param name="sizes" select="$sizessizes"/>
<xsl:with-param name="preview" select="$preview"/>
<xsl:with-param name="lazyload" select="$lazyload"/>
</xsl:call-template>
</xsl:otherwise>

</xsl:choose>




</xsl:template>


<xsl:template match="img | image" mode="bg_lazy">


<xsl:param name="sizes"/>
<xsl:variable name="sizessizes">
<xsl:variable name="countsizes" select="count(exslt:node-set($sizes)/size)"/>
<xsl:value-of select="100 div $countsizes"/>vw
</xsl:variable>

<xsl:variable name="w" select="$sizes/*[last()]/@width"/>
<xsl:variable name="hh" select="$sizes/*[last()]/@height"/>
<xsl:variable name="iw" select="@width"/>
<xsl:variable name="ih" select="@height"/>

<xsl:variable name="landscapebg">
<xsl:if test="@width div @height &gt; 1.2">landscape</xsl:if>
</xsl:variable>


<xsl:variable name="bh">
<xsl:choose>
<xsl:when test="$hh"><xsl:value-of select="$hh"/></xsl:when>
<xsl:otherwise>
<xsl:value-of select="round($w div $iw * $ih)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>


<xsl:variable name="path" select="@path"/>
<xsl:variable name="type" select="@type"/>


<xsl:variable name="sizes">

<xsl:for-each select="$sizes/*">

<xsl:variable name="h">
<xsl:choose>
<xsl:when test="@height"><xsl:value-of select="@height"/></xsl:when>
<xsl:otherwise>
<xsl:value-of select="round(@width div $iw * $ih)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="reg" select="php:function('web_Session::registerImageSize',concat(@width,'x',$h))"/>

<span><xsl:value-of select="concat($path,'.',$reg,'.',$type)"/></span>

</xsl:for-each>

</xsl:variable>


<!--<picture class="lazy_image">
<source srcset="{$sizes}" sizes="100"/>
<xsl:variable name="www" select="100"/>
<xsl:variable name="sd" select="php:function('web_Session::registerImageSize',concat(100,'x',round($www div $iw * $ih)))"/>
<img class="lazy bg_lazy" src="{$path}.{$sd}.{$type}" loading="lazy"/>
</picture> -->

<xsl:variable name="sizesbg">
<xsl:value-of select="exslt:node-set($sizes)/span[last()]"/>
</xsl:variable>

<xsl:variable name="idbg">
<xsl:value-of select="generate-id(.)"/>
</xsl:variable>

<div class="lazy bg_lazy {$landscapebg}" data-src="{$sizesbg}"/>

</xsl:template>

<xsl:template name="freeauthor_header">

<style>
.header_social::before{content:"Folgt <xsl:value-of select="/content/text/*/*[@class='author']"></xsl:value-of> auf:";
width:100%;
float:left;}
</style>

</xsl:template>


<xsl:template match="/content/text/*/*[@class='post_content']/*/p[position()=1]">
<p class="top_paragraph">
<xsl:value-of select="."/>
</p>
</xsl:template>

<xsl:template match="figure[@class='fad_gallery_image']" mode="news-reader">

<xsl:variable name="close" select="a[@id='fad_gallery_close']/@href"/>


<xsl:variable name="current_number" select="meta[@name='current']/@content"/>
<xsl:variable name="max_number" select="meta[@name='max']/@content"/>
<xsl:variable name="next_number" select="$current_number - 1"/>
<xsl:variable name="prev_number" select="$current_number + 1"/>


<xsl:variable name="nexthref" select="/content/metadata/imagemeta/image[media/gallery='t'][$current_number - 1]/@id"/>
<xsl:variable name="prevhref" select="/content/metadata/imagemeta/image[media/gallery='t'][$current_number + 1]/@id"/>


<xsl:variable name="next">
<xsl:value-of select="concat('?gallery=',$nexthref)"/>
</xsl:variable>


<xsl:variable name="prev">
<xsl:value-of select="concat('?gallery=',$prevhref)"/>
</xsl:variable>


<xsl:variable name="image-src" select="str:tokenize(img/@src,'.')"/>
<xsl:variable name="metai" select="php:function('cms_CMS::getImageMeta',string($image-src[2]),string($image-src[4]))/media"/>

<div class="{@class}_wrapper">

<div class="close_container">
<a class="gallery_t back" href="{$close}">
<svg width="100%" height="100%" viewBox="0 0 116 116" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g transform="matrix(1,0,0,1,-1401,-241)">
<g id="Artboard7" transform="matrix(1,0,0,1,-0.895646,-0.825375)">
<g transform="matrix(-2.01121,2.46302e-16,-2.46302e-16,-2.01121,1963.41,1194.25)">
<path class="path" d="M273.426,427.764C273.426,428.579 273.088,429.358 272.491,429.914C271.024,431.281 268.043,434.059 265.104,436.798C263.074,438.69 261.921,441.34 261.921,444.114C261.921,446.889 263.074,449.538 265.104,451.43C268.043,454.169 271.024,456.947 272.491,458.314C273.088,458.87 273.426,459.649 273.426,460.464C273.426,460.466 273.426,460.467 273.426,460.469C273.426,462.857 272.01,465.017 269.821,465.969C267.631,466.922 265.086,466.485 263.339,464.857C258.694,460.528 253.264,455.468 248.931,451.43C246.901,449.538 245.748,446.889 245.748,444.114C245.748,441.34 246.901,438.69 248.931,436.798C253.264,432.76 258.694,427.7 263.339,423.371C265.086,421.743 267.631,421.307 269.821,422.259C272.01,423.211 273.426,425.371 273.426,427.759C273.426,427.761 273.426,427.763 273.426,427.764Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(2.01121,-2.46302e-16,2.46302e-16,2.01121,959.075,-591.212)">
<path class="path" d="M273.426,427.764C273.426,428.579 273.088,429.358 272.491,429.914C271.024,431.281 268.043,434.059 265.104,436.798C263.074,438.69 261.921,441.34 261.921,444.114C261.921,446.889 263.074,449.538 265.104,451.43C268.043,454.169 271.024,456.947 272.491,458.314C273.088,458.87 273.426,459.649 273.426,460.464C273.426,460.466 273.426,460.467 273.426,460.469C273.426,462.857 272.01,465.017 269.821,465.969C267.631,466.922 265.086,466.485 263.339,464.857C258.694,460.528 253.264,455.468 248.931,451.43C246.901,449.538 245.748,446.889 245.748,444.114C245.748,441.34 246.901,438.69 248.931,436.798C253.264,432.76 258.694,427.7 263.339,423.371C265.086,421.743 267.631,421.307 269.821,422.259C272.01,423.211 273.426,425.371 273.426,427.759C273.426,427.761 273.426,427.763 273.426,427.764Z" style="fill:rgb(139,168,176);"/>
</g>
</g>
</g>
</svg>


</a>

</div>

<!--xsl:variable name="next" select="a[@id='fad_gallery_next']/@href"/>
<xsl:variable name="prev" select="a[@id='fad_gallery_previous']/@href"/-->




<figure class="{@class}" itemprop="image" itemscope="itemscope" itemtype="http://schema.org/ImageObject">

<div class="gallery_buttons">


<xsl:variable name="img_amount" select="meta[@name='max']/@content"/>

<xsl:if test="$current_number = $img_amount or $current_number &lt; $img_amount and $current_number != 1">

<a class="gallery_t next" href="{$next}">

<svg class="ranking" width="100%" height="100%" viewBox="0 0 173 173" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g transform="matrix(1,0,0,1,-1737,-1183)">
<g id="Artboard7" transform="matrix(1.48815,0,0,1.48815,-348.848,823.395)">
<rect x="1401.9" y="241.825" width="115.556" height="115.556" style="fill:none;"/>
<clipPath id="_clip1">
<rect x="1401.9" y="241.825" width="115.556" height="115.556"/>
</clipPath>
<g clip-path="url(#_clip1)">
<g>
<g transform="matrix(0.671977,-0,-0,0.671977,1401.64,241.646)">
<use xlink:href="#_Image2" x="0.377" y="1.267" width="171.964px" height="170.964px" transform="matrix(0.99979,0,0,0.99979,0,0)"/>
</g>
<g transform="matrix(0.809586,0,0,0.809586,-17.4047,-739.563)">
<circle cx="1824.65" cy="1284.51" r="66.328" style="fill:white;"/>
</g>
</g>
<g transform="matrix(0.471756,0.328287,-0.551635,0.79271,1318.41,-1312.08)">
<path class="path" d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(-0.471756,0.328287,0.551635,0.79271,1600.94,-1312.49)">
<path class="path" d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(0.770636,0,0,0.770636,55.3417,-693.264)">
<path class="path" d="M1817.3,1243.95C1817.75,1241.79 1819.91,1240.05 1822.48,1240.05C1825.04,1240.05 1827.2,1241.79 1827.65,1243.95C1828.63,1241.96 1831.16,1240.82 1833.64,1241.46C1836.12,1242.09 1837.79,1244.32 1837.69,1246.53C1839.13,1244.85 1841.86,1244.37 1844.11,1245.6C1846.35,1246.83 1847.41,1249.4 1846.77,1251.52C1848.58,1250.25 1851.35,1250.46 1853.21,1252.22C1855.08,1253.97 1855.47,1256.72 1854.32,1258.61C1856.39,1257.83 1859.02,1258.73 1860.39,1260.89C1861.76,1263.05 1861.45,1265.81 1859.87,1267.35C1862.07,1267.11 1864.39,1268.64 1865.18,1271.07C1865.97,1273.51 1864.99,1276.11 1863.07,1277.2C1865.26,1277.52 1867.13,1279.57 1867.29,1282.13C1867.45,1284.69 1865.85,1286.96 1863.72,1287.54C1865.76,1288.39 1867.06,1290.85 1866.58,1293.36C1866.1,1295.88 1863.99,1297.68 1861.78,1297.72C1863.54,1299.05 1864.2,1301.75 1863.11,1304.07C1862.01,1306.38 1859.52,1307.6 1857.37,1307.09C1858.75,1308.82 1858.71,1311.6 1857.07,1313.57C1855.44,1315.55 1852.72,1316.1 1850.76,1315.07C1851.67,1317.09 1850.94,1319.77 1848.87,1321.28C1846.8,1322.78 1844.02,1322.65 1842.38,1321.16C1842.76,1323.34 1841.39,1325.75 1839.01,1326.7C1836.62,1327.64 1833.97,1326.82 1832.75,1324.98C1832.58,1327.18 1830.65,1329.18 1828.1,1329.5C1825.56,1329.82 1823.19,1328.36 1822.48,1326.27C1821.76,1328.36 1819.39,1329.82 1816.85,1329.5C1814.31,1329.18 1812.38,1327.18 1812.2,1324.98C1810.98,1326.82 1808.33,1327.64 1805.95,1326.7C1803.56,1325.75 1802.19,1323.34 1802.57,1321.16C1800.93,1322.65 1798.15,1322.78 1796.08,1321.28C1794.01,1319.77 1793.28,1317.09 1794.19,1315.07C1792.23,1316.1 1789.51,1315.55 1787.88,1313.57C1786.24,1311.6 1786.2,1308.82 1787.58,1307.09C1785.43,1307.6 1782.94,1306.38 1781.85,1304.07C1780.76,1301.75 1781.41,1299.05 1783.17,1297.72C1780.96,1297.68 1778.85,1295.88 1778.37,1293.36C1777.89,1290.85 1779.19,1288.39 1781.23,1287.54C1779.1,1286.96 1777.5,1284.69 1777.66,1282.13C1777.82,1279.57 1779.69,1277.52 1781.88,1277.2C1779.96,1276.11 1778.98,1273.51 1779.77,1271.07C1780.56,1268.64 1782.89,1267.11 1785.08,1267.35C1783.5,1265.81 1783.19,1263.05 1784.56,1260.89C1785.94,1258.73 1788.57,1257.83 1790.63,1258.61C1789.48,1256.72 1789.87,1253.97 1791.74,1252.22C1793.61,1250.46 1796.38,1250.25 1798.18,1251.52C1797.54,1249.4 1798.6,1246.83 1800.84,1245.6C1803.09,1244.37 1805.83,1244.85 1807.26,1246.53C1807.16,1244.32 1808.83,1242.09 1811.31,1241.46C1813.79,1240.82 1816.32,1241.96 1817.3,1243.95ZM1823.36,1257.46C1838.44,1257.46 1850.69,1269.71 1850.69,1284.79C1850.69,1299.88 1838.44,1312.12 1823.36,1312.12C1808.28,1312.12 1796.03,1299.88 1796.03,1284.79C1796.03,1269.71 1808.28,1257.46 1823.36,1257.46Z" style="fill:rgb(139,168,176);"/>
<text dominant-baseline="middle"
alignment-baseline="middle" text-anchor="middle" x="1823px" y="1289px" style="font-family:'Oswald-Regular', 'Oswald';font-size:40px;fill:rgb(139,168,176);"><xsl:value-of select="$next_number"/></text>
</g>

</g>
</g>
</g>
<defs>
<image id="_Image2" width="172px" height="171px" xlink:href="data:image/png;base64,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"/>
</defs>
</svg>

<svg width="100%" height="100%" viewBox="0 0 530 534" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<path class="path" d="M134.715,119.511c-0,7.402 3.075,14.471 8.49,19.518c13.326,12.418 40.395,37.645 67.086,62.518c18.431,17.177 28.898,41.239 28.898,66.433c0,25.194 -10.467,49.256 -28.898,66.433c-26.691,24.873 -53.76,50.1 -67.086,62.518c-5.415,5.047 -8.49,12.116 -8.49,19.518c-0,0.016 -0,0.032 -0,0.048c-0,21.681 12.859,41.297 32.74,49.945c19.881,8.649 42.999,4.682 58.86,-10.099c42.182,-39.311 91.486,-85.257 130.838,-121.93c18.431,-17.177 28.898,-41.239 28.898,-66.433c0,-25.194 -10.467,-49.256 -28.898,-66.433c-39.352,-36.673 -88.656,-82.619 -130.838,-121.93c-15.861,-14.781 -38.979,-18.748 -58.86,-10.099c-19.881,8.648 -32.74,28.264 -32.74,49.945c-0,0.016 -0,0.032 -0,0.048Z" style="fill:#8ba8b0;"/>
</svg>

</a>

</xsl:if>


<xsl:if test="$current_number &lt; $max_number">

<a class="gallery_t last" href="{$prev}" style="display:block;">


<svg width="100%" height="100%" viewBox="0 0 530 530" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<rect id="Artboard4" x="0" y="0" width="529.167" height="529.167" style="fill:none;"/>
<path class="path" d="M386.051,115.903c0,7.402 -3.075,14.472 -8.49,19.518c-13.326,12.418 -40.395,37.645 -67.086,62.518c-18.431,17.177 -28.898,41.239 -28.898,66.433c-0,25.194 10.467,49.256 28.898,66.433c26.691,24.874 53.76,50.1 67.086,62.518c5.415,5.047 8.49,12.116 8.49,19.518c0,0.016 0,0.032 0,0.048c0,21.681 -12.858,41.297 -32.74,49.946c-19.881,8.648 -42.999,4.681 -58.86,-10.1c-42.182,-39.31 -91.486,-85.257 -130.838,-121.93c-18.431,-17.177 -28.898,-41.239 -28.898,-66.433c-0,-25.194 10.467,-49.256 28.898,-66.433c39.352,-36.673 88.656,-82.619 130.838,-121.93c15.861,-14.781 38.979,-18.748 58.86,-10.099c19.882,8.648 32.74,28.264 32.74,49.945c0,0.016 0,0.032 0,0.048Z" style="fill:#8ba8b0;"/>
</svg>

<svg class="ranking prev" width="100%" height="100%" viewBox="0 0 173 173" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g transform="matrix(1,0,0,1,-1737,-1183)">
<g id="Artboard7" transform="matrix(1.48815,0,0,1.48815,-348.848,823.395)">
<rect x="1401.9" y="241.825" width="115.556" height="115.556" style="fill:none;"/>
<clipPath id="_clip1">
<rect x="1401.9" y="241.825" width="115.556" height="115.556"/>
</clipPath>
<g clip-path="url(#_clip1)">
<g>
<g transform="matrix(0.671977,-0,-0,0.671977,1401.64,241.646)">
<use xlink:href="#_Image2" x="0.377" y="1.267" width="171.964px" height="170.964px" transform="matrix(0.99979,0,0,0.99979,0,0)"/>
</g>
<g transform="matrix(0.809586,0,0,0.809586,-17.4047,-739.563)">
<circle cx="1824.65" cy="1284.51" r="66.328" style="fill:white;"/>
</g>
</g>
<g transform="matrix(0.471756,0.328287,-0.551635,0.79271,1318.41,-1312.08)">
<path class="path" d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(-0.471756,0.328287,0.551635,0.79271,1600.94,-1312.49)">
<path class="path" d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(0.770636,0,0,0.770636,55.3417,-693.264)">
<path class="path" d="M1817.3,1243.95C1817.75,1241.79 1819.91,1240.05 1822.48,1240.05C1825.04,1240.05 1827.2,1241.79 1827.65,1243.95C1828.63,1241.96 1831.16,1240.82 1833.64,1241.46C1836.12,1242.09 1837.79,1244.32 1837.69,1246.53C1839.13,1244.85 1841.86,1244.37 1844.11,1245.6C1846.35,1246.83 1847.41,1249.4 1846.77,1251.52C1848.58,1250.25 1851.35,1250.46 1853.21,1252.22C1855.08,1253.97 1855.47,1256.72 1854.32,1258.61C1856.39,1257.83 1859.02,1258.73 1860.39,1260.89C1861.76,1263.05 1861.45,1265.81 1859.87,1267.35C1862.07,1267.11 1864.39,1268.64 1865.18,1271.07C1865.97,1273.51 1864.99,1276.11 1863.07,1277.2C1865.26,1277.52 1867.13,1279.57 1867.29,1282.13C1867.45,1284.69 1865.85,1286.96 1863.72,1287.54C1865.76,1288.39 1867.06,1290.85 1866.58,1293.36C1866.1,1295.88 1863.99,1297.68 1861.78,1297.72C1863.54,1299.05 1864.2,1301.75 1863.11,1304.07C1862.01,1306.38 1859.52,1307.6 1857.37,1307.09C1858.75,1308.82 1858.71,1311.6 1857.07,1313.57C1855.44,1315.55 1852.72,1316.1 1850.76,1315.07C1851.67,1317.09 1850.94,1319.77 1848.87,1321.28C1846.8,1322.78 1844.02,1322.65 1842.38,1321.16C1842.76,1323.34 1841.39,1325.75 1839.01,1326.7C1836.62,1327.64 1833.97,1326.82 1832.75,1324.98C1832.58,1327.18 1830.65,1329.18 1828.1,1329.5C1825.56,1329.82 1823.19,1328.36 1822.48,1326.27C1821.76,1328.36 1819.39,1329.82 1816.85,1329.5C1814.31,1329.18 1812.38,1327.18 1812.2,1324.98C1810.98,1326.82 1808.33,1327.64 1805.95,1326.7C1803.56,1325.75 1802.19,1323.34 1802.57,1321.16C1800.93,1322.65 1798.15,1322.78 1796.08,1321.28C1794.01,1319.77 1793.28,1317.09 1794.19,1315.07C1792.23,1316.1 1789.51,1315.55 1787.88,1313.57C1786.24,1311.6 1786.2,1308.82 1787.58,1307.09C1785.43,1307.6 1782.94,1306.38 1781.85,1304.07C1780.76,1301.75 1781.41,1299.05 1783.17,1297.72C1780.96,1297.68 1778.85,1295.88 1778.37,1293.36C1777.89,1290.85 1779.19,1288.39 1781.23,1287.54C1779.1,1286.96 1777.5,1284.69 1777.66,1282.13C1777.82,1279.57 1779.69,1277.52 1781.88,1277.2C1779.96,1276.11 1778.98,1273.51 1779.77,1271.07C1780.56,1268.64 1782.89,1267.11 1785.08,1267.35C1783.5,1265.81 1783.19,1263.05 1784.56,1260.89C1785.94,1258.73 1788.57,1257.83 1790.63,1258.61C1789.48,1256.72 1789.87,1253.97 1791.74,1252.22C1793.61,1250.46 1796.38,1250.25 1798.18,1251.52C1797.54,1249.4 1798.6,1246.83 1800.84,1245.6C1803.09,1244.37 1805.83,1244.85 1807.26,1246.53C1807.16,1244.32 1808.83,1242.09 1811.31,1241.46C1813.79,1240.82 1816.32,1241.96 1817.3,1243.95ZM1823.36,1257.46C1838.44,1257.46 1850.69,1269.71 1850.69,1284.79C1850.69,1299.88 1838.44,1312.12 1823.36,1312.12C1808.28,1312.12 1796.03,1299.88 1796.03,1284.79C1796.03,1269.71 1808.28,1257.46 1823.36,1257.46Z" style="fill:rgb(139,168,176);"/>
<text alignment-baseline="middle" text-anchor="middle" x="1823px" y="1289" style="font-family:'Oswald-Regular', 'Oswald';font-size:40px;fill:rgb(139,168,176);"><xsl:value-of select="$prev_number"/></text>
</g>

</g>
</g>
</g>
<defs>
<image id="_Image2" width="172px" height="171px" xlink:href="data:image/png;base64,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"/>
</defs>
</svg>


</a>

</xsl:if>



</div>


<div class="{@class}_container">

<xsl:variable name="img_amount" select="count(/content/metadata/imagemeta/image[media/gallery='t'])"/>

<!--p class="img_amount" style="float:left;"><xsl:value-of select="$current_number"/-->

<svg class="ranking" width="100%" height="100%" viewBox="0 0 173 173" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g transform="matrix(1,0,0,1,-1737,-1183)">
<g id="Artboard7" transform="matrix(1.48815,0,0,1.48815,-348.848,823.395)">
<rect x="1401.9" y="241.825" width="115.556" height="115.556" style="fill:none;"/>
<clipPath id="_clip1">
<rect x="1401.9" y="241.825" width="115.556" height="115.556"/>
</clipPath>
<g clip-path="url(#_clip1)">
<g>
<g transform="matrix(0.671977,-0,-0,0.671977,1401.64,241.646)">
<use xlink:href="#_Image2" x="0.377" y="1.267" width="171.964px" height="170.964px" transform="matrix(0.99979,0,0,0.99979,0,0)"/>
</g>
<g transform="matrix(0.809586,0,0,0.809586,-17.4047,-739.563)">
<circle cx="1824.65" cy="1284.51" r="66.328" style="fill:white;"/>
</g>
</g>
<g transform="matrix(0.471756,0.328287,-0.551635,0.79271,1318.41,-1312.08)">
<path d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(-0.471756,0.328287,0.551635,0.79271,1600.94,-1312.49)">
<path d="M1782.49,1333.45C1781.86,1333.82 1780.93,1333.92 1780.12,1333.71C1779.32,1333.51 1778.8,1333.03 1778.81,1332.51C1778.97,1325.73 1779.33,1310.21 1779.33,1310.21L1792.9,1311.09L1807.27,1311.93C1807.27,1311.93 1807.15,1326.2 1807.09,1332.59C1807.09,1333.11 1806.56,1333.57 1805.76,1333.77C1804.96,1333.97 1804.03,1333.87 1803.41,1333.51C1800.49,1331.82 1796.54,1329.54 1794.41,1328.32C1793.57,1327.83 1792.23,1327.83 1791.39,1328.32C1789.29,1329.53 1785.4,1331.77 1782.49,1333.45Z" style="fill:rgb(139,168,176);"/>
</g>
<g transform="matrix(0.770636,0,0,0.770636,55.3417,-693.264)">
<path d="M1817.3,1243.95C1817.75,1241.79 1819.91,1240.05 1822.48,1240.05C1825.04,1240.05 1827.2,1241.79 1827.65,1243.95C1828.63,1241.96 1831.16,1240.82 1833.64,1241.46C1836.12,1242.09 1837.79,1244.32 1837.69,1246.53C1839.13,1244.85 1841.86,1244.37 1844.11,1245.6C1846.35,1246.83 1847.41,1249.4 1846.77,1251.52C1848.58,1250.25 1851.35,1250.46 1853.21,1252.22C1855.08,1253.97 1855.47,1256.72 1854.32,1258.61C1856.39,1257.83 1859.02,1258.73 1860.39,1260.89C1861.76,1263.05 1861.45,1265.81 1859.87,1267.35C1862.07,1267.11 1864.39,1268.64 1865.18,1271.07C1865.97,1273.51 1864.99,1276.11 1863.07,1277.2C1865.26,1277.52 1867.13,1279.57 1867.29,1282.13C1867.45,1284.69 1865.85,1286.96 1863.72,1287.54C1865.76,1288.39 1867.06,1290.85 1866.58,1293.36C1866.1,1295.88 1863.99,1297.68 1861.78,1297.72C1863.54,1299.05 1864.2,1301.75 1863.11,1304.07C1862.01,1306.38 1859.52,1307.6 1857.37,1307.09C1858.75,1308.82 1858.71,1311.6 1857.07,1313.57C1855.44,1315.55 1852.72,1316.1 1850.76,1315.07C1851.67,1317.09 1850.94,1319.77 1848.87,1321.28C1846.8,1322.78 1844.02,1322.65 1842.38,1321.16C1842.76,1323.34 1841.39,1325.75 1839.01,1326.7C1836.62,1327.64 1833.97,1326.82 1832.75,1324.98C1832.58,1327.18 1830.65,1329.18 1828.1,1329.5C1825.56,1329.82 1823.19,1328.36 1822.48,1326.27C1821.76,1328.36 1819.39,1329.82 1816.85,1329.5C1814.31,1329.18 1812.38,1327.18 1812.2,1324.98C1810.98,1326.82 1808.33,1327.64 1805.95,1326.7C1803.56,1325.75 1802.19,1323.34 1802.57,1321.16C1800.93,1322.65 1798.15,1322.78 1796.08,1321.28C1794.01,1319.77 1793.28,1317.09 1794.19,1315.07C1792.23,1316.1 1789.51,1315.55 1787.88,1313.57C1786.24,1311.6 1786.2,1308.82 1787.58,1307.09C1785.43,1307.6 1782.94,1306.38 1781.85,1304.07C1780.76,1301.75 1781.41,1299.05 1783.17,1297.72C1780.96,1297.68 1778.85,1295.88 1778.37,1293.36C1777.89,1290.85 1779.19,1288.39 1781.23,1287.54C1779.1,1286.96 1777.5,1284.69 1777.66,1282.13C1777.82,1279.57 1779.69,1277.52 1781.88,1277.2C1779.96,1276.11 1778.98,1273.51 1779.77,1271.07C1780.56,1268.64 1782.89,1267.11 1785.08,1267.35C1783.5,1265.81 1783.19,1263.05 1784.56,1260.89C1785.94,1258.73 1788.57,1257.83 1790.63,1258.61C1789.48,1256.72 1789.87,1253.97 1791.74,1252.22C1793.61,1250.46 1796.38,1250.25 1798.18,1251.52C1797.54,1249.4 1798.6,1246.83 1800.84,1245.6C1803.09,1244.37 1805.83,1244.85 1807.26,1246.53C1807.16,1244.32 1808.83,1242.09 1811.31,1241.46C1813.79,1240.82 1816.32,1241.96 1817.3,1243.95ZM1823.36,1257.46C1838.44,1257.46 1850.69,1269.71 1850.69,1284.79C1850.69,1299.88 1838.44,1312.12 1823.36,1312.12C1808.28,1312.12 1796.03,1299.88 1796.03,1284.79C1796.03,1269.71 1808.28,1257.46 1823.36,1257.46Z" style="fill:rgb(139,168,176);"/>
<text alignment-baseline="middle" text-anchor="middle" x="1823px" y="1289" style="font-family:'Oswald-Regular', 'Oswald';font-size:40px;fill:rgb(139,168,176);"><xsl:value-of select="$current_number"/></text>
</g>
</g>
</g>
</g>
<defs>
<image id="_Image2" width="172px" height="171px" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKwAAACrCAYAAAD7NHdgAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAOFElEQVR4nO2d63bqOAxGVXrm/V/4QOfHjKkQny52nCvfXisrIRA7pbuKrJjyJSTja8O+fjbs65Rs+cs4A9n7scb7lUlKiRWfLqz389v9X8Fz3vEV0exrssfevo/h04RFP68nI9qORK7iSfnjvMbbjvZdlk8QNpJ06dpr3wPJN7q22+jx5biqsJmkSEC7nb0e9eO9n1VRo+3s9V5/l+JqwnoCeUJ6+6LX2Ha9vjWZsEhOvf8RvAa14fV9eq4ibJRvZjK25ZY8L2Ab9e/hSRvJapdH8jxqE/V/Ws4urCdqVUxvezTKZvRGVySqlbYqsT2HU3JWYa2onqxWyJvZP0NYu42IKgOjwmbrKPKiczoFZxO2IiqS0sraK6wEa3RumqgU5UXcSFq0foDHSHaRk4t7FmGzS38kKZIVCdse27Ztn+icon2RsHrbqwp4KQAStiqvyEnFPbqwPaJWFi8dqEZVu+2dqyYSoSJu20biZtIiib2oWznf3TmysOjy3yPqt/TJKmAbnUu0r8qSqNsTae/O/ijX9c7vEBxR2EjUSFIraHtciaoC1na799w1PQL0iutJa2WN5D2NuEcT1pMVRdRvZx2lAVFEtf1H57YGnhxWIE/eSqS9g30o1xWwPgRHEhblqFo2LeSorAK2o3PZm6zCYLdRmmAlRfJGETc6l805wi8miqrosv8Ntj1Zs4iKzuGoVOSNIq4W1UqL5D2ktH927t9GOhsVkZzfEsua5ai277Ogz/cH7PuSV8m+1Lq9N3e1/VD7vtS6LSjatjZ3Y09hoxTAXu7RUhH17JJ6WHn1e2kjoxa3iahF1e/73exv0db2tZu0ewmLZEWXfiSpXmcjf9vfFWk/mxZUi3uT10jbJLTvuRb1Lq/vGZJW97kZWwuL8lXv8p8J++miWjJx9WVdR1DvynQ37dgBnaj2N2NLYa2stlQViWrTAG/0j/r6NCriIkG99KqJK/KbTrSIu3mKsJWwUb6qI+cf+ZXzj/hR9SYUNQOJ29ZI2ija6jThYdrdVNothK3mq1rW9jhLAWwf5B0trn2fsvkU0fu8y2BsbWEjWZuITVQbXb3bq7ZdUsOKq9MEkVc5Uapl0wORHaRdU9hMVhtZbYT1cirbPulDS9Xew5u8ioYGx2hQK7KxtGsJW5HViopyVvRmUdTleGlCVs/23vvNpF1D2F5Zvchq0wARyjobOwCzKYJeo2M1m0g7W1h0KUGyoujq3QxAbZN5ZClCz7hhdWnXTAkqsuro6uWrFHV9ohShFyvtVL4ntqUF88pWlPXYoPfdi7DZ7wZN0FnMLGGtrF+Cy1Z6oazHZIa0NlJP+13OENYOsrzISlnPQ4+0migFmPI7XZrDerJ6tVavGkBZj4euIDSW5LRTBmFLI6weVTZhK5EV1Vl1e+QYVCItYrXPgy0RNhpkIVltKkBZz0EkrX0cfZxmyiBsNCVANwfaQMsuzFnPTyU9QB+K1M/Z0tlQ9B2NsJGoLZr+I/kgS4SynoXe35eV1muvi5EIay8N2VRB77NXwydNdsNGWi/K6k8mTP0QY2+ERVWBaJClJ7RoYXVb5Fz0/P6yf8rR7cCIsFkqEA2ybqodcl5s4PKY/j8NeoRFVYHe2VfZD0jOg1cp0KAIa/d1+dArbG8qYEtY3SdIDk+1Hotk7aY66LIDLe82LMtXn4UdhOm070f+c8H+2yQkb3kwVomw3kALTWqx4tqcl1wPNMcA5a5ejda2E9IjrJ6FVZ0yyOhKGl56INKRImTCRrdfKx8gpKyfQfZ79spb3WWuqrCjsjIV+BxGpO0efEXC9pSxeIOARHiydpe5KvMb0aDL/kcW3nolItiVzJmugbkXYW3HaPYVJ7YQRJQSeBG2XJ/NIqy13/tLQbddKetn47njXZUFrN+IhPVSASQtbxAQTTSjD8mKrs4QJCy6q1Xp0B5LSHSF9tJIfewbWYRFiXM2wKK0RKQvypYHX1ZYmwZEEVbLzHor8chSy65KgRdhoztcXkf6OEJE8NW3Kq4+7kmUw9rGbUdd9TPy0SypGLyghY0GW7YTykp6iYLfcA6rG47+IlDDFJcgKoEQjYdgpPUGXahx1Mlbg4Q4RKkmklYf8wTVT71cFf0FUFZSAQ2+qmXSF6IqQZTH2gYpLqmCgl60iFrDlCDKYVnGIkvoGR/pY56gKkEmKqUlI1hPeiLsk5tgm8shmpABrGdZlH2SRVimA2Q2SNZyHhvlsJV0gJARkIyRX2+DrkoqEDZESAHkTzXCikgtJWAqQNbAjp2QvG9Uy1qUlszEq0jZfbBKIOBJ5qxkC6qlrafg1QhrnxOhxGQM5I/n2BvRfFjbAAUla9A1drKzrhhNyZZ4surnXrazspZ7ICGTQK65gbLyqVmvUUKW4NX0w6u7rcOifJWCkq1I3atGWEJmEqWgAh4/iT7TZR8zLSBrk7oX3QpjhCV7UY6wjKBkL0rOZTcOCNkCVI2CRIMu2xghW9NVJQgPJGQPqsISsiVdZS1CDktV2ClfHU5IEfc7vBhhyZF5k7YiLKMr2ZLQNyTs0FcqErKA4e/pGvqGZUImYH1zc1j0deD2oO5vrCNkkNCzKCWgnGQtPLe8oPn0MUoJvAYImQkKkKWyVvbFtfZ1hMwmdc2LsOhAikpmEgVINyW9gZ1eQ28HE7KQLGeFEXbIdEIm4rn25p53p8vazfosWYssQL6sb8FBUbQVobhkjKi2nw340zosKwVkC7JU9LmNqgR6eQQNETLK8LjJ1mGR2VZaQmYwrayVNcLKARllsWdehGUeS9YEufVQi+vdze4AjZRGb4QU8WQtBcjo1iwy/yGUlYzRmw6gY8LJL1F0ZR5LRolSATTAh4OukcaYGpBeRoPik94qge4AnQghiB+zHQVFlHbCKgFqDI3eWJclo0SBMKwONLJbs1pSpgVkCSgdyJwqDbr0Y09aHbY5+CIRo+lAadAVNeolym+NEmKoippetbP5sFEeiwZgFJdoUHT1rthDOazXgdc4B2CkQiW9LFWfogirO9Kd3JOOKC4RwQ5lAXAoJajKWvkLIaQiq5divhH998KRvwx9LPlcoqDXAt/QlfpPoePW2Zfp8Pb/0p77Up3wOxGIyFgqMBRhvdoZoyzJqETX7Has604lwrb1Q/4T/G7WjLLEkqWTKB0QKQS5LIe1J4A6bNuMsiQri9rctVva7+QE0FeBt++ntevoS5QZba9PVl36K7/CWnH18SGZsCLvAuolklbAmlwfFFmbrH/V9lBKUBXWblel5VfWfwY2ujYRdTTVskZpZEhFWJE4anqSMtJ+Bt4drSaljq6o/mrbCekRVm9Hi4209jhyTWzuqiOrXi+6O1oVVqQWWaO0gFH2eqBUQMuKBluLpqeOCIv2ZVGXqcH18KoCd3mvDNjoatOBMj3CivgDsLbukZXSnhcvslbKWMPRVaRfWJH6AOwG9qE2yHnxaq5ZKqCP72JUWLQPRdUbeI2ANTkPUXSNZJ0yDXVEWJF6alB9TM6BnVtiKwJIWPQJFd1WF6PCiuDLvN7v5bHeNjk2lVuv6ObAcM0VsVTY6DlWDq5DpXzlLVM/kbJEWJE4NYhez8rBeeiRNbr1uigVaCwVVgRLqx9nNw8o7XGplq9sKjA8uSVjprBIVu/1Uf4bHUu2I6sGoDrrqrKKzBFWJL4L1razWiylPQ6V0lU00EKpwBRmCStSy13RdpYHU9ztqH5i4K/UqgJTo6vIXGFF6nJVIjJak/WwsuraKZobEH2CYBVZReYLK9IvbXbLltKujzen1bsp4A2yplYEEGsIK9J/Se+NuGQe0Q0Bb16rJ+viO1kZawkrsiwPZV67PihftSkA+sTAbrKKrCusSCyZd6suk5HRdjlWLJuvRp8Y2E1WkfWFFZkXGaNKA6kRRdUfeZ18HQk7dUJLD1sLi7A/JPqho5sQ1X4+GXQ104Mk73ZrVAlYtRrgsYWwDSSU90NmErOSUCeLqlVZ22v0sZvKKrKtsCKxUEhS9GYz2tbwRB2ZxBJNwt5MVpHthRXxZfLeAE/cSvufKO6IqJU7V7vLKrKPsCL9eW22v7UZVRuuLG/0R+5d/rP5rJ6ou8kqsp+wIr8CefkqKmij16D8Nsp5ryRuRVTvoyxRVEUlK68MuSl7CiuS57RROjAahav9H5XoD9xe9pGo0VyAtlhRDyGryP7CNrQ4XiT11kjiisxnkrfnKhTlqVZW/Q8uvKmBu6YAlqMIK1KPtpm8aNu2Zfdncxm2pPLHhn5WLz/9Kziy2gh72KiqOZKwIvWyF5LXizYC1rbNKOftOcdeIhGinD2T1CtTZXNXDy2ryPGEbVQGZJ6Y2SJgG7XvndMa9Pyc9n5/FlWjGwHRpwMOJWrjyHmbN2OrLfofKXvLt/M6245t2+vfbmfnnf3SPUG8HN0KZgdXSGYbSb3R/+FlFTm2sA1vgreWNhPXSouORcJWpzZW3kckQSSp3taCVmRFiz7Oth2d46E4g7CN6EONSD5PViSvPdb2MXsyuRfVvMEUkhZFTvT4EqI2ziRsI4q4SFokMXoORVov4oqMidsbUSuR1dvnXfa9fPkUnFFYkXi2FloiOXuFHZV2lqwo0nrR+DKiNs4qrCYanOltT0YvLdhS2KwqED32Lvco7UCPT8UVhG1EIkXytSpBT3StDsYanqxtXYm0mZyoXe8cTsuVhG1E6UJbRwOrLH9F4nr9R5UBT7KKwNHxqK/LcEVhNRV527q6D629/kR8iWzUrYiMjo/+KC7H1YVtZJGwcqnvkTQiSg/Qvug1XruX5VOEtVQFRq9dImx2yfak9GT8CEk1/wLuiReCjKk4eQAAAABJRU5ErkJggg=="/>
</defs>
</svg>

<xsl:if test="/content/metadata/modgroups/modgroup/module[@publishtype='mod_adbooks']">
<a class="basket_icon" data-scrollto="amazone_container" style="display:inline-block;">
<img class="comment" src="/skins/lesering-two/img/basket.svg"/>
</a>
</xsl:if>


<div class="{@class}_img">
<xsl:apply-templates select="img" mode="lazy_img"/>
<xsl:if test="$metai/src!=''">
<xsl:choose>
<xsl:when test="starts-with($metai/src, 'http://') or starts-with($metai/src ,'https://')">
<span class="image-meta-source">
<a class="image-meta-source-link" href="{$metai/src}" title="{$metai/src}" target="_blank">
<xsl:value-of select="substring-after($metai/src, '://')"/>
</a>
</span>
</xsl:when>
<xsl:when test="starts-with($metai/src, 'www.')">
<span class="image-meta-source">
<a class="image-meta-source-link" href="{$metai/src}" title="{$metai/src}" target="_blank">
<xsl:value-of select="$metai/src"/>
</a>
</span>
</xsl:when>
<xsl:otherwise>
<span class="image-meta-source">
<xsl:value-of select="$metai/src"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</div>



</div>


</figure>

</div>

<figcaption class="image-meta">

<xsl:if test="$metai/title!=''">
<h2 class="image-meta-title"><xsl:value-of select="$metai/title"/></h2>
</xsl:if>

<xsl:if test="$metai/description!=''">
<span class="image-meta-description">
<xsl:value-of select="$metai/description"/>
</span>
</xsl:if>

</figcaption>

</xsl:template>

<xsl:template name="magazine_header">
<div id="magazine_header">
<div class="sticky_nav">

<div class="toggle">

<div class="stroke_container">
<div class="stroke"/>
</div>

<div class="toggle_menu">
<!--xsl:call-template name="render_place">
<xsl:with-param name="place" select="'navigation_assets'"/>
</xsl:call-template-->
<div class="menu_container">

<div class="top_bar">
<span>Menü</span>
<div class="stroke_container close">
<div class="stroke"/>
</div>
</div>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'navigation_menu'"/>
</xsl:call-template>
<!--xsl:call-template name="render_place">
<xsl:with-param name="place" select="'navigation_ad'"/>
</xsl:call-template-->
</div>
</div>
</div>
<xsl:call-template name="navigation_header"/>
</div>
</div>
</xsl:template>

<xsl:template name="news">

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'head-top'"/>
</xsl:call-template>

<div id="magazine-content-container" class="clear layout_{$metadata/layout}">

<div>
<xsl:copy-of select="/content/text/div/@*"/>
<xsl:variable name="id">
<xsl:choose>
<xsl:when test="document('ibs:/get,id')/get > 0">
<xsl:value-of select="document('ibs:/get,id')/get"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="meta" select="php:function('cms_blog_Interface::getMeta',string($id))/metadata"/>
<meta itemprop="mainEntityOfPage" content="{$domain}id/{$metadata/nr}/{$metadata/alias}/"/>

<div class="magazine_head" style="grid-area:header;">

<div class="magazine_head_wrapper">

<xsl:if test="$layout='concept'">

<div class="bg_container concept">

<xsl:copy-of select="/content/text/*/*[@class='fad_news_caption']"/>


<div class="key_data">
<div class="key-data-container">
<xsl:copy-of select="/content/text/*/*[@class='topic']"/>
<xsl:copy-of select="/content/text/*/*[@class='date']"/>
<xsl:copy-of select="/content/text/*/*[@class='author']"/>
<xsl:if test="/content/text/*/*[@class='chapter']">
<xsl:call-template name="chapter_teaser"/>
</xsl:if>
</div>
</div>

<xsl:call-template name="news_img"/>

</div>

</xsl:if>

<div class="header_section">
<xsl:copy-of select="/content/text/*/*[@class='topic']"/>

<xsl:copy-of select="/content/text/*/*[@class='fad_news_caption']"/>

<!--div id="audio_player_check" class="speaker_icon" style="display:inline-block;" onclick="$('#audio_player').get(0).play(); ">
</div-->

<audio src="index.speak" type="audio/mp3" id="audio_player" preload="auto"></audio>

<div class="audio_buttons">
<span class="button play" onclick="playAudio()" type="button" id="button_play"><span>Vorlesen</span>
<img class="speaker_icon" src="/skins/lesering-two/img/readout-icon.svg"/>
</span>
<span class="button pause" onclick="pauseAudio()" type="button" id="button_pause" style="display:none;"><span>Pausieren</span>
<span class="pause_animation">
<span></span>
<span></span>
<style>.pause_animation::before{content:""}</style>
<style>.pause_animation::after{content:""}</style>
</span>

</span>
</div>


<script>
var x = document.getElementById("audio_player");
var play = document.getElementById("button_play");
var pause = document.getElementById("button_pause");

function playAudio() {
x.play();

if (pause.style.display === "none") {
pause.style.display = "flex";
play.style.display = "none";
}

}

function pauseAudio() {
x.pause();

if (play.style.display === "none") {
play.style.display = "flex";
pause.style.display = "none";

}

}
</script>

<div class="key_data">

<div class="key-data-container">

<xsl:copy-of select="/content/text/*/*[@class='author']"/>


<xsl:apply-templates select="/content/text/*/div[@class='date']"/>

<xsl:if test="/content/text/*/*[@class='chapter']">
<xsl:call-template name="chapter_teaser"/>
</xsl:if>
</div>
</div>

<xsl:if test="/content/text/*/*[@class='chapter']">

<div class="news_nav">

<input type="checkbox" id="nav" class="nav_hamburger"/>

<label for="nav">

<span style="float:left;">Inhaltsverzeichnis</span>

<svg width="100%" height="100%" viewBox="0 0 116 116" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="padding: 2px;margin-left:.5em;height:25px;width:auto;float:left;fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;">
<g transform="matrix(1,0,0,1,-4507,-2953)">
<g id="Artboard7" transform="matrix(1,0,0,1,3105.42,2711.2)">
<g transform="matrix(-1,-1.22465e-16,6.70425e-17,-0.547444,6021.76,1950.95)">
<path d="M4517.08,3061.48L4562.09,2971.46L4607.1,3061.48" style="fill:none;stroke:rgb(139,168,176);stroke-width:9.3px;"/>
</g>
</g>
</g>
</svg>
</label>


<div class="navigation_news_container">
<ul class="navigation_news">
<xsl:copy-of select="/content/text/*/*[@class='chapter']/div[@class='chapter_list']/ul/li"/>
</ul>
</div>

</div>

</xsl:if>
</div>



<xsl:if test="$layout='news' or $layout='top-news'">

<div class="head_p" itemprop="articleBody">
<xsl:apply-templates select="/content/text/*/*[@class='post_content']/*/p[position()=1]"/>
</div>

</xsl:if>
</div>
</div>

<div class="top-img_wrapper" style=" grid-area:top-img">
<xsl:call-template name="news_img"/>
</div>

<div class="sidebar_wrapper" style="grid-area:sidebar;">
<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'sidebar_news_ad'"/>
</xsl:call-template>
</div>

<div class="news_content_wrapper" style="grid-area:text;">

<div class="">
<xsl:copy-of select="/content/text/*/*[@class='post_content']/@*"/>
<xsl:copy-of select="/content/text/*/*[contains(@class,'vgwort')]"/>

<xsl:choose>

<xsl:when test="/content/text/*/*[@class='chapter']">

<xsl:apply-templates select="/content/text/*/*[@class='post_content']/*/p[position()=1]"/>

<xsl:apply-templates select="/content/text/*/*[@class='post_content']/*" mode="news-reader"/>

<xsl:variable name="total_pages">
<xsl:value-of select="count(/content/text/*/*[@class='chapter']/div[@class='chapter_list']/ul/li)"/>
</xsl:variable>

<xsl:variable name="current_page">
<xsl:value-of select="/content/text/*/h1[@class='fad_news_caption']/span[@class='chapter_title']/@data-chapter"/>
</xsl:variable>

<xsl:if test="/content/text/*/*[@class='chapter']">
<xsl:call-template name="navigation_chapter"/>
</xsl:if>

</xsl:when>

<xsl:otherwise>


<xsl:if test="$layout!='news' and $layout!='top-news'">
<xsl:apply-templates select="/content/text/*/*[@class='post_content']/*/p[position()=1]" mode="news-reader"/>
</xsl:if>


<xsl:apply-templates select="/content/text/*/*[@class='post_content']/*" mode="news-reader"/>


</xsl:otherwise>

</xsl:choose>

<div itemscope="itemscope" itemprop="publisher" itemtype='http://schema.org/Organization'>
<a itemprop="url" href="/">
<meta itemprop="name" content="Lesering.de"/>
<span itemprop="logo" itemscope="itemscope" itemtype="http://schema.org/ImageObject">
<meta itemprop="url" content="https://www.lesering.de/logo.svg"/>
<meta itemprop="width" content="300"/>
<meta itemprop="height" content="300"/>
</span>
</a>
</div>

</div>

</div>

</div>
</div>

<div class="magazine_bottom_content">
<xsl:copy-of select="/content/text/*/*[@class='tags']"/>
<xsl:if test="$layout='news_freetext'">

<xsl:variable name="free_instagram" select="/content/metadata/skin.instagram_link"/>
<xsl:variable name="free_facebook" select="/content/metadata/skin.facebook_link"/>

<div class="bottom_text_container">

<xsl:if test="$free_instagram or $free_facebook">

<div class="header_social">

<div class="social_links">

<xsl:call-template name="freeauthor_header"/>
<xsl:if test="$free_instagram">

<a href="{$free_instagram}">
<img src="/skins/lesering-two/img/instagram_freetext.svg"></img>
</a>
</xsl:if>

<xsl:if test="$free_facebook">
<a href="{$free_facebook}">
<img src="/skins/lesering-two/img/facebook_freetext.svg"></img>
</a>

</xsl:if>

</div>

</div>

</xsl:if>

</div>

</xsl:if>

<xsl:call-template name="render_place">
<xsl:with-param name="place" select="'bottom'"/>
</xsl:call-template>

</div>

</xsl:template>

<xsl:template match="div[@class='date']">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:copy-of select="meta"/>
<a href="{a/@href}" title="Weitere Beiträge vom Tag"><xsl:value-of select="php:function('system_util_DateTime::format',string($metadata/created),'j.m.Y')"/></a>
</xsl:copy>
</xsl:template>

<xsl:template match="img" mode="primaryImageOfPage">
<xsl:variable name="alt" select="@alt"/>
<xsl:variable name="image" select="/content/metadata/imagemeta/image[concat('cms.',@id)=$alt]"/>

<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"@id":"<xsl:value-of select="php:function('web_Session::getPageUrl')"/>",
"name" : "<xsl:value-of select="translate($metadata/title,'&quot;','')"/>",
"primaryImageOfPage": {
"@type": "ImageObject",
"image" : {
"author": "<xsl:value-of select="translate($image/media/src,'&quot;','')"/>",
"contentUrl": "<xsl:value-of select="concat('/',$image/@url,'.',$image/@imgtype)"/>",
"datePublished": "<xsl:value-of select="$image/media/upload"/>",
"description": "<xsl:value-of select="translate($image/media/description,'&quot;\','')"/>",
"name": "<xsl:value-of select="translate($image/media/title,'&quot;\','')"/>"
}
}
}
</script>
</xsl:template>

</xsl:stylesheet>
";s:5:"/lib2";s:124209:"<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:php="http://php.net/xsl"
xmlns:inveda="http://www.inveda.de"
xmlns:fad="http://www.fad-server.org"
xmlns:fb="http://www.facebook.com/2008/fbml"
xmlns:exslt="http://exslt.org/common"
xmlns:str="http://exslt.org/strings"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="php inveda exslt str xs fb fad xlink">


<xsl:variable name="d_document" select="/*"/>
<xsl:variable name="d_page" select="php:function('web_Session::getPage')"/>
<xsl:variable name="d_page_para" select="php:function('web_Session::getPageParams')"/>
<xsl:variable name="d_request_type" select="php:function('web_Session::getRequestType')"/>
<xsl:variable name="d_ajax_window" select="content/@ajax_window"/>
<xsl:variable name="d_phpsessid" select="document('ibs:/phpsessid')/result/@value"/>
<xsl:variable name="d_phpsessname" select="php:function('session_name')"/>
<xsl:variable name="d_sessionid">
<xsl:if test="$d_phpsessid != ''">
<xsl:value-of select="concat('&amp;',$d_phpsessname,'=',$d_phpsessid)"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="ajax_params">
<xsl:if test="($d_ajax_window = 'true' or $d_ajax_window = 'yes' or $d_request_type='ajax') and $d_page_para != ''">
<xsl:value-of select="concat('/',$d_page_para,'/')"/>
</xsl:if>
</xsl:variable>

<xsl:variable name="inveda:definitions">
<table>
<datatable>
<step>
<item step="1" caption="1"/>
<item step="5" caption="5"/>
<item step="10" caption="10"/>
<item step="25" caption="25"/>
<item step="50" caption="50"/>
<item step="-1" caption="alle"/>
</step>
</datatable>
</table>

<actions>
<action type="view" icon="view" title="Eintrag ansehen">ansehen</action>
<action type="details" icon="details" title="Datensatzänderungen" ajax="true" page="/system.datalogviewer.details">Datensatzänderungen</action>
<action type="edit" icon="update" title="Eintrag bearbeiten">bearbeiten</action>
<action type="copy" icon="copy" title="Eintrag als Vorlage übernehmen">übernehmen</action>
<action type="update" icon="update" title="Eintrag bearbeiten">bearbeiten</action>
<action type="delete" icon="delete" title="Eintrag löschen">löschen</action>
<action type="stunden" icon="stunden" title="Stunden anlegen">Stunden anlegen</action>
<action type="pw_change" icon="pw_change" title="Passwort ändern">Passwort ändern</action>
<action type="permissions" icon="permission" title="Rechte ändern">Rechte ändern</action>
<action type="become_user" icon="become_user" title="Identität des Benutzers annehmen">Identität des Benutzers annehmen</action>
<action type="mark" icon="checkbox" title="Eintrag markieren">Eintrag markieren</action>
</actions>
</xsl:variable>


<xsl:template name="DataHeader">
<xsl:param name="data"/>
<xsl:param name="header"/>
<xsl:param name="dataname"/>
<xsl:param name="webbox"/>
<xsl:param name="sortable"/>
<tr class="data_header_row">
<xsl:for-each select="$header/*">
<xsl:call-template name="RenderDataHeaderElement">
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="data" select="$data"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="sortable" select="$sortable"/>
</xsl:call-template>
</xsl:for-each>
</tr>
</xsl:template>

<xsl:template match="Data">
<xsl:apply-templates select="div"/>
<xsl:apply-templates select="Header/Path"/>
<xsl:apply-templates select="Error|Content"/>
<!-- xsl:apply-templates select="Footer"/ -->
</xsl:template>

<xsl:template match="definitions"/>

<xsl:template match="Content">
<xsl:call-template name="Content"/>
</xsl:template>

<xsl:template name="Content">
<xsl:param name="dataname" select="../@name"/>
<xsl:param name="header" select="$d_document/definitions/header[./@name = $dataname]|document('arg:/schema')/*/inveda:header/header[./@name = $dataname]|/*/definitions/header[./@name = $dataname]|php:function('web_content_HTML::getDefinition',string($dataname))/header"/>
<xsl:param name="body" select="/*/definitions/body[./@name = $dataname]|document('arg:/schema')/*/inveda:header/body[./@name = $dataname]"/>


<xsl:variable name="webbox">
<xsl:choose>
<xsl:when test="../../@name">
<xsl:value-of select="../../@name"/>
</xsl:when>
<xsl:when test="../../../@name">
<xsl:value-of select="../../../@name"/>
</xsl:when>
<xsl:when test="../@name">
<xsl:value-of select="concat(../@name,'DSH')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($d_page,'Data')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>


<xsl:variable name="start_key" select="concat($webbox,'[fad_t_offset]')"/>
<xsl:variable name="step_key" select="concat($webbox,'[fad_t_limit]')"/>
<xsl:variable name="start_dataname" select="concat($dataname,'_start')"/>
<xsl:variable name="start1" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_offset')"/>
<xsl:variable name="size">
<xsl:choose>
<xsl:when test="../Header/Filter/limit">
<xsl:value-of select="@rows"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="count(DataSet)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="start">
<xsl:choose>
<xsl:when test="$start1!=''">
<xsl:value-of select="$start1"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="orderby_key" select="concat($webbox,'[fad_t_order]')"/>

<xsl:variable name="raw_orderby" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_order')"/>
<xsl:variable name="orderby" select="substring-before($raw_orderby,'@')"/>
<xsl:variable name="tmp" select="substring-after($raw_orderby,'@')"/>
<xsl:variable name="orderveer" select="substring-after($tmp,'@')"/>
<xsl:variable name="columns" select="$header/column"/>
<xsl:variable name="step1" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_limit')"/>
<xsl:variable name="step">
<xsl:choose>
<xsl:when test="$step1!=''">
<xsl:value-of select="$step1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$header/@step"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="type" select="$header/@type"/>
<xsl:variable name="width" select="$header/@width"/>
<xsl:variable name="height" select="$header/@height"/>
<xsl:variable name="limit" select="$header/@limit"/>
<xsl:variable name="mode" select="$header/@mode"/>



<xsl:variable name="display_mode1" select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_mode')"/>
<xsl:variable name="display_mode">
<xsl:choose>
<xsl:when test="$display_mode1!=''">
<xsl:value-of select="$display_mode1"/>
</xsl:when>
<xsl:otherwise>row</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$type='Details'">
<xsl:variable name="dataset" select="DataSet"/>
<table class="data_realm_table">
<tr>
<xsl:for-each select="$header/group">
<td valign="top">
<table class="WebBox_group" cellpadding="0" cellspacing="0">
<xsl:if test="@caption!=''">
<tr>
<td colspan="2" class="WebBox_caption WebBox_group_caption">
<xsl:value-of select="@caption"/>
</td>
</tr>
</xsl:if>
<xsl:for-each select="item">
<xsl:variable name="alternation">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">_row_1</xsl:when>
<xsl:otherwise>_row_2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr class="{concat('data_body',$alternation)}">
<xsl:if test="string-length(@caption) > 0">
<td class="WebBox_group_item_caption">
<xsl:value-of select="@caption"/>
</td>
</xsl:if>
<xsl:call-template name="RenderDataSetAttribute">
<xsl:with-param name="item" select="."/>
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="align" select="'left'"/>
<xsl:with-param name="class" select="'WebBox_group_item_value'"/>
</xsl:call-template>
</tr>
</xsl:for-each>
</table>
</td>
</xsl:for-each>
</tr>
</table>
<xsl:apply-templates select="$body" mode="user">
<xsl:with-param name="dataset" select="$dataset"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="$type='DataTable'">
<div class="data_realm_table">
<xsl:if test="$header/@checkbox = 'yes' and count(./DataSet) &gt; 0">
<input type="hidden" name="{$webbox}[table_id]" value=""/>
</xsl:if>
<div class="data_table_wrapper" valign="top">
<xsl:if test="$height != ''">
<xsl:attribute name="height">
<xsl:value-of select="concat(height,'px')"/>
</xsl:attribute>
</xsl:if>
<table cellspacing="0" cellpadding="2">
<xsl:attribute name="class">
<xsl:value-of select="'data_table'"/>
<xsl:if test="$header/*/@role = 'primary'">
<xsl:value-of select="' with_primary_role'"/>
</xsl:if>
</xsl:attribute>
<xsl:if test="$width != ''">
<xsl:attribute name="width">
<xsl:value-of select="concat(width,'px')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="(not($header/@header) or $header/@header!='no') and ($display_mode='row' or $type!='DataTable')">
<thead>
<xsl:call-template name="DataHeader">
<xsl:with-param name="data" select="."/>
<xsl:with-param name="header" select="$header"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="sortable">
<xsl:if test="$limit &gt; 0">
<xsl:value-of select="'false'"/>
</xsl:if>
</xsl:with-param>
</xsl:call-template>
</thead>
</xsl:if>
<tbody>
<xsl:choose>
<xsl:when test="$type='DataTable' and $mode='user'">
<xsl:for-each select="DataSet">
<xsl:call-template name="RenderUserDataSet">
<xsl:with-param name="dataset" select="."/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="type" select="$type"/>
<xsl:with-param name="display_mode" select="$display_mode"/>
<xsl:with-param name="columns" select="$columns"/>
<xsl:with-param name="header" select="$header"/>
</xsl:call-template>
</xsl:for-each>
</xsl:when>
<xsl:when test="$type='DataTable' and $display_mode!='col'">
<xsl:choose>
<xsl:when test="../Header/Filter/limit or $step='' or $step &lt; 1">
<xsl:for-each select="DataSet[$step = '' or $step &lt; 1 or position() &lt;= $step]">
<xsl:call-template name="RenderDataSet">
<xsl:with-param name="dataset" select="."/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="type" select="$type"/>
<xsl:with-param name="display_mode" select="$display_mode"/>
<xsl:with-param name="columns" select="$columns"/>
<xsl:with-param name="header" select="$header"/>
</xsl:call-template>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="DataSet[($start &lt; position()) and (position() &lt;= ($start + $step))]">
<xsl:call-template name="RenderDataSet">
<xsl:with-param name="dataset" select="."/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="type" select="$type"/>
<xsl:with-param name="display_mode" select="$display_mode"/>
<xsl:with-param name="columns" select="$columns"/>
<xsl:with-param name="header" select="$header"/>
</xsl:call-template>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$type='DataTable' and $display_mode='col'">
<xsl:choose>
<xsl:when test="../Header/Filter/limit or $step='' or $step &lt; 1">
<xsl:variable name="datasets" select="DataSet "/>
<xsl:for-each select="$columns">
<tr>
<xsl:variable name="key">
<xsl:choose>
<xsl:when test="@value">
<xsl:value-of select="@value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@key"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="RenderDataColAsRow">
<xsl:with-param name="datasets" select="$datasets"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="type" select="@type"/>
<xsl:with-param name="column" select="."/>
</xsl:call-template>
</tr>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="datasets" select="DataSet[($start &lt; position()) and (position() &lt;= ($start + $step))]"/>
<xsl:value-of select="count(exslt:node-set($datasets))"/>
<xsl:value-of select="exslt:node-set($datasets)/@produkt"/>
<xsl:for-each select="$columns">
<tr>
<xsl:variable name="key">
<xsl:choose>
<xsl:when test="@value">
<xsl:value-of select="@value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@key"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="RenderDataColAsRow">
<xsl:with-param name="datasets" select="$datasets"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="type" select="@type"/>
<xsl:with-param name="column" select="."/>
</xsl:call-template>
</tr>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="../Header/Filter/limit or $step = '' or $step = -1">
<xsl:apply-templates select="DataSet">
<xsl:with-param name="webbox" select="$webbox"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="$limit &gt; 0">
<xsl:apply-templates select="DataSet[position() &lt;= $limit]">
<xsl:with-param name="webbox" select="$webbox"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="DataSet[($start &lt; position()) and (position() &lt;= ($start + $step))]">
<xsl:with-param name="webbox" select="$webbox"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</tbody>
</table>
<xsl:call-template name="DataFooter">
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="data" select="./DataSet"/>
</xsl:call-template>
<xsl:apply-templates select="DataError">
<xsl:with-param name="webbox" select="$webbox"/>
</xsl:apply-templates>
</div>
<!--xsl:variable name="size"><xsl:choose><xsl:when test="../Header/Filter/limit"><xsl:value-of select="@rows"/></xsl:when><xsl:otherwise><xsl:value-of select="count(DataSet)"/></xsl:otherwise></xsl:choose></xsl:variable-->
<xsl:if test="(($step &gt;0 and ($size - $step)&gt;0) or ($type='DataTable')) and not($step='')">
<div class="data_nav">
<div class="data_nav_content"> <!-- needed for invers skin with shadow ;) -->
<!--
STEPHAN:
damit man alternative templates zur darstellung der blaetterfunktion nutzen kann
tag <tableBrowser> eingebaut
-->
<xsl:variable name="TableInfo">
<tableInfo/>
</xsl:variable>

<xsl:apply-templates select="exslt:node-set($TableInfo)" mode="user">
<xsl:with-param name="step" select="$step"/>
<xsl:with-param name="start_key" select="$start_key"/>
<xsl:with-param name="step_key" select="$step_key"/>
<xsl:with-param name="start" select="$start"/>
<xsl:with-param name="link" select="concat($d_page,'.',$d_request_type,'?',$webbox,'[fad_t_offset]')"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="size" select="$size"/>
<xsl:with-param name="type" select="$type"/>
<xsl:with-param name="header" select="$header"/>
</xsl:apply-templates>

<!--
STEPHAN:
damit man alternative templates zur darstellung der blaetterfunktion nutzen kann
tag <tableBrowser> eingebaut
-->
<xsl:variable name="TableBrowser">
<tableBrowser/>
</xsl:variable>

<xsl:apply-templates select="exslt:node-set($TableBrowser)" mode="user">
<xsl:with-param name="step" select="$step"/>
<xsl:with-param name="start_key" select="$start_key"/>
<xsl:with-param name="step_key" select="$step_key"/>
<xsl:with-param name="start" select="$start"/>
<xsl:with-param name="link" select="concat($d_page,'.',$d_request_type,'?',$webbox,'[fad_t_limit]')"/>
<xsl:with-param name="dataname" select="$dataname"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="size" select="$size"/>
<xsl:with-param name="header" select="$header"/>
</xsl:apply-templates>

</div>
</div>
</xsl:if>
<xsl:if test="$header/@checkbox = 'yes' and count(./DataSet) &gt; 0">
<div class="data_nav">
<input type="submit" class="button" name="{$webbox}[action][show_delete_list]" value="Löschen"/>
<xsl:apply-templates select="../../ControlElement/node()"/>
</div>
</xsl:if>
</div>
</xsl:when>
</xsl:choose>
</xsl:template>

<xsl:template name="RenderSteps">
<xsl:param name="size"/>
<xsl:param name="steps"/>
<xsl:param name="step"/>
<xsl:param name="link"/>
<xsl:param name="webbox"/>
<xsl:variable name="ajax_id">
<xsl:choose>
<xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'">ajaxFrame</xsl:when>
<xsl:otherwise>ajaxFrame1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="ajax_frame">
<xsl:if test="$d_ajax_window != 'true' and $d_ajax_window != 'yes'">
<xsl:value-of select="'mainframe'"/>
</xsl:if>
</xsl:variable>

<span class="data_nav_steps">
<xsl:if test="not($step &gt;0 and ($size - $step)&gt;0)">
<xsl:attribute name="class">data_nav_steps no_data_nav</xsl:attribute>
</xsl:if>
<xsl:value-of select="'Zeilen:'"/>
</span>
<xsl:for-each select="exslt:node-set($steps)/step/item">
<xsl:choose>
<xsl:when test="$step=@step">
<span class="data_nav_button selected">
<xsl:value-of select="@caption"/>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="@step = '1'">einzeln</xsl:when>
<xsl:when test="@step = '-1'">alle auf einmal</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@step"/> pro Seite
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$ajax_params}{$link}={@step}" title="{$title}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">requestNewWebbox('<xsl:value-of select="concat($ajax_params,$link,'=',@step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>')); return false;</xsl:attribute>
</xsl:if>
<xsl:value-of select="@caption"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>

<!--xsl:template name="RenderDataTableStepNav"-->

<xsl:template match="tableInfo" mode="user">
<xsl:param name="type"/>
<xsl:param name="step_key"/>
<xsl:param name="start_key"/>
<xsl:param name="start"/>
<xsl:param name="size"/>
<xsl:param name="step"/>
<xsl:param name="link"/>
<xsl:param name="dataname"/>
<xsl:param name="webbox"/>
<xsl:if test="$type='DataTable'">
<span align="right" style="float:right;" class="data_nav_entries">
<xsl:choose>
<xsl:when test="$size = 1">1 Eintrag</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$size"/> Einträge
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
</xsl:template>

<xsl:template match="tableBrowser" mode="user">
<xsl:param name="step_key"/>
<xsl:param name="start_key"/>
<xsl:param name="start"/>
<xsl:param name="size"/>
<xsl:param name="step"/>
<xsl:param name="link"/>
<xsl:param name="dataname"/>
<xsl:param name="webbox"/>
<xsl:param name="header"/>
<xsl:if test="($step &gt;0 and ($size - $step)&gt;0)">
<span class="data_nav_pages">Navigation:</span>
<xsl:call-template name="DataNav">
<xsl:with-param name="size" select="$size"/>
<xsl:with-param name="step" select="$step"/>
<xsl:with-param name="start_key" select="$start_key"/>
<xsl:with-param name="step_key" select="$step_key"/>
<xsl:with-param name="start" select="$start"/>
<xsl:with-param name="webbox" select="$webbox"/>
</xsl:call-template>
</xsl:if>

<xsl:variable name="steps">
<xsl:choose>
<xsl:when test="$d_document/definitions/step[@name = $dataname]">
<xsl:copy-of select="$d_document/definitions/step[@name = $dataname]"/>
</xsl:when>
<xsl:when test="document('arg:/schema')/*/inveda:header/step[@name = $dataname]">
<xsl:copy-of select="document('arg:/schema')/*/inveda:header/step[@name = $dataname]"/>
</xsl:when>
<xsl:when test="/*/definitions/step[@name = $dataname]">
<xsl:copy-of select="/*/definitions/step[@name = $dataname]"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="exslt:node-set($inveda:definitions)/table/datatable/step"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:if test="$size &gt; 0">
<xsl:if test="not($header/@step_selectable) or $header/@step_selectable != 'false'">
<xsl:call-template name="RenderSteps">
<xsl:with-param name="size" select="$size"/>
<xsl:with-param name="step" select="$step"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="link" select="$link"/>
<xsl:with-param name="steps" select="$steps"/>
</xsl:call-template>
</xsl:if>
</xsl:if>

<xsl:if test="$header/@csv = 'yes' or $header/@csv = 'true' or $header/@pdf = 'yes' or $header/@pdf = 'true' or $header/@xls = 'yes' or $header/@xlsx = 'true'">
<span class="data_nav_export">
<xsl:value-of select="'Export:'"/>
</span>

<xsl:if test="$header/@csv = 'yes' or $header/@csv = 'true'">
<a class="data_nav_button" href="{$d_page}.csv" title="CSV-Export">CSV</a>
</xsl:if>
<xsl:if test="$header/@pdf = 'yes' or $header/@pdf = 'true'">
<a class="data_nav_button" href="{$d_page}.pdf" title="PDF-Export">PDF</a>
</xsl:if>
<xsl:if test="$header/@xls = 'yes' or $header/@xls = 'true'">
<a class="data_nav_button" href="{$d_page}.xls" title="XLS-Export">XLS</a>
</xsl:if>
<xsl:if test="$header/@xlsx = 'yes' or $header/@xlsx = 'true'">
<a class="data_nav_button" href="{$d_page}.xlsx" title="XLS-Export">XLSX</a>
</xsl:if>
</xsl:if>

</xsl:template>

<xsl:template name="RenderDataTableStepNav">
<xsl:param name="step"/>
<xsl:param name="link"/>
<xsl:param name="dataname"/>
<xsl:param name="webbox"/>

<xsl:variable name="steps">
<xsl:choose>
<xsl:when test="$d_document/definitions/step[@name = $dataname]">
<xsl:copy-of select="$d_document/definitions/step[@name = $dataname]"/>
</xsl:when>
<xsl:when test="document('arg:/schema')/*/inveda:header/step[@name = $dataname]">
<xsl:copy-of select="document('arg:/schema')/*/inveda:header/step[@name = $dataname]"/>
</xsl:when>
<xsl:when test="/*/definitions/step[@name = $dataname]">
<xsl:copy-of select="/*/definitions/step[@name = $dataname]"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="exslt:node-set($inveda:definitions)/table/datatable/step"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:call-template name="RenderSteps">
<xsl:with-param name="step" select="$step"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="link" select="$link"/>
<xsl:with-param name="steps" select="$steps"/>
</xsl:call-template>
</xsl:template>

<xsl:template name="DataFooter">
<xsl:param name="webbox"/>
<xsl:param name="dataname"/>
<xsl:param name="data"/>
<xsl:if test="count(document('arg:/schema')/*/inveda:header/footer[@name=$dataname]) &gt; 0">

<xsl:for-each select="document('arg:/schema')/*/inveda:header/footer[@name=$dataname]">
<table class="data_table" cellspacing="0" cellpadding="0" width="100%">
<xsl:for-each select="row">
<xsl:variable name="key" select="@key"/>
<xsl:variable name="value" select="sum($data/@*[name()=$key])"/>
<tr>
<td class="data_label">
<xsl:choose>
<xsl:when test="@caption=''"/>
<xsl:otherwise>
<xsl:value-of select="@caption"/>:
</xsl:otherwise>
</xsl:choose>
</td>
<td class="data_footer_last">
<xsl:choose>
<xsl:when test="@type='number'">
<xsl:call-template name="RenderNumberElement">
<xsl:with-param name="value" select="$value"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@type='money'">
<xsl:call-template name="RenderMoneyElement">
<xsl:with-param name="value" select="$value"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@type='option'">
<xsl:call-template name="RenderOptionElement">
<xsl:with-param name="value" select="$value"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@type='user'">
<xsl:apply-templates select="." mode="user">
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="value" select="$value"/>
<xsl:with-param name="data" select="$data"/>
</xsl:apply-templates>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
</xsl:if>
</xsl:template>


<xsl:template match="DataError">
<xsl:param name="webbox"/>
<xsl:variable name="id" select="generate-id()"/>
<table width="100%" cellspacing="0" cellpadding="0" border="0" id="{$id}">
<tr>
<td class="data_body_row_1_error">
<xsl:value-of select="."/>
</td>
</tr>
</table>
<xsl:if test="@reload &gt; 0">
<script>
<xsl:choose>
<xsl:when test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:variable name="ajax_id">
<xsl:choose>
<xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:value-of select="'ajaxFrame'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'ajaxFrame1'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="ajax_frame">
<xsl:if test="$d_ajax_window != 'true' and $d_ajax_window != 'yes'">
<xsl:value-of select="'mainframe'"/>
</xsl:if>
</xsl:variable>

window.setTimeout(
function () {
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type)"/>?ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(document.getElementById('<xsl:value-of select="$id"/>'),'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(document.getElementById('<xsl:value-of select="$id"/>'),'<xsl:value-of select="$ajax_frame"/>'));
},
<xsl:value-of select="@reload * 1000"/>
);
</xsl:when>
<xsl:otherwise>
window.setTimeout(
function () {
self.location.href = '<xsl:value-of select="concat($d_page,'.',$d_request_type)"/>';
},
<xsl:value-of select="@reload * 1000"/>
);
</xsl:otherwise>
</xsl:choose>
</script>
</xsl:if>
</xsl:template>

<xsl:template name="DataNav">
<xsl:param name="start"/>
<xsl:param name="start_key"/>
<xsl:param name="step_key"/>
<xsl:param name="size"/>
<xsl:param name="step"/>
<xsl:param name="webbox"/>

<xsl:variable name="current_page">
<xsl:value-of select="ceiling(($start+1) div $step)"/>
</xsl:variable>
<xsl:variable name="last_page">
<xsl:value-of select="ceiling($size div $step)"/>
</xsl:variable>

<xsl:variable name="end" select="$start+$step"/>
<xsl:variable name="ajax_id">
<xsl:choose>
<xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:value-of select="'ajaxFrame'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'ajaxFrame1'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="ajax_frame">
<xsl:if test="$d_ajax_window != 'true' and $d_ajax_window != 'yes'">
<xsl:value-of select="'mainframe'"/>
</xsl:if>
</xsl:variable>

<xsl:variable name="skin_dir" select="php:function('constant', 'SKIN_DIR')"/>
<xsl:variable name="nav_img" select="concat('/skins/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/images')"/>
<xsl:variable name="nav_img_path" select="concat($skin_dir, 'public/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/images/')"/>


<span class="data_nav_page">
<xsl:value-of select="'Seite '"/>
<span class="data_nav_range">
<xsl:value-of select="concat($current_page,' von ',$last_page)"/>
</span>
</span>

<xsl:if test="number($last_page) &gt; 1">

<!-- Erste Seite + 1 Seite zurück -->
<xsl:if test="number($current_page) &gt; 3">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}=0&amp;{$step_key}={$step}" title="Anfang" class="data_nav_button first_page">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=0')"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_first.gif'))">
<img src="{$nav_img}/nav_first.gif" width="7px" height="7px"/>
</xsl:when>
<xsl:otherwise>
<svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555">
<path d="M0 0h2v7H0zm7 7L2.7 3.5 7 0z"/>
</svg>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:if>

<xsl:if test="number($current_page) &gt; 1">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - $step}&amp;{$step_key}={$step}" title="zurück" class="data_nav_button prev_page">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - $step)"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_prev.gif'))">
<img src="{$nav_img}/nav_prev.gif" width="7px" height="7px"/>
</xsl:when>
<xsl:otherwise>
<svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555">
<path d="M6 7L1.7 3.5 6 0z"/>
</svg>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:if>

<!-- Falls am Ende angekommen, dann mehr vorherige Seiten anzeigen, um immer auf 5 Buttons zu kommen -->
<xsl:if test="number($current_page) = number($last_page) and number($current_page)-4 &gt; 0">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - ($step * 4)}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - ($step * 4))"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)-4"/>
</a>
</xsl:if>

<xsl:if test="number($current_page) &gt; number($last_page)-2 and number($current_page)-3 &gt; 0">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - ($step * 3)}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - ($step * 3))"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)-3"/>
</a>
</xsl:if>

<!-- 2 Seiten vor der aktuellen Seite -->
<xsl:if test="number($current_page)-2 &gt; 0">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - ($step * 2)}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - ($step * 2))"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)-2"/>
</a>
</xsl:if>

<xsl:if test="number($current_page)-1 &gt; 0">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$start - $step}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$start - $step)"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)-1"/>
</a>
</xsl:if>


<!-- aktuelle Seite -->
<span class="data_nav_button selected">
<xsl:value-of select="$current_page"/>
</span>


<!-- 2 Seiten nach der aktuellen Seite -->
<xsl:if test="number($current_page)+1 &lt;= $last_page">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end)"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)+1"/>
</a>
</xsl:if>

<xsl:if test="number($current_page)+2 &lt;= $last_page">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end + $step}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end + $step)"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)+2"/>
</a>
</xsl:if>

<!-- Falls ganz am Anfang, dann mehr Seiten nach der aktuellen Seite darstellen (siehe "Falls am Ende") -->
<xsl:if test="number($current_page) &lt; 3 and number($current_page)+3 &lt;= number($last_page)">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end + ($step * 2)}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end + ($step * 2))"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)+3"/>
</a>
</xsl:if>

<xsl:if test="number($current_page) = 1 and number($current_page)+4 &lt;= number($last_page)">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end + ($step* 3)}&amp;{$step_key}={$step}" class="data_nav_button">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end + ($step * 3))"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:value-of select="number($current_page)+4"/>
</a>
</xsl:if>

<!-- 1 Seite weiter + Letzte Seite -->
<xsl:if test="number($current_page) &lt; number($last_page)">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$end}&amp;{$step_key}={$step}" title="vor" class="data_nav_button next_page">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$end)"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_next.gif'))">
<img src="{$nav_img}/nav_next.gif" width="7px" height="7px"/>
</xsl:when>
<xsl:otherwise>
<svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555">
<path d="M1 0l4.3 3.5L1 7z"/>
</svg>
</xsl:otherwise>
</xsl:choose>
</a>

<xsl:if test="number($current_page) &lt; number($last_page)-2">
<a href="{$ajax_params}{$d_page}.{$d_request_type}?{$start_key}={$step * (floor(($size - 1) div $step))}&amp;{$step_key}={$step}" title="Ende" class="data_nav_button last_page">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
<xsl:attribute name="onclick">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page,'.',$d_request_type,'?',$start_key,'=',$step * (floor(($size - 1) div $step)))"/>&amp;<xsl:value-of select="concat($step_key,'=',$step)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>', '', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="php:function('file_exists', concat($nav_img_path, 'nav_last.gif'))">
<img src="{$nav_img}/nav_last.gif" width="7px" height="7px"/>
</xsl:when>
<xsl:otherwise>
<svg xmlns="http://www.w3.org/2000/svg" width="7" height="7" viewBox="0 0 7 7" fill="#555">
<g>
<path transform="rotate(-180 6 3.5)" d="M5 0h2v7H5z"/>
<path d="M0 0l4.3 3.5L0 7z"/>
</g>
</svg>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:if>
</xsl:if>
</xsl:if>

</xsl:template>

<xsl:template name="RenderDataSet">
<xsl:param name="columns"/>
<xsl:param name="header"/>
<xsl:param name="dataset"/>
<xsl:param name="webbox"/>
<xsl:param name="dataname"/>
<xsl:param name="type"/>
<xsl:param name="position" select="position()"/>
<xsl:param name="display_mode" select="'row'"/>
<xsl:choose>
<xsl:when test="$type='DataTable' and $display_mode='row'">
<xsl:variable name="alternation">
<xsl:choose>
<xsl:when test="$position mod 2 = 0">_row_1</xsl:when>
<xsl:otherwise>_row_2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr class="{concat('data_body',$alternation)}">
<xsl:for-each select="$columns">
<xsl:call-template name="RenderDataSetAttribute">
<xsl:with-param name="item" select="."/>
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="position" select="$position"/>
</xsl:call-template>
</xsl:for-each>
</tr>
</xsl:when>
<xsl:when test="$type='DataTable' and $display_mode='block'">
<xsl:variable name="alternation">
<xsl:choose>
<xsl:when test="$position mod 2 = 0">_row_1</xsl:when>
<xsl:otherwise>_row_2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr>
<td colspan="2" height="5">
<img src="/web.images.1pix_trans.gif" width="5" height="5" alt=""/>
</td>
</tr>
<xsl:for-each select="exslt:node-set($columns)">
<tr class="{concat('data_body',$alternation)}">
<xsl:call-template name="RenderDataHeaderElement">
<xsl:with-param name="data" select="$dataset/.."/>
<xsl:with-param name="header" select="$header"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="align" select="'right'"/>
<xsl:with-param name="dataname" select="$dataname"/>
</xsl:call-template>
<xsl:call-template name="RenderDataSetAttribute">
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="position" select="$position"/>
<xsl:with-param name="align" select="'left'"/>
</xsl:call-template>
</tr>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="exslt:node-set($dataset)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="RenderDataColAsRow">
<xsl:param name="datasets"/>
<xsl:param name="webbox"/>
<xsl:param name="dataname"/>
<xsl:param name="type"/>
<xsl:variable name="key">
<xsl:choose>
<xsl:when test="@value">
<xsl:value-of select="@value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@key"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:call-template name="RenderDataHeaderElement">
<xsl:with-param name="data" select="$datasets"/>
<xsl:with-param name="key" select="$key"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="dataname" select="$dataname"/>
</xsl:call-template>
<xsl:for-each select="$datasets">
<xsl:call-template name="RenderDataSetAttribute">
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="dataset" select="."/>
<xsl:with-param name="key" select="$key"/>
<xsl:with-param name="type" select="$type"/>
<xsl:with-param name="position" select="position()"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>

<xsl:template name="RenderDataSetAttribute">
<xsl:param name="dataset"/>
<xsl:param name="position"/>
<xsl:param name="webbox"/>
<xsl:param name="key"/>
<xsl:param name="type"/>
<xsl:param name="align"/>
<xsl:param name="class"/>
<xsl:param name="item"/>
<td>
<!-- René: auf Dirks Wunsch nowrap wieder eingefügt, Parameter soll bei nicht passenden Ansichten individuell gesetzt werden -->
<!-- Frank: nowrap ist standardmäßig wieder deaktiviert außer der Parameter ist bei nicht passenden Ansichten individuell auf "yes" gesetzt. nowrap ist per css abhängig vom viewport gesetzt. -->
<xsl:if test="@nowrap = 'yes'">
<xsl:attribute name="nowrap">nowrap</xsl:attribute>
</xsl:if>
<xsl:variable name="render_type">
<xsl:choose>
<xsl:when test="$type">
<xsl:value-of select="$type"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@type"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="render_key">
<xsl:choose>
<xsl:when test="$key">
<xsl:value-of select="$key"/>
</xsl:when>
<xsl:when test="@value">
<xsl:value-of select="@value"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@key"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$class">
<xsl:attribute name="class">
<xsl:value-of select="$class"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">
<xsl:value-of select="'data_table_cell'"/>
<xsl:if test="string-length($render_key) > 0">
<xsl:value-of select="concat(' column_',$render_key)"/>
</xsl:if>
<xsl:if test="string-length(@role) > 0">
<xsl:value-of select="concat(' role_',@role)"/>
</xsl:if>
<xsl:choose>
<xsl:when test="$render_type = 'action'">
<xsl:value-of select="concat(' column_',$render_type, ' ',$render_type)"/>
</xsl:when>
<xsl:when test="$render_type = 'status'">
<xsl:value-of select="concat(' column_',$render_type, ' ',$render_type)"/>
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:if test="string-length(@caption) > 0">
<xsl:attribute name="data-colname">
<xsl:value-of select="@caption"/>
</xsl:attribute>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="render_align">
<xsl:choose>
<xsl:when test="$align">
<xsl:value-of select="$align"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@align"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="string-length($render_align) > 0">
<xsl:attribute name="align">
<xsl:value-of select="$render_align"/>
</xsl:attribute>
</xsl:if>

<xsl:variable name="render_format">
<xsl:value-of select="@format"/>
</xsl:variable>

<xsl:variable name="description_key">
<xsl:choose>
<xsl:when test="@description">
<xsl:value-of select="@description"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@render_key"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="description">
<xsl:value-of select="exslt:node-set($dataset)/@*[name()=$description_key]"/>
</xsl:variable>
<xsl:variable name="maxlength">
<xsl:choose>
<xsl:when test="@maxlength">
<xsl:value-of select="@maxlength"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="render_value">
<xsl:value-of select="exslt:node-set($dataset)/@*[name()=$render_key]"/>
</xsl:variable>

<xsl:if test="@prerender = 'yes'">
<xsl:apply-templates select="." mode="prerender">
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="position" select="$position"/>
</xsl:apply-templates>
</xsl:if>
<xsl:choose>
<xsl:when test="@mode='user'">
<xsl:apply-templates select="." mode="user">
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="position" select="$position"/>
</xsl:apply-templates>
</xsl:when>
<xsl:when test="$render_type='tag'">
<xsl:apply-templates select="exslt:node-set($dataset)/*[name()=$render_key]"/>
</xsl:when>
<xsl:when test="$render_type='text'">
<xsl:call-template name="RenderDataElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="title" select="$description"/>
<xsl:with-param name="maxlength" select="$maxlength"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='date'">
<xsl:call-template name="RenderDateElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="title" select="$description"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='datetime'">
<xsl:call-template name="RenderDateTimeElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='email'">
<xsl:call-template name="RenderMailDataElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='bool'">
<xsl:call-template name="RenderBooleanDataElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='number'">
<xsl:call-template name="RenderNumberElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
<xsl:with-param name="format" select="$render_format"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='vcard'">
<xsl:call-template name="RenderVCardElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='money'">
<xsl:call-template name="RenderMoneyElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='popup'">
<xsl:call-template name="popup-link">
<xsl:with-param name="site" select="@site"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="target">
<xsl:variable name="target_id" select="@target_id"/>
<xsl:choose>
<xsl:when test="@target_id!='' and $dataset/@*[name()=$target_id]!=''">
<xsl:value-of select="concat(@target,'/',$dataset/@*[name()=$target_id])"/>
</xsl:when>
<xsl:when test="not(@target_id) and $dataset/@nr!=''">
<xsl:value-of select="concat(@target,'/',$dataset/@nr)"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>

<xsl:with-param name="caption" select="$render_value"/>
</xsl:call-template>
</xsl:when>

<xsl:when test="$render_type='plink'">
<xsl:call-template name="RenderLinkElement">
<xsl:with-param name="value">
<xsl:variable name="target_id" select="@target_id"/>
<xsl:choose>
<xsl:when test="@target_id!='' and $dataset/@*[name()=$target_id]!=''">
<xsl:value-of select="concat(@target,'/',$dataset/@*[name()=$target_id],'/',@site)"/>
</xsl:when>
<xsl:when test="not(@target_id) and $dataset/@nr!=''">
<xsl:value-of select="concat(@target,'/',$dataset/@nr,'/',@site)"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:with-param>
<xsl:with-param name="caption" select="$render_value"/>
</xsl:call-template>
</xsl:when>

<xsl:when test="$render_type='option'">
<xsl:call-template name="RenderOptionElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="item" select="$item"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='percent'">
<xsl:call-template name="RenderPercentElement">
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$render_type='link'">
<xsl:call-template name="RenderLinkElement">
<xsl:with-param name="caption" select="$render_value"/>
<xsl:with-param name="value" select="$render_value"/>
<xsl:with-param name="align" select="$render_align"/>
<xsl:with-param name="link_target">
<xsl:if test="@target!=''">
<xsl:value-of select="@target"/>
</xsl:if>
</xsl:with-param>
<xsl:with-param name="caption">
<xsl:if test="@title_key!=''">
<xsl:variable name="title_key" select="@title_key"/>
<xsl:value-of select="exslt:node-set($dataset)/@*[name()=$title_key]"/>
</xsl:if>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<!-- entry's action links /-->
<xsl:when test="$render_type='action'">
<xsl:attribute name="align">
<xsl:choose>
<xsl:when test="$render_align != ''">
<xsl:value-of select="$render_align"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'right'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:variable name="primary_key">
<xsl:choose>
<xsl:when test="@primary_key">
<xsl:value-of select="@primary_key"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'nr'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="linkBox">
<LinkBox id="{$dataset/@*[name()=$primary_key]}">
<xsl:for-each select="action">
<xsl:variable name="action_type" select="@type"/>
<xsl:variable name="action" select="exslt:node-set($inveda:definitions)/actions/action[@type=$action_type]"/>
<xsl:variable name="pagename">
<xsl:choose>
<xsl:when test="$action/@page!=''">
<xsl:value-of select="$action/@page"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$d_page"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$action/@type='details'">
<xsl:if test="document(concat('ibs:/page_allowed,',$action/@page))/result/@value='yes'">
<xsl:variable name="jsclick">
<xsl:value-of select="concat('/tab/',@table,'/id/',exslt:node-set($dataset)/@*[name()=$primary_key],'/',$pagename,'.ajax')"/>
</xsl:variable>
<xsl:call-template name="RenderActionElement">
<xsl:with-param name="icon" select="$action/@icon"/>
<xsl:with-param name="title" select="$action/@title"/>
<xsl:with-param name="caption" select="$action"/>
<xsl:with-param name="class" select="$action/@class"/>
<xsl:with-param name="jsclick" select="$jsclick"/>
<xsl:with-param name="link_type" select="'ajax'"/>
<xsl:with-param name="link" select="concat('/tab/',@table,'/id/',exslt:node-set($dataset)/@*[name()=$primary_key],'/',$pagename)"/>
</xsl:call-template>
</xsl:if>
</xsl:when>
<xsl:when test="$action/@type='mark'">
<i class="ii-checkbox">
<input type="checkbox" id="{$webbox}.mark_element{exslt:node-set($dataset)/@*[name()=$primary_key]}" name="{$webbox}[marked_element][]" value="{exslt:node-set($dataset)/@*[name()=$primary_key]}" title="Markieren" autocomplete="off"/>
</i>
</xsl:when>
<xsl:when test="$action/@type or @icon!=''">
<xsl:variable name="dialog">
<xsl:choose>
<xsl:when test="@dialog">
<xsl:value-of select="@dialog"/>
</xsl:when>
<xsl:when test="../@dialog">
<xsl:value-of select="../@dialog"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="jsclick">
<xsl:if test="@ajax = 'true' or $action/@ajax='true'">
<xsl:value-of select="concat('/box/',$webbox,'/dialog/',$dialog,'/id/',exslt:node-set($dataset)/@*[name()=$primary_key],'/',$pagename,'.ajax?action=show_',@type,'&amp;',$webbox,'[action]=show_',@type)"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="link_type">
<xsl:if test="@ajax = 'true' or $action/@ajax='true'">
<xsl:value-of select="'ajax'"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="icon">
<xsl:choose>
<xsl:when test="$action/@icon!=''">
<xsl:value-of select="$action/@icon"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@icon"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="$action/@title!=''">
<xsl:value-of select="$action/@title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="action_class">
<xsl:choose>
<xsl:when test="$action/@class!=''">
<xsl:value-of select="$action/@class"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@class"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:call-template name="RenderActionElement">
<xsl:with-param name="icon" select="$icon"/>
<xsl:with-param name="title" select="$title"/>
<xsl:with-param name="caption" select="$action"/>
<xsl:with-param name="class" select="$action_class"/>
<xsl:with-param name="jsclick" select="$jsclick"/>
<xsl:with-param name="link_type" select="$link_type"/>
<xsl:with-param name="link" select="concat('?',$webbox,'[action]=show_',@type,@suffix,'&amp;',$webbox,'[id]=',exslt:node-set($dataset)/@*[name()=$primary_key])"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="user">
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="primary_key" select="$primary_key"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</LinkBox>
</xsl:variable>
<xsl:apply-templates select="exslt:node-set($linkBox)/LinkBox/*"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="user">
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="position" select="$position"/>
<xsl:with-param name="align" select="$align"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="string-length(@role) > 0">
<button type="button" class="toggle_data_table_row" title="{@role}">
<span>Mehr Details anzeigen</span>
</button>
</xsl:if>
</td>
</xsl:template>

<xsl:template name="RenderActions">
<xsl:param name="class"/>
<xsl:param name="webbox"/>
<xsl:param name="dataset"/>
<xsl:param name="primary_key"/>
<xsl:variable name="type" select="@type"/>
<xsl:variable name="action" select="exslt:node-set($inveda:definitions)/actions/action[@type=$type]"/>
<xsl:choose>
<xsl:when test="$action">
<xsl:call-template name="RenderActionElement">
<xsl:with-param name="class" select="$action/@class"/>
<xsl:with-param name="icon" select="$action/@icon"/>
<xsl:with-param name="title" select="$action/@title"/>
<xsl:with-param name="link" select="concat('?',$webbox,'[action]=show_',@type,@suffix,'&amp;',$webbox,'[id]=',$primary_key)"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="@icon!=''">
<xsl:call-template name="RenderActionElement">
<xsl:with-param name="class" select="$action/@class"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="title" select="@title"/>
<xsl:with-param name="link" select="concat('?',$webbox,'[action]=show_',@type,@suffix,'&amp;',$webbox,'[id]=',$primary_key)"/>
</xsl:call-template>
</xsl:when>

<xsl:otherwise>
<xsl:apply-templates select="." mode="user">
<xsl:with-param name="dataset" select="$dataset"/>
<xsl:with-param name="webbox" select="$webbox"/>
<xsl:with-param name="primary_key" select="$primary_key"/>
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="RenderActionElement">
<xsl:param name="align"/>
<xsl:param name="icon"/>
<xsl:param name="title"/>
<xsl:param name="class"/>
<xsl:param name="caption" select="$title"/>
<xsl:param name="link"/>
<xsl:param name="link_type"/>
<xsl:param name="jsclick"/>
<xsl:param name="link_target"/>
<xsl:param name="maxlength"/>
<xsl:if test="$align != ''">
<xsl:attribute name="align">
<xsl:value-of select="$align"/>
</xsl:attribute>
</xsl:if>
<xsl:variable name="caption1">
<xsl:choose>
<xsl:when test="$maxlength > 0 and string-length($caption) > $maxlength">
<xsl:value-of select="concat(substring($caption,0,number($maxlength)-3),'...')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$link and $link!=''">
<xsl:variable name="popup_target">
<xsl:choose>
<xsl:when test="$link_target!=''">
<xsl:value-of select="$link_target"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'popup'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="real_link">
<xsl:choose>
<xsl:when test="$link_type='popup'">
<xsl:value-of select="concat('javascript:window.open(&quot;',$link,'&quot;,&quot;',$popup_target,'&quot;,&quot;width=300,height=500,left=(screen.width - 400),top=50&quot;);',$popup_target,'.focus();self.reload;')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$link"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="real_jsclick">
<xsl:choose>
<xsl:when test="$link_type='ajax'">
<xsl:value-of select="concat('requestWebbox(&quot;',$ajaxsessionid,$jsclick,'&quot;);return false;')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$jsclick"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<a href="{$real_link}" title="{$title}">
<xsl:if test="$link_target">
<xsl:attribute name="target"><xsl:value-of select="$link_target"/></xsl:attribute>
</xsl:if>
<xsl:if test="$jsclick">
<xsl:attribute name="onclick"><xsl:value-of select="$real_jsclick"/></xsl:attribute>
</xsl:if>
<xsl:if test="$icon!=''">
<xsl:call-template name="icon">
<xsl:with-param name="icon" select="$icon"/>
<xsl:with-param name="title" select="$title"/>
<xsl:with-param name="class" select="$class"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$icon='' and $caption1!=''">
<xsl:value-of select="$caption1"/>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<i class="ii ii-{$icon}" title="{$title}" alt="{$title}"><xsl:value-of select="$title"/></i>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="RenderCheckBoxElement">
<xsl:param name="value"/>
<xsl:param name="nowrap" select="'nowrap'"/>
<xsl:param name="webbox"/>
<xsl:param name="key"/>
<input type="checkbox" class="checkbox" name="{concat($webbox,'[table_id][',$key,']')}" value="{$key}"/>
<input type="hidden" name="{concat($webbox,'[table_id_name][',$key,']')}" value="{$value}"/>
</xsl:template>

<xsl:template name="RenderDataElement">
<xsl:param name="title"/>
<xsl:param name="value"/>
<xsl:param name="description"/>
<xsl:param name="maxlength"/>
<xsl:param name="nowrap" select="'nowrap'"/>
<xsl:choose>
<xsl:when test="string-length($title) > 0">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$maxlength > 0 and string-length($value) > $maxlength">
<xsl:attribute name="title">
<xsl:value-of select="$value"/>
</xsl:attribute>
</xsl:when>
</xsl:choose>

<xsl:choose>
<xsl:when test="$maxlength > 0 and string-length($value) > $maxlength">
<xsl:value-of select="concat(substring($value,0,number($maxlength)-3),'...')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="RenderBooleanDataElement">
<xsl:param name="title"/>
<xsl:param name="align"/>
<xsl:param name="value"/>
<xsl:param name="nowrap" select="'nowrap'"/>
<xsl:attribute name="align">
<xsl:choose>
<xsl:when test="$align != ''">
<xsl:value-of select="$align"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'left'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$title">
<xsl:attribute name="title"><xsl:value-of select="$title"/></xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$value = 't' or $value = 'true' or $value = 'yes' or $value = '1'"><i class="ii ii-ok" title="Ja">Ja</i></xsl:when>
<xsl:when test="$value = 'f' or $value = 'false' or $value = 'no' or $value = '0'"><i class="ii ii-no" title="Nein">Nein</i></xsl:when>
<xsl:when test="$value != ''"><i class="ii ii-ok" title="Ja">Ja</i></xsl:when>
<xsl:otherwise><i class="ii ii-no" title="Nein">Nein</i></xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="RenderDateElement">
<xsl:param name="value"/>
<xsl:param name="title"/>
<xsl:param name="nowrap" select="'nowrap'"/>
<xsl:if test="$title">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$value != ''">
<xsl:value-of select="concat(substring($value,9,2),'.',substring($value,6,2),'.',substring-before($value,'-'))"/>
</xsl:if>
</xsl:template>


<xsl:template name="RenderDateTimeElement">
<xsl:param name="value"/>
<xsl:param name="title"/>
<xsl:param name="nowrap" select="'nowrap'"/>
<xsl:if test="$title">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:variable name="day" select="concat(substring($value,9,2),'.',substring($value,6,2),'.',substring-before($value,'-'))"/>
<xsl:variable name="time" select="substring($value,12,5)"/>
<xsl:if test="$value!=''">
<xsl:value-of select="concat($day,' ',$time)"/>
</xsl:if>
</xsl:template>

<xsl:template name="RenderRFC822DateTime">
<xsl:param name="value"/>
<xsl:variable name="timestamp" select="php:functionString('strtotime',$value)"/>
<xsl:variable name="rfc822time" select="php:functionString('date','r',$timestamp)"/>
<xsl:value-of select="$rfc822time"/>
</xsl:template>

<xsl:template name="RenderVCardElement">
<xsl:param name="value"/>
<i class="ii ii-details" onclick="requestWebbox('{$value}.vc'); return false;" alt="" title="Visitenkarte anzeigen">Visitenkarte anzeigen</i>
</xsl:template>


<xsl:template name="RenderOptionElement">
<xsl:param name="value"/>
<xsl:param name="title"/>
<xsl:param name="align"/>
<xsl:param name="item"/>
<xsl:param name="dataset"/>
<xsl:choose>
<xsl:when test="$item/options/option[@value=$value]">
<xsl:apply-templates select="$item/options/option[@value=$value]/node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="$item/options/default/node()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template name="RenderMoneyElement">
<xsl:param name="value"/>
<xsl:param name="title"/>
<xsl:param name="currency" select="'&#8364;'"/>
<xsl:param name="align"/>
<xsl:param name="prefix"/>
<xsl:param name="format"/>
<xsl:attribute name="align">
<xsl:choose>
<xsl:when test="$align!=''">
<xsl:value-of select="$align"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'right'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$title">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>

<!-- Andre: wird für die Invers-Abfragen in lesbarem 1000er-Format benötigt -->
<xsl:variable name="money_format">
<xsl:choose>
<xsl:when test="string-length($format) &gt; 0">
<xsl:value-of select="$format"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'0,00'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<nobr>
<xsl:if test="$value != ''">
<xsl:value-of select="$prefix"/>
<xsl:value-of select="concat(format-number($value ,$money_format),' ',$currency)"/>
</xsl:if>
</nobr>
</xsl:template>

<xsl:template name="RenderNumberElement">
<xsl:param name="value"/>
<xsl:param name="align"/>
<xsl:param name="title"/>
<xsl:param name="format"/>
<xsl:attribute name="align">
<xsl:choose>
<xsl:when test="$align != ''">
<xsl:value-of select="$align"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'right'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$title">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$value != ''">
<xsl:choose>
<xsl:when test="$format != ''">
<xsl:value-of select="format-number($value, $format)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>

<xsl:template name="RenderPercentElement">
<xsl:param name="value"/>
<xsl:param name="align"/>
<xsl:param name="title"/>
<xsl:attribute name="align">
<xsl:choose>
<xsl:when test="$align != ''">
<xsl:value-of select="$align"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'right'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$title">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$value != ''">
<xsl:value-of select="format-number($value,'0,00')"/><xsl:value-of select="' %'"/>
</xsl:if>
</xsl:template>

<xsl:template name="RenderLinkElement">
<xsl:param name="value"/>
<xsl:param name="title"/>
<xsl:param name="caption"/>
<xsl:param name="align" select="'left'"/>
<xsl:param name="nowrap" select="'nowrap'"/>
<xsl:param name="link_target"/>
<xsl:variable name="link">
<xsl:choose>
<xsl:when test="@link">
<xsl:value-of select="@link"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="substring($link,4)!='http' or $link='' or document(concat('ibs:/page_allowed,',$link))/result/@value='yes'">
<xsl:if test="$value != ''">
<a href="{$link}">
<xsl:if test="$link_target">
<xsl:attribute name="target">
<xsl:value-of select="$link_target"/>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="@title">
<xsl:value-of select="@title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$caption"/>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:if>
</xsl:if>
</xsl:template>


<xsl:template name="RenderDataHeaderElement">
<xsl:param name="data"/>
<xsl:param name="webbox"/>
<xsl:param name="dataname"/>
<xsl:param name="sortable"/>
<xsl:param name="align"/>
<xsl:variable name="start_key" select="concat($webbox,'[fad_t_offset]')"/>
<xsl:variable name="step_key" select="concat($webbox,'[fad_t_limit]')"/>
<xsl:variable name="start_dataname" select="concat($dataname,'_start')"/>
<xsl:variable name="start">
<xsl:choose>
<xsl:when test="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_offset')">
<xsl:value-of select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_offset')"/>
</xsl:when>
<xsl:otherwise>0</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="orderby_key" select="concat($webbox,'[fad_t_order]')"/>
<xsl:variable name="raw_orderby">
<xsl:choose>
<xsl:when test="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_order')">
<xsl:value-of select="php:function('dialog_WebBox::getBoxValue',$webbox,'fad_t_order')"/>
</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="orderby" select="substring-before($raw_orderby,'@')"/>
<xsl:variable name="tmp" select="substring-after($raw_orderby,'@')"/>
<xsl:variable name="order" select="substring-after($tmp,'@')"/>
<xsl:variable name="orderveer">
<xsl:choose>
<xsl:when test="$order=''">
<xsl:value-of select="@order"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$order"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="is_sortable">
<xsl:choose>
<xsl:when test="$sortable = 'false'">false</xsl:when>
<xsl:when test="count($data/*) &lt; 2">false</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@sortable"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="is_disabled">
<xsl:if test="$is_sortable='false' or @type='action'">_disabled</xsl:if>
</xsl:variable>
<xsl:variable name="is_selected">
<xsl:if test="@key=$orderby">_selected</xsl:if>
</xsl:variable>

<xsl:variable name="mime">
<xsl:choose>
<xsl:when test="@order-type">
<xsl:value-of select="@order-type"/>
</xsl:when>
<xsl:when test="@type='money'">number</xsl:when>
<xsl:when test="@type='number'">number</xsl:when>
<xsl:otherwise>text</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<!--Diese Leerspalte ist wichtig für alle DataListDialoge (interner Bereich)! -->
<xsl:if test="@caption=''">
<th class="data_header">
<xsl:attribute name="class">
<xsl:value-of select="'data_header'"/>
<xsl:if test="string-length(@key) > 0">
<xsl:value-of select="concat(' column_',@key)"/>
</xsl:if>
<xsl:if test="@type = 'action'">
<xsl:value-of select="' column_action'"/>
</xsl:if>
<xsl:if test="string-length(@role) > 0">
<xsl:value-of select="concat(' role_',@role)"/>
</xsl:if>
</xsl:attribute>
</th>
</xsl:if>
<xsl:if test="@caption!=''">
<th>
<xsl:attribute name="class">
<xsl:value-of select="'data_header'"/>
<xsl:value-of select="$is_selected"/>
<xsl:value-of select="$is_disabled"/>
<xsl:if test="$is_sortable != 'false'">
<xsl:value-of select="' sortable'"/>
</xsl:if>
<xsl:if test="string-length(@key) > 0">
<xsl:value-of select="concat(' column_',@key)"/>
</xsl:if>
<xsl:if test="@type = 'action'">
<xsl:value-of select="' column_action'"/>
</xsl:if>
<xsl:if test="string-length(@role) > 0">
<xsl:value-of select="concat(' role_',@role)"/>
</xsl:if>
</xsl:attribute>
<xsl:if test="not(@nowrap='false')">
<xsl:attribute name="nowrap">nowrap</xsl:attribute>
</xsl:if>
<xsl:attribute name="align">
<xsl:choose>
<xsl:when test="@align!=''">
<xsl:value-of select="@align"/>
</xsl:when>
<xsl:when test="$align!=''">
<xsl:value-of select="$align"/>
</xsl:when>
<xsl:when test="@type='money'">right</xsl:when>
<xsl:when test="@type='action'">right</xsl:when>
<!--<xsl:when test="@type='number'">right</xsl:when> -->
<xsl:otherwise>left</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="@width">
<xsl:attribute name="width"><xsl:value-of select="@width"/>px</xsl:attribute>
</xsl:if>
<xsl:variable name="ajax_id">
<xsl:choose>
<xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'">ajaxFrame</xsl:when>
<xsl:otherwise>ajaxFrame1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="ajax_frame">
<xsl:choose>
<xsl:when test="$d_ajax_window = 'true' or $d_ajax_window = 'yes'"></xsl:when>
<xsl:otherwise>mainframe</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:choose>
<xsl:when test="@header='user'">
<xsl:apply-templates select="." mode="user_header"/>
</xsl:when>
<xsl:when test="$is_sortable='false' or @type='action'">
<xsl:value-of select="@caption"/>
</xsl:when>
<xsl:when test="@key=$orderby">
<xsl:variable name="sort">
<xsl:choose>
<xsl:when test="$orderveer = 'descending'">_desc</xsl:when>
<xsl:when test="$orderveer = 'ascending'">_asc</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="veer">
<xsl:choose>
<xsl:when test="$orderveer = 'ascending'">descending</xsl:when>
<xsl:when test="$orderveer = 'descending'"/>
<xsl:otherwise>ascending</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="order_value">
<xsl:if test="$veer!=''">
<xsl:value-of select="concat(@key, '@', $mime, '@', $veer)"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="onclick">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page)"/>.ajax?<xsl:value-of select="concat($webbox,'[fad_t_offset]=0')"/>&amp;<xsl:value-of select="concat($orderby_key,'=',$order_value)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>','', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:if>
</xsl:variable>
<a href="?{$webbox}[fad_t_offset]=0&amp;{$orderby_key}={$order_value}">
<xsl:attribute name="class">
<xsl:value-of select="'data_header_link_selected'"/>
<xsl:value-of select="concat(' sort',$sort)"/>
<xsl:if test="string-length(@key) > 0">
<xsl:value-of select="concat(' column_',@key)"/>
</xsl:if>
<xsl:if test="string-length(@role) > 0">
<xsl:value-of select="concat(' role_',@role)"/>
</xsl:if>
</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:value-of select="$onclick"/>
</xsl:attribute>
<xsl:value-of select="@caption"/>
<img src="/web.images.sort{$sort}.png" alt="" class="data_col_nav data_col_sort{$sort}"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="order_value" select="concat(@key, '@', $mime, '@ascending')"/>
<xsl:variable name="onclick">
<xsl:if test="$d_request_type = 'ajax' or $d_ajax_window = 'true' or $d_ajax_window = 'yes'">
requestNewWebbox('<xsl:value-of select="concat($ajax_params,$d_page)"/>.ajax?<xsl:value-of select="concat($webbox,'[fad_t_offset]=0')"/>&amp;<xsl:value-of select="concat($orderby_key,'=',$order_value)"/>&amp;ajaxmode=data&amp;<xsl:value-of select="concat('box_name=',$webbox,$d_sessionid)"/>','', 'GET', getParentAjaxFrameId(this,'<xsl:value-of select="$ajax_id"/>'),getParentAjaxMainFrameId(this,'<xsl:value-of select="$ajax_frame"/>'));return false;
</xsl:if>
</xsl:variable>
<a href="?{$webbox}[fad_t_offset]=0&amp;{$orderby_key}={$order_value}">
<xsl:attribute name="class">
<xsl:value-of select="'data_header_link'"/>
<xsl:value-of select="' sort'"/>
<xsl:if test="string-length(@key) > 0">
<xsl:value-of select="concat(' column_',@key)"/>
</xsl:if>
<xsl:if test="string-length(@role) > 0">
<xsl:value-of select="concat(' role_',@role)"/>
</xsl:if>
</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:value-of select="$onclick"/>
</xsl:attribute>
<xsl:value-of select="@caption"/>
<img src="/web.images.sort.png" alt="" class="data_col_nav data_col_sort"/>
</a>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="@multidelete='true'">
<input class="data_header_mark_all" title="alle markieren" name="mark_all" type="checkbox" checked="checked">
<xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked','checked').attr('style','border:solid 1px #f00;');}return false;</xsl:attribute>
</input>
<input class="data_header_unmark_all" title="keins markieren" name="unmark_all" type="checkbox">
<xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked',false).attr('style','border:dotted 2px #00f;');}return false;</xsl:attribute>
</input>
<a title="Markierte löschen" onclick="document.getElementById('{$webbox}_autosubmit').name='{$webbox}[action][show_multidelete]';document.getElementById('{$webbox}_autosubmit').click();return false;" href="#">
<i class="ii ii-delete" alt="Markierte löschen" title="Markierte löschen">Markierte löschen</i>
</a>
</xsl:if>
<xsl:if test="@multiselect and not(@multiselect='')">
<input class="data_header_mark_all" title="alle markieren" name="mark_all" type="checkbox" checked="checked">
<xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked','checked').attr('style','border:solid 1px #f00;');}return false;</xsl:attribute>
</input>
<input class="data_header_unmark_all" title="keins markieren" name="unmark_all" type="checkbox">
<xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked',false).attr('style','border:dotted 2px #00f;');}return false;</xsl:attribute>
</input>
<a title="Markierte auswählen" onclick="document.getElementById('{$webbox}_autosubmit').name='{$webbox}[action][show_multiselect]';document.getElementById('{$webbox}_autosubmit').click();return false;" href="#">
<i class="ii ii-{@multiselect}" alt="Markierte auswählen" title="Markierte auswählen">Markierte auswählen</i>
</a>
</xsl:if>
<xsl:if test="multiselect">
<input class="data_header_mark_all" title="alle markieren" name="mark_all" type="checkbox" checked="checked">
<xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked','checked').attr('style','border:solid 1px #f00;');}return false;</xsl:attribute>
</input>
<input class="data_header_unmark_all" title="keins markieren" name="unmark_all" type="checkbox">
<xsl:attribute name="onclick">if(typeof($)!='undefined'){$(this).closest('table').find('input:checkbox[name=\'<xsl:value-of select="$webbox"/>[marked_element][]\']').prop('checked',false).attr('style','border:dotted 2px #00f;');}return false;</xsl:attribute>
</input>
<xsl:for-each select="multiselect">
<xsl:variable name="apos">'</xsl:variable>
<xsl:variable name="onclick">
<xsl:value-of select="concat('document.getElementById(', $apos, $webbox, '_autosubmit', $apos, ').name=', $apos, $webbox, '[action][', @action, ']', $apos, ';')"/>

<xsl:if test="@form_action != ''">
<xsl:value-of select="concat('action = document.getElementById(', $apos, $webbox, $apos, ').action;')"/>
<xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').action = ', $apos, @form_action, $apos, ';')"/>
</xsl:if>

<xsl:if test="@target != ''">
<xsl:value-of select="concat('target = document.getElementById(', $apos, $webbox, $apos, ').target;')"/>
<xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').target = ', $apos, @target, $apos, ';')"/>
</xsl:if>

<xsl:value-of select="concat('document.getElementById(', $apos, $webbox, '_autosubmit', $apos, ').click();')"/>

<xsl:if test="@target != ''">
<xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').target = target;')"/>
</xsl:if>

<xsl:if test="@form_action != ''">
<xsl:value-of select="concat('document.getElementById(', $apos, $webbox, $apos, ').action = action;')"/>
</xsl:if>

<xsl:value-of select="'return false;'"/>
</xsl:variable>
<a title="{@title}" onclick="{$onclick}" href="#">
<i class="ii ii-{@icon}" alt="{@title}" title="{@title}">
<xsl:value-of select="@title"/>
</i>
</a>
</xsl:for-each>
</xsl:if>
</th>
</xsl:if>
</xsl:template>

<xsl:template name="icon">
<xsl:param name="icon"/>
<xsl:param name="alt"/>
<xsl:param name="title"/>
<xsl:param name="class"/>
<i>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$class != ''">
<xsl:value-of select="concat($class,' ii ii-',$icon)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('ii ii-',$icon)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$title != ''">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$alt != ''">
<xsl:attribute name="alt">
<xsl:value-of select="$alt"/>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$title!=''">
<xsl:value-of select="$title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$icon"/>
</xsl:otherwise>
</xsl:choose>
</i>
</xsl:template>


</xsl:stylesheet>";s:4:"/lib";s:256788:"<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:php="http://php.net/xsl"
xmlns:inveda="http://www.inveda.de"
xmlns:fad="http://www.fad-server.org"
xmlns:exslt="http://exslt.org/common"
xmlns:fb="http://www.facebook.com/2008/fbml"
xmlns:str="http://exslt.org/strings"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="php inveda exslt str xs fb fad xlink">

<!--xsl:output method="xml" omit-xml-declaration="yes" indent="no" encoding="utf-8"/-->
<xsl:decimal-format decimal-separator="," grouping-separator="."/>

<xsl:variable name="meta_header" select="document('arg:/inveda_cm' )/inveda_cm/meta_header"/>
<xsl:variable name="page" select="document('arg:/inveda_cm' )/inveda_cm/page"/>
<xsl:variable name="page_para" select="document('arg:/inveda_cm' )/inveda_cm/page_para"/>
<xsl:variable name="session" select="document('arg:/inveda_cm' )/inveda_cm/session"/>
<xsl:variable name="request_type" select="document('arg:/inveda_cm' )/inveda_cm/request_type"/>
<xsl:variable name="ajax_window" select="content/@ajax_window"/>
<xsl:variable name="skin_defs" select="php:function('web_Session::getSkinParams')"/>
<xsl:variable name="cookieconsent_display" select="php:function('mandant_Holder::getCurrentParam','cookieconsent_display')"/>
<xsl:variable name="is_secure" select="boolean(php:function('web_Session::isSecure'))"/>
<xsl:variable name="document" select="/*"/>

<xsl:variable name="ivwszm_cdata" select="document('ibs:/holder_param,ivwszm_cdata')/content/@value"/>



<xsl:variable name="phpsessid" select="document('ibs:/phpsessid')/result/@value"/>
<xsl:variable name="phpsessname" select="php:function('session_name')"/>
<xsl:variable name="sessionid">
<xsl:if test="$phpsessid != ''">
<xsl:value-of select="concat('&amp;',$phpsessname,'=',$phpsessid)"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="ajaxsessionid">
<xsl:if test="$phpsessid != ''">
<xsl:value-of select="concat('/',$phpsessname,'/',$phpsessid,'/')"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="languages" select="php:function('system_Language::getAvailableLanguages')"/>
<xsl:variable name="svg_embedded" select="$skin_defs/svg/embedded='yes'"/>


<xsl:template match="meta_redirect">
<xsl:if test=". != ''">
<script type="text/javascript">
newsite = window.open("<xsl:value-of select="."/>","newsite");
</script>
</xsl:if>
</xsl:template>

<xsl:variable name="meta-description">
<xsl:variable name="d">
<meta-description/>
</xsl:variable>
<xsl:apply-templates select="exslt:node-set($d)/*"/>
</xsl:variable>

<xsl:template match="meta-description">
<xsl:choose>
<xsl:when test="$document/@description != ''">
<xsl:value-of select="$document/@description"/>
</xsl:when>
<xsl:when test="$document/metadata/text != ''">
<xsl:value-of select="$document/metadata/text"/>
</xsl:when>
<xsl:when test="document('arg:/inveda_cm' )/inveda_cm/description != ''">
<xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/description"/>
</xsl:when>
</xsl:choose>
</xsl:template>

<xsl:template name="load_jquery">
<xsl:variable name="js1" select="php:function('web_Content::addScript','/scripts/jquery/3.3.1/jquery.min.js','text/javascript',1)"/>
<xsl:variable name="js2" select="php:function('web_Content::addScript','/scripts/jquery/jquery-ui/1.12.1/jquery-ui.min.js','text/javascript',2)"/>
</xsl:template>

<!-- HTML-Kopfdaten -->
<xsl:template name="inveda_html_header">
<xsl:param name="rss" select="''"/>
<xsl:param name="amp" select="'false'"/>
<xsl:param name="type" select="/content/metadata/publishtype"/>
<xsl:param name="author" select="''"/>
<xsl:param name="description" select="$meta-description"/>
<xsl:param name="keywords" />
<xsl:param name="language" select="php:function('web_Session::getLanguage')"/>
<xsl:param name="favicon" select="'/favicon.ico'"/>
<xsl:param name="icons" select="'/cms.share.css.iconsprite.css'"/>
<xsl:param name="load-jquery-ui" select="'yes'"/>
<xsl:param name="twitter" select="php:function('mandant_Holder::getCurrentParam','twitter_id')"/>
<xsl:param name="facebook" select="php:function('mandant_Holder::getCurrentParam','facebook.fanpage_id')"/>
<xsl:param name="robots"/>
<xsl:param name="css" select="concat('/',document('arg:/inveda_cm' )/inveda_cm/skin,'_',document('arg:/inveda_cm' )/inveda_cm/skin_scheme,'.css')"/>
<xsl:param name="js" select="concat('/',document('arg:/inveda_cm' )/inveda_cm/skin,'_',document('arg:/inveda_cm' )/inveda_cm/skin_scheme,'.js')"/>
<xsl:param name="ie_css"/>
<xsl:param name="ie6_css"/>
<xsl:param name="url" select="php:function('web_Session::getGlobal','FADSESSION','url')"/>
<xsl:param name="image" select="/content/@image"/>
<xsl:param name="image_type" select="/content/@image_type"/>
<xsl:param name="image_width" select="/content/@image_width"/>
<xsl:param name="image_height" select="/content/@image_height"/>
<xsl:param name="add"/>


<xsl:param name="title">
<xsl:variable name="page_title" select="php:function('web_Session::getCurrentHolderValue','page_title')"/>

<xsl:choose>
<xsl:when test="$page_title != ''">
<xsl:choose>
<xsl:when test="/content/@browser_caption!=''">
<xsl:value-of select="concat(/content/@browser_caption,' | ',$page_title)"/>
</xsl:when>
<xsl:when test="/content/@caption!=''">
<xsl:value-of select="concat(/content/@caption,' | ',$page_title)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$page_title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>

<xsl:otherwise>
<xsl:choose>
<xsl:when test="/content/@browser_caption!=''">
<xsl:value-of select="/content/@browser_caption"/>
</xsl:when>
<xsl:when test="/content/@caption!=''">
<xsl:value-of select="/content/@caption"/>
</xsl:when>
<xsl:otherwise>Homepage - powered by IReS</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:param>

<xsl:variable name="metadata" select="/content/metadata"/>


<xsl:variable name="robot">
<xsl:choose>
<xsl:when test="$robots != ''">
<xsl:value-of select="$robots"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="/content/@robots != ''">
<xsl:value-of select="/content/@robots"/>
</xsl:when>
<xsl:when test="/content/@index='no'">noindex</xsl:when>
<xsl:when test="$metadata/indexing='noindex'">noindex</xsl:when>
<xsl:otherwise>index, follow</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>


<head data-host="{php:function('php_uname', 'n')}">
<xsl:if test="$title != ''">
<title>
<xsl:value-of select="$title"/>
</title>
</xsl:if>

<!-- Zeichenkodierung HTML5 valide -->
<meta charset="UTF-8"/>

<!-- Open Graph Protocol http://opg.me -->
<meta property="og:title" content="{$title}"/>
<xsl:choose>
<xsl:when test="$type='blog'">
<meta property="og:type" content="article"/>
</xsl:when>
<xsl:otherwise>
<meta property="og:type" content="website"/>
<!-- meta name="Googlebot-News" content="noindex, nofollow"/ -->
</xsl:otherwise>
</xsl:choose>

<meta property="og:url" content="{$url}"/>
<xsl:if test="$image!=''">
<meta property="og:image" content="{php:function('web_Session::getGlobal','FADSESSION','host')}{$image}"/>
<meta name="thumbnail" content="{php:function('web_Session::getGlobal','FADSESSION','host')}{$image}" />
</xsl:if>
<xsl:if test="$image_type!=''">
<meta property="og:image:type" content="{$image_type}"/>
</xsl:if>
<xsl:if test="$image_width!=''">
<meta property="og:image:width" content="{$image_width}"/>
</xsl:if>
<xsl:if test="$image_height!=''">
<meta property="og:image:height" content="{$image_height}"/>
</xsl:if>
<xsl:choose>
<xsl:when test="$image_width &lt;= 1000">
<meta property="max-image-preview" content="standard"/>
</xsl:when>
<xsl:otherwise>
<meta property="max-image-preview" content="large"/>
</xsl:otherwise>
</xsl:choose>

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="{$title}"/>
<meta name="twitter:description" content="{$description}"/>
<xsl:if test="$image!=''">
<meta name="twitter:image" content="{php:function('web_Session::getGlobal','FADSESSION','host')}{$image}"/>
</xsl:if>

<xsl:if test="$twitter != ''">
<meta name="twitter:site" content="@{$twitter}"/>
<xsl:variable name="twitter_id_author" select="/content/author/twitter_id"/>
<xsl:if test="$twitter_id_author!=''">
<meta name="twitter:creator" content="@{$twitter_id_author}"/>
</xsl:if>
</xsl:if>
<xsl:if test="$facebook != ''">
<meta property="fb:pages" content="{$facebook}"/>
</xsl:if>
<meta property="og:description" content="{$description}" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="language" content="{$language}"/>
<meta name="robots" content="{$robot}"/>
<meta name="description" lang="{$language}" content="{$description}"/>
<xsl:if test="$author!=''">
<meta name="author" content="{$author}"/>
</xsl:if>
<xsl:variable name="kw">
<xsl:choose>
<xsl:when test="$metadata/Tags/Tag">
<xsl:for-each select="$metadata/Tags/Tag">
<xsl:if test="position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:if>
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:when>
<xsl:when test="$keywords != ''">
<xsl:value-of select="$keywords"/>
</xsl:when>
<xsl:when test="document('arg:/inveda_cm' )/inveda_cm/keywords != ''">
<xsl:value-of select="document('arg:/inveda_cm' )/inveda_cm/keywords"/>
</xsl:when>
</xsl:choose>
</xsl:variable>

<meta name="keywords" content="{$kw}"/>
<meta name="news_keywords" content="{$kw}"/>


<xsl:variable name="geo_region" select="php:function('mandant_Holder::getCurrentParam','geo.region')"/>
<xsl:if test="$geo_region!=''">
<meta name="geo.region" content="{$geo_region}"/>
</xsl:if>
<xsl:variable name="geo_placename" select="php:function('mandant_Holder::getCurrentParam','geo.placename')"/>
<xsl:if test="$geo_placename!=''">
<meta name="geo.placename" content="{$geo_placename}"/>
</xsl:if>
<xsl:variable name="geo_position" select="php:function('mandant_Holder::getCurrentParam','geo.position')"/>
<xsl:if test="$geo_position!=''">
<meta name="geo.position" content="{$geo_position}"/>
</xsl:if>

<xsl:call-template name="cookieconsent_extern"/>

<xsl:if test="$ivwszm_cdata != ''">
<script type="text/javascript" src="https://{$ivwszm_cdata}/iomm/latest/bootstrap/stub.js">//SZM</script>
</xsl:if>


<!--meta name="DC.Publisher" content="{$publisher}"/> <meta name="DC.Contributor" content="{$contributor}"/> <meta name="DC.Format" content="{$format}"/> <meta name="DC.Source" content="{$source}"/> <meta name="DC.Relation" content="{$relation}"/> <meta name="DC.Coverage" content="{$coverage}"/ -->

<xsl:if test="not(php:function('web_Session::isSecure'))">
<xsl:call-template name="cachecontrol"/>
</xsl:if>



<meta name="generator" content="FAD - Fast Application Development Server"/>
<!--meta name="copyright" content="{$copyright}"/ --> <!-- abgeschafft mit HTML 5 -->
<!--meta http-equiv="content-language" content="{$language}"/ --> <!-- verlagert nach <html lang="de"> -->

<!-- benötigte Meta Data einbinden -->
<xsl:for-each select="php:function('web_Content::getMetas')/metas/meta">
<xsl:copy-of select="."/>
</xsl:for-each>

<xsl:if test="$favicon != ''">
<link rel="shortcut icon" href="{$favicon}" type="image/x-icon"/>
<link rel="apple-touch-icon" href="{$favicon}" type="image/x-icon"/>
</xsl:if>


<xsl:if test="$amp = 'true'">
<link rel="amphtml" href="{php:function('web_Session::getPageUrl')}index.amp"/>
</xsl:if>
<xsl:if test="/content/@next">
<link rel="next" content="{/content/@next}"/>
</xsl:if>
<xsl:if test="/content/@prev">
<link rel="prev" content="{/content/@prev}"/>
</xsl:if>

<xsl:for-each select="$languages/*">
<xsl:variable name="lid" select="@id"/>
<xsl:choose>

<xsl:when test="$metadata/publishtype='blog'">
<xsl:variable name="la"
select="$metadata/Translations/t[@language=$lid
and @active='1']"/>
<xsl:if test="$language!=$la/@language">
<link rel="alternate" hreflang="{$lid}"
href="/id/{$la}/{$la/@alias}/"/>
</xsl:if>
</xsl:when>
<xsl:when test="$metadata/publishtype='page_blogreader'">
</xsl:when>
<xsl:when test="$metadata/publishtype='page_authorise'">
<xsl:variable name="id" select="php:function('cms_page_authorise_Interface::getPageId')"/>
<xsl:variable name="meta" select="php:function('cms_CMS::getMetaById',string($id))/metadata"/>
<xsl:variable name="la"
select="$meta/Translations/t[@language=$lid
and @active='1']"/>
<xsl:if test="$language!=$la/@language">
<link rel="alternate" hreflang="{$lid}"
href="/{$la}.html"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="la"
select="$metadata/Translations/t[@language=$lid
and @active='1']"/>
<xsl:if test="$language!=$la/@language">
<link rel="alternate" hreflang="{$lid}"
href="/{$la}.html"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>



<xsl:copy-of select="/content/header/link"/>

<!-- default jquery-ui.css kann im skin überschrieben werden -->

<xsl:if test="$load-jquery-ui = 'yes'">
<xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/jquery/jquery-ui/1.10.2/themes/default/jquery-ui.min.css', 'text/css', 'screen')"/>
<xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/jquery/jquery-ui/1.10.2/themes/default/jquery-ui.structure.min.css', 'text/css', 'screen')"/>
<xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/jquery/jquery-ui/1.10.2/themes/default/jquery-ui.theme.min.css', 'text/css', 'screen')"/>
</xsl:if>


<!-- <xsl:variable name="googleplus" select="php:function('mandant_Holder::getCurrentParam','google.plus.id')"/>-->
<!-- <xsl:if test="$googleplus!=''">-->
<!-- <link href="https://plus.google.com/{$googleplus}" rel="publisher"/>-->
<!-- </xsl:if>-->

<xsl:copy-of select="php:function('web_Content::getStyle', '/scripts/public.css', 'text/css', 'screen')"/>

<xsl:variable name="skin_dir" select="php:function('constant', 'SKIN_DIR')"/>
<xsl:if test="php:function('file_exists', concat($skin_dir, 'public/css/default.css'))">
<xsl:copy-of select="php:function('web_Content::getStyle', '/skins/css/default.css', 'text/css', 'screen')"/>
</xsl:if>

<!-- ggf. extra Stylesheets für IE definieren (IE6 hover etc.) -->
<xsl:if test="$ie_css"> <!-- allgemein für IE -->
<xsl:comment>[iflte IE 8]&gt;&lt;link media="screen" rel="stylesheet" type="text/css" href="<xsl:value-of select="$ie_css"/>"/&gt;&lt;![endif]</xsl:comment>
</xsl:if>
<xsl:if test="$ie6_css"> <!-- speziell für IE6 -->
<xsl:comment>[iflte IE 6]&gt;&lt;link media="screen" rel="stylesheet" type="text/css" href="<xsl:value-of select="$ie6_css"/>"/&gt;&lt;![endif]</xsl:comment>
</xsl:if>

<!-- benötigte Styles einbinden -->
<xsl:if test="$icons!=''">
<xsl:copy-of select="php:function('web_Content::getStyle', $icons)"/>
</xsl:if>
<xsl:for-each select="php:function('web_Content::getStyles')/styles/*">
<xsl:copy-of select="."/>
</xsl:for-each>

<!-- normales Stylesheet definieren -->
<xsl:choose>
<xsl:when test="document('arg:/inveda_cm' )/inveda_cm/skin='mobile'">
<xsl:variable name="mobile" select="concat(document('arg:/inveda_cm')/inveda_cm/skin_original, '_', document('arg:/inveda_cm')/inveda_cm/skin_scheme, '.css')"/>
<xsl:copy-of select="php:function('web_Content::getStyle', $mobile)"/>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$css != ''">
<xsl:copy-of select="php:function('web_Content::getStyle', $css)"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>

<xsl:variable name="archivedir" select="php:function('mandant_Holder::getCurrentArchiveDir')"/>
<xsl:if test="php:function('file_exists', concat($archivedir, 'custom.css'))">
<xsl:variable name="cb" select="php:function('filemtime', concat($archivedir, 'custom.css'))"/>
<link rel="stylesheet" type="text/css" href="/custom.css?cb={$cb}"/>
</xsl:if>

<xsl:for-each select="//link[@type='application/rss+xml']">
<xsl:choose>
<xsl:when test="substring(@href,1,4) = 'http' or substring(@href,1,1) = '/'">
<link rel="alternate" type="application/rss+xml" href="{@href}" title="{@title}"/>
</xsl:when>
<xsl:otherwise>
<link rel="alternate" type="application/rss+xml" href="/{@href}" title="{@title}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:for-each select="exslt:node-set($rss)/a">
<xsl:choose>
<xsl:when test="substring(@href,1,4) = 'http' or substring(@href,1,1) = '/'">
<link rel="alternate" type="application/rss+xml" href="{@href}" title="{@title}"/>
</xsl:when>
<xsl:otherwise>
<link rel="alternate" type="application/rss+xml" href="/{@href}" title="{@title}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

<xsl:for-each select="php:function('web_Content::getLinks')/links/*">
<xsl:copy-of select="."/>
</xsl:for-each>


<xsl:call-template name="directmode"/>

<!-- Google Analytics? -->
<xsl:if test="not(php:function('web_Session::isSecure'))">
<xsl:call-template name="google_analytics"/>
</xsl:if>

<xsl:if test="not($skin_defs/ajaxcode='no')">
<xsl:call-template name="ajaxcode"/>
</xsl:if>

<!-- benötigte Scripte einbinden -->
<xsl:for-each select="php:function('web_Content::getScripts')/scripts/*">
<xsl:choose>
<xsl:when test="@src != ''">
<xsl:copy-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:text disable-output-escaping="yes">//&lt;![CDATA[&#13;</xsl:text>
<xsl:value-of select="." disable-output-escaping="yes"/>
<xsl:text disable-output-escaping="yes">&#13;//]]&gt;</xsl:text>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

<!-- normales Javascript definieren -->
<xsl:variable name="skin" select="document('arg:/inveda_cm')/inveda_cm/skin"/>
<xsl:if test="php:function('file_exists', concat($skin_dir, 'public/js/', $skin, '.js'))">
<xsl:copy-of select="php:function('web_Content::getScript', $js)"/>
</xsl:if>

<xsl:copy-of select="/content/header/script"/>
<xsl:copy-of select="/content/header/*[name() != 'link' and name() != 'script']"/>





<xsl:call-template name="onbeforeunload"/>
<xsl:apply-templates select="document('arg:/inveda_cm' )/inveda_cm/meta_redirect"/>

<xsl:call-template name="cookieconsent"/>

<xsl:copy-of select="$add"/>

</head>
</xsl:template>

<xsl:template name="cachecontrol">
<!-- rene: das Cachen der Seiten im Browser führt im Moment nur unnötig zu Problemen bei Änderungen -->


<xsl:variable name="now" select="php:function('time')"/>
<xsl:choose>
<xsl:when test="/content/@cache = 'false'">
<xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','no-store, no-cache, must-revalidate, proxy-revalidate')"/>
<xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','no-cache')"/>
<meta http-equiv="cache-control" content="{$cache-control}"/>
<meta http-equiv="pragma" content="{$pragma}"/>
</xsl:when>
<xsl:when test="/content/@last-modified">
<xsl:variable name="lastmodified" select="php:function('web_Content::setLastModified',string(/content/@last-modified))"/>
<xsl:variable name="age" select="$now - /content/@last-modified"/>
<meta http-equiv="last-modified" content="{$lastmodified}"/>
<xsl:choose>
<xsl:when test="$age &lt; 604800">
<xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','public, max-age=1800, s-maxage=1800, must-revalidate')"/>
<xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','public')"/>
<xsl:variable name="expires" select="php:function('web_Content::setExpires',$now + 1800)"/>
<meta http-equiv="cache-control" content="{$cache-control}"/>
<meta http-equiv="pragma" content="{$pragma}"/>
<meta http-equiv="expires" content="{$expires}"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','public, max-age=604800, s-maxage=604800, must-revalidate')"/>
<xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','public')"/>
<xsl:variable name="expires" select="php:function('web_Content::setExpires',$now + 604800)"/>
<meta http-equiv="cache-control" content="{$cache-control}"/>
<meta http-equiv="pragma" content="{$pragma}"/>
<meta http-equiv="expires" content="{$expires}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="cache-control" select="php:function('web_Content::addHeader','Cache-Control','public, max-age=1800, s-maxage=1800, must-revalidate')"/>
<xsl:variable name="pragma" select="php:function('web_Content::addHeader','Pragma','public')"/>
<xsl:variable name="expires" select="php:function('web_Content::setExpires',$now + 1800)"/>
<meta http-equiv="cache-control" content="{$cache-control}"/>
<meta http-equiv="pragma" content="{$pragma}"/>
<meta http-equiv="expires" content="{$expires}"/>
</xsl:otherwise>
</xsl:choose>

</xsl:template>

<xsl:template name="directmode">
<xsl:if test="not($is_secure) and ($request_type = 'html') and php:function('web_Session::isDirectMode')">
<xsl:call-template name="load_jquery"/>
<xsl:variable name="code">
var fad_secure_url="<xsl:value-of select="php:function('web_Session::getURLSecure')"/>"
</xsl:variable>
<xsl:variable name="js3" select="php:function('web_Content::addScriptCode',string($code),'text/javascript', 3)"/>
<xsl:variable name="directmode" select="$skin_defs/directmode"/>
<xsl:choose>
<xsl:when test="$directmode!=''">
<xsl:variable name="js4" select="php:function('web_Content::addScript', concat('/',$directmode),'text/javascript',100)"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="js4" select="php:function('web_Content::addScript', '/scripts/directmode.js','text/javascript',100)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>


<!-- Menü ohne Tabellen -->
<xsl:template name="css_menu">
<xsl:param name="type"/>
<xsl:param name="valign"/>
<xsl:param name="width"/>
<xsl:param name="css_family"/>
<xsl:param name="close"/>
<xsl:param name="space"/>
<xsl:variable name="cellwidth">
<xsl:choose>
<xsl:when test="$width='auto'">
<xsl:value-of select="''"/>
</xsl:when>
<xsl:when test="$width!=''">
<xsl:value-of select="$width"/>
</xsl:when>
<xsl:otherwise>
<!-- stephan: funktioniert nur im ie; scheint sinnlos-->
<!--xsl:value-of select="95 div count(item)"/><xsl:value-of select="'%'"/-->
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:if test="count(item) &gt; 0">
<ul class="menulist_{$css_family}">

<xsl:for-each select="item">
<!--stephan: Bearbeitungsmodus und Lexikon mitten ins sysmenu schmuggeln, damit es korrekt gerendert wird-->
<!-- Martin: Außer dem Direktbearbeitungsmodus kann alles in der jeweiligen sysmenu.xml stehen! -->
<xsl:if test="position() = 1">
<xsl:if test="$css_family='sysmenu' and document('arg:/inveda_cm')/inveda_cm/preview_mode='1' and document('arg:/inveda_cm')/inveda_cm/user=''">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="text" select="'[Direktbearbeitungsmodus]'"/>
<xsl:with-param name="selected" select="@selected"/>
<xsl:with-param name="nowrap" select="'nowrap'"/>
<xsl:with-param name="tag" select="'li'"/>
<xsl:with-param name="link" select="concat('holder.publish.direct.login.html?editpage=',$page)"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="link_target"/>
</xsl:call-template>
</xsl:if>
<!--xsl:if test="$css_family='sysmenu' and document('ibs:/page_allowed,lexikon.public')/result/@value='yes'">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="text" select="@title"/>
<xsl:with-param name="selected" select="@selected"/>
<xsl:with-param name="nowrap" select="'nowrap'"/>
<xsl:with-param name="tag" select="'li'"/>
<xsl:with-param name="link" select="'lexikon.public.index.html'"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="link_target"/>
<xsl:with-param name="text" select="'Lexikon'"/>
</xsl:call-template>
</xsl:if-->
</xsl:if>
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="@link"/>
<xsl:with-param name="link_target" select="@link_target"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="text" select="@title"/>
<xsl:with-param name="selected" select="@selected"/>
<xsl:with-param name="nowrap" select="'nowrap'"/>
<xsl:with-param name="tag" select="'li'"/>
<xsl:with-param name="width" select="$cellwidth"/>
</xsl:call-template>
</xsl:for-each>

<xsl:if test="$close='yes'">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="'close'"/>
<xsl:with-param name="link" select="'javascript:opener.location.reload();self.close();'"/>
<xsl:with-param name="text" select="'Schließen x'"/>
<xsl:with-param name="nowrap" select="'nowrap'"/>
<xsl:with-param name="tag" select="'li'"/>
<xsl:with-param name="width" select="$cellwidth"/>
</xsl:call-template>
</xsl:if>
</ul>
<xsl:if test="$space!='no'">
<div id="menuspace_{$css_family}">&#160;</div>
</xsl:if>
</xsl:if>
</xsl:template>

<!-- allgemeines Menü-Template -->
<xsl:template name="inveda_menu">
<xsl:param name="fullwidth"/>
<xsl:param name="type"/>
<xsl:param name="name"/>
<xsl:param name="valign"/>
<xsl:param name="css_family"/>
<xsl:param name="bullet_family"/>
<xsl:param name="bullet_mime" select="'gif'"/>

<xsl:if test="count(item) &gt; 0">
<xsl:choose>
<xsl:when test="$type = 'horizontal_table'">
<table class="{concat($css_family,'_table')}" border="0" cellspacing="0" cellpadding="0">
<xsl:if test="$css_family!='sysmenu'">
<xsl:attribute name="eid">menu</xsl:attribute>
</xsl:if>
<xsl:if test="$fullwidth">
<xsl:attribute name="width">100%</xsl:attribute>
</xsl:if>
<tr class="{concat($css_family,'_row')}">
<!--xsl:if test="$css_family='sysmenu' and starts-with($page,'wiki')">
<xsl:call-template name="RenderCell">
<xsl:with-param name="name" select="$name"/>
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="concat('wiki.admin.html?WikiBox[action]=show_list&amp;site=',$page)"/>
<xsl:with-param name="link_target"/>
<xsl:with-param name="text" select="'Bearbeiten'"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</xsl:if-->

<xsl:for-each select="item">
<xsl:call-template name="RenderCell">
<xsl:with-param name="name" select="$name"/>
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="@link"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="action" select="@action"/>
<xsl:with-param name="link_target" select="@link_target"/>
<xsl:with-param name="anchor_id" select="@anchor_id"/>
<xsl:with-param name="text" select="@title"/>
<xsl:with-param name="selected" select="@selected"/>
<xsl:with-param name="nowrap" select="'nowrap'"/>
</xsl:call-template>
<xsl:if test="position() = 1">
<!--stephan: Bearbeitungsmodus und Lexikon mitten ins sysmenu schmuggeln, damit es korrekt gerendert wird-->
<!--xsl:if test="$css_family='sysmenu' and document('ibs:/page_allowed,lexikon.public')/result/@value='yes'">
<xsl:call-template name="RenderCell">
<xsl:with-param name="name" select="$name"/>
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="'lexikon.public.index.html'"/>
<xsl:with-param name="link_target"/>
<xsl:with-param name="text" select="'Lexikon'"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</xsl:if-->
<xsl:if test="$css_family='sysmenu' and document('arg:/inveda_cm')/inveda_cm/preview_mode='1' and document('arg:/inveda_cm')/inveda_cm/user=''">
<xsl:call-template name="RenderCell">
<xsl:with-param name="name" select="$name"/>
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="concat('holder.publish.direct.login.html?editpage=',$page)"/>
<xsl:with-param name="link_target"/>
<xsl:with-param name="text" select="'[Direktbearbeitungsmodus]'"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</xsl:if>

</xsl:if>
</xsl:for-each>
</tr>
</table>
</xsl:when>
<xsl:when test="$type = 'vertical_table'">
<table class="{concat($css_family,'_table')}" border="0" cellspacing="0" cellpadding="0">
<xsl:if test="$css_family!='sysmenu'">
<xsl:attribute name="eid">menu</xsl:attribute>
</xsl:if>
<xsl:if test="$fullwidth">
<xsl:attribute name="width">100%</xsl:attribute>
</xsl:if>
<xsl:if test="$css_family='sysmenu' and starts-with($page,'wiki')">
<tr class="{concat($css_family,'_row')}">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="concat('system.wiki.html?site=',$page)"/>
<xsl:with-param name="link_target"/>
<xsl:with-param name="text" select="'Bearbeiten'"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</tr>
</xsl:if>
<xsl:for-each select="item">
<tr class="{concat($css_family,'_row')}">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="@link"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="link_target" select="@link_target"/>
<xsl:with-param name="text" select="@title"/>
<xsl:with-param name="selected" select="@selected"/>
<!--xsl:with-param name="nowrap" select="'nowrap'"/-->
</xsl:call-template>
</tr>
</xsl:for-each>
</table>
</xsl:when>
<xsl:when test="$type = 'compact_table'">
<table class="{concat($css_family,'_table')}" border="0" cellspacing="0" cellpadding="0">
<xsl:if test="$fullwidth">
<xsl:attribute name="width">100%</xsl:attribute>
</xsl:if>
<xsl:for-each select="item">
<xsl:if test="@link!=''">
<tr class="{concat($css_family,'_row')}">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="@link"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="link_target" select="@link_target"/>
<xsl:with-param name="text" select="@title"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</tr>
<xsl:if test="@selected">
<tr>
<td>
<table width="90%" align="right" cellspacing="0" cellpadding="0">
<xsl:for-each select="../../menu[@name='menu' and @level='2']/item">
<tr class="{concat('sub',$css_family,'_row')}">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="concat('sub',$css_family)"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="@link"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="link_target" select="@link_target"/>
<xsl:with-param name="text" select="@title"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</tr>
<xsl:if test="@selected">
<tr>
<td>
<table width="90%" align="right" cellspacing="0" cellpadding="0">
<xsl:for-each select="../../menu[@name='menu' and @level='3']/item">
<tr class="{concat('subsub',$css_family,'_row')}">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="concat('subsub',$css_family)"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="valign" select="$valign"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="@link"/>
<xsl:with-param name="ajax" select="@ajax"/>
<xsl:with-param name="link_target" select="@link_target"/>
<xsl:with-param name="text" select="@title"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:template>

<xsl:template name="inveda_news">
<xsl:param name="has_link" select="'true'"/>
<xsl:param name="img_width"/>
<xsl:param name="img_height"/>
<xsl:param name="news"/>
<xsl:param name="link_name" select="'true'"/>
<xsl:param name="link_details"/>
<xsl:param name="read_more" select="'false'"/>
<xsl:for-each select="$news[position() &lt; 6]">
<xsl:sort select="@visible_start" order="descending"/>
<xsl:call-template name="RenderNewsItem">
<xsl:with-param name="has_link" select="$has_link"/>
<xsl:with-param name="img_width" select="$img_width"/>
<xsl:with-param name="img_height" select="$img_height"/>
<xsl:with-param name="link_name" select="$link_name"/>
<xsl:with-param name="link_details" select="$link_details"/>
<xsl:with-param name="read_more" select="$read_more"/>
</xsl:call-template>
</xsl:for-each>
<xsl:if test="count($news) &gt;= 6">
<a href="/news.customer.index.html" title="weitere News" class="news_more">weitere News</a>
</xsl:if>
</xsl:template>

<xsl:template name="RenderNewsItem">
<xsl:param name="has_link" select="'true'"/>
<xsl:param name="img_width"/>
<xsl:param name="img_height"/>
<xsl:param name="link_name" select="'true'"/>
<xsl:param name="link_details"/>
<xsl:param name="read_more" select="'false'"/>
<xsl:variable name="news_date" select="php:function('mandant_Holder::getCurrentParam','news.date_format')"/>
<xsl:variable name="metap" select="php:function('cms_blog_Interface::getMeta',string(@nr))/metadata"/>

<!--<xsl:variable name="news_page">-->
<!--<xsl:choose>-->
<!--<xsl:when test="$link_details!=''">-->
<!--<xsl:value-of select="concat($link_details,@nr)"/>-->
<!--</xsl:when>-->
<!--<xsl:when test="@news_page">-->
<!--<xsl:value-of select="concat(@news_page,'.html')"/>-->
<!--</xsl:when>-->
<!--<xsl:otherwise>news.html</xsl:otherwise>-->
<!--</xsl:choose>-->
<!--</xsl:variable>-->

<xsl:variable name="news_link">
<a href="/id/{@nr}/{@alias}/news.customer.reader.html" title="{@title}">
<xsl:value-of select="@title"/>
</a>
</xsl:variable>

<div class="news_entry">

<xsl:if test="$metap/img != ''">
<xsl:attribute name="class">news_entry img-inside</xsl:attribute>
</xsl:if>

<span eid="newsitem" eitem="{@nr}"/>

<xsl:choose>
<xsl:when test="$news_date = 'visible_start'">
<xsl:if test="$metap/visible_start !='' ">
<div class="news_date">
<xsl:variable name="date" select="php:function('strtotime',string($metap/visible_start))"/>
<xsl:value-of select="php:function('date','d.m.Y',number($date))"/>
</div>
</xsl:if>
</xsl:when>
<xsl:when test="$news_date = 'created'">
<xsl:if test="$metap/created !='' ">
<div class="news_date">
<xsl:variable name="date" select="php:function('strtotime',string($metap/created))"/>
<xsl:value-of select="php:function('date','d.m.Y - h:j',number($date))"/>
</div>
</xsl:if>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="@topic != ''">
<div class="news_topic">
<a class="news_topic" href="/topic/{@topic}/news.customer.index.html">
<xsl:value-of select="@topic"/>
</a>
</div>
</xsl:if>

<div class="news_title">
<xsl:choose>
<xsl:when test="$link_name='none'">
<a href="{@news_link}" title="{@title}">
<xsl:value-of select="@title"/>
</a>
</xsl:when>
<xsl:when test="$has_link != 'false' and $link_name!='none'">
<xsl:copy-of select="exslt:node-set($news_link)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@title"/>
</xsl:otherwise>
</xsl:choose>
</div>

<xsl:if test="$metap/img != ''">
<a href="/id/{@nr}/{@alias}/news.customer.reader.html" title="{@title}" class="news_img">
<img src="/blog.{$metap/nr}.images.{$metap/img}.{$img_width}x{$img_height}.{$metap/imgtype}" alt="{$metap/title}"/>
</a>
</xsl:if>

<xsl:if test="$has_link = 'no'">
<div class="news_content">
<p>
<xsl:value-of select="$metap/text"/>
</p>
</div>
</xsl:if>

<xsl:if test="$read_more = 'true'">
<xsl:choose>
<xsl:when test="$link_name='none'">
<a href="{@news_link}" title="{@title}" class="read_more">weiterlesen</a>
</xsl:when>
<xsl:when test="$has_link != 'false' and $link_name!='none'">
<a href="/id/{@nr}/{@alias}/news.customer.reader.html" title="{@title}" class="read_more">weiterlesen</a>
</xsl:when>
</xsl:choose>
</xsl:if>

</div>

</xsl:template>

<xsl:template name="page_functions">
<xsl:param name="help" select="/content/@hlp"/>
<!-- Versuch Hilfeicons bei Überschriften anzuzeigen? -->
<xsl:if test="$help != '' ">
<a href="/help/{$help}/help.index.html" target="_blank" rel="nofollow" onclick="getHelp('/help/{$help}/help.index.ajax', null, 'dialog');return false;">
<i class="ii ii-info" alt="Hilfe zu diesem Bereich" title="Hilfe zu diesem Bereich">help</i>
</a>
</xsl:if>
<!-- <xsl:if test="/content/@hlp_as_popup"> -->
<!-- <a href="javascript:window.open('help.{$page}.hlp','HelpWindow','width=300,height=500,left=(screen.width - 400),top=50');HelpWindow.focus();self.reload;"> -->
<!-- <img src="/web.images.help.png" title="Hilfe zur Seite" border="0" alt="Hilfe zur Seite"/> -->
<!-- </a> -->
<!-- </xsl:if> -->
<!-- <xsl:if test="/content/@hlp"> -->
<!-- <a class="page_function" href="{/content/@hlp}.hlp" target="inveda_help"> -->
<!-- <img src="/web.images.help.png" title="Hilfe zur Seite" border="0" style="width:16px;height:16px;" alt="Hilfe zur Seite"/> -->
<!-- </a> -->
<!-- </xsl:if> -->
<xsl:if test="document('ibs:/page_allowed,speaker.index')/result/@value='yes' and not(/content/@speaker='off')">
<a class="page_function" href="speaker.index.html?url={$page}.speak" title="Seite vorlesen lassen." onclick="requestWebbox('/url={$page}.speak/speaker.index.ajax?{$sessionid}'); return false;" target="_blank" rel="nofollow">

<img src="/web.images.mime-mp3.png" title="Seite vorlesen lassen" style="width:16px;height:16px;margin-left:3px;" alt="Seite vorlesen lassen"/>
</a>
</xsl:if>
<xsl:if test="/content/@rss">
<a class="page_function" href="{$page}_rss.script" target="_blank" rel="nofollow">
<img src="/web.images.feed.png" title="RSS Feed zu dieser Seite" style="width:16px;height:16px;margin-left:3px;" alt="RSS Feed zu dieser Seite"/>
</a>
</xsl:if>
<xsl:if test="/content/@pdf='yes' or /content/@pdf='true'">
<a class="page_function" href="{$page}.pdf" type="application/pdf" rel="nofollow">
<img src="/web.images.mime_pdf.png" title="Seite als PDF ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als PDF ausgeben"/>
</a>
</xsl:if>
<xsl:choose>
<xsl:when test="/content/@xml='yes'">
<a class="page_function" href="{$page}.xml" type="application/msexcel" rel="nofollow">
<img src="/web.images.mime_xml.png" title="XML-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="XML-Datei erstellen"/>
</a>
</xsl:when>
<xsl:when test="/content/@xml !='' and /content/@xml != 'yes'">
<a class="page_function" href="{/content/@xml}.xml" type="application/msexcel" target="_blank" rel="nofollow">
<img src="/web.images.mime_xml.png" title="XML-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="XML-Datei erstellen"/>
</a>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="/content/@dta='yes'">
<a class="page_function" href="{$page}.dta" type="application/text" rel="nofollow">
<img src="/web.images.mime_txt.png" title="DTA-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="DTA-Datei erstellen"/>
</a>
</xsl:when>
<xsl:when test="/content/@dta !='' and /content/@dta != 'yes'">
<a class="page_function" href="{/content/@dta}.dta" type="application/text" target="_blank" rel="nofollow">
<img src="/web.images.mime_txt.png" title="DTA-Datei erstellen" style="width:16px;height:16px;margin-left:3px;" alt="DTA-Datei erstellen"/>
</a>
</xsl:when>
</xsl:choose>
<xsl:if test="/content/@csv='true' or /content/@csv='yes'">
<a class="page_function" href="{$page}.csv" type="application/msexcel" target="_blank" rel="nofollow">
<img src="/web.images.mime_csv.png" title="Seite als CSV ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als CSV ausgeben"/>
</a>
</xsl:if>
<xsl:if test="/content/@xls='yes' or /content/@xls='true'">
<a class="page_function" href="{$page}.xls" type="application/msexcel" target="_blank" rel="nofollow">
<img src="/web.images.mime_xls.png" title="Seite als Excel-Tabelle ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als Excel-Tabelle ausgeben"/>
</a>
</xsl:if>
<xsl:if test="/content/@txt='yes' or /content/@txt='true'">
<a class="page_function" href="{$page}.txt" type="application/txt" target="_blank" rel="nofollow">
<img src="/web.images.mime_txt.png" title="Seite als Text ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als Text ausgeben"/>
</a>
</xsl:if>
<xsl:if test="/content/@xlsx='yes' or /content/@xlsx='true'">
<a class="page_function" href="{$page}.xlsx" type="application/msexcel" rel="nofollow">
<img src="/web.images.mime_xls.png" title="Seite als Excel-Tabelle ausgeben" style="width:16px;height:16px;margin-left:3px;" alt="Seite als Excel-Tabelle ausgeben"/>
</a>
</xsl:if>
<!-- Seite empfehlen -->
<xsl:if test="/content/@advise='yes' and document('ibs:/page_allowed,tools.advise.advise')/result/@value='yes'">
<xsl:if test="document('ibs:/holder_param,advise_linkarena')/content/@value='enabled'">
<a class="page_function" href="/ibs/out.php?s=linkarena&amp;t={php:function('urlencode',string(content/@caption))}"
title="Hier können Sie diese Seite bei Linkarena verlinken." target="_blank" rel="nofollow">
<img src="/web.images.linkarena.png" title="Seite bei Linkarena verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Linkarena verlinken"/>
</a>
</xsl:if>
<xsl:if test="document('ibs:/holder_param,advise_misterwong')/content/@value='enabled'">
<a class="page_function" href="/ibs/out.php?s=mrwong&amp;t={php:function('urlencode',string(content/@caption))}"
title="Hier können Sie diese Seite bei Mister Wong verlinken." target="_blank" rel="nofollow">
<img src="/web.images.misterwong.png" title="Seite bei Mister Wong verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Mister Wong verlinken"/>
</a>
</xsl:if>
<xsl:if test="document('ibs:/holder_param,advise_delicious')/content/@value='enabled'">
<a class="page_function" href="/ibs/out.php?s=delicious"
title="Hier können Sie diese Seite bei del.icio.us verlinken." target="_blank" rel="nofollow">
<img src="/web.images.delicious.png" title="Seite bei del.icio.us verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei del.icio.us verlinken"/>
</a>
</xsl:if>
<xsl:if test="document('ibs:/holder_param,advise_xing')/content/@value='enabled'">
<a class="page_function" href="/ibs/out.php?s=xing&amp;t={php:function('urlencode',string(content/@caption))}"
title="Hier können Sie diese Seite bei Xing verlinken." target="_blank" rel="nofollow">
<img src="/web.images.xing.png" title="Seite bei Xing verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Xing verlinken"/>
</a>
</xsl:if>
<xsl:if test="document('ibs:/holder_param,advise_twitter')/content/@value='enabled'">
<a class="page_function" href="/ibs/out.php?s=twitter"
title="Hier können Sie diese Seite bei Twitter verlinken." target="_blank" rel="nofollow">
<img src="/web.images.twitter.png" title="Seite bei Twitter verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Twitter verlinken"/>
</a>
</xsl:if>
<xsl:if test="document('ibs:/holder_param,advise_googleplus')/content/@value='enabled'">
<a class="page_function" href="/ibs/out.php?s=googleplus&amp;t={php:function('urlencode',string(content/@caption))}"
title="Hier können Sie diese Seite bei Google+ verlinken." target="_blank" rel="nofollow">
<img src="/web.images.googleplus.png" title="Seite bei Google+ verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Google+ verlinken"/>
</a>
</xsl:if>
<xsl:if test="document('ibs:/holder_param,advise_facebook')/content/@value='enabled'">
<a class="page_function" href="/ibs/out.php?s=facebook_share&amp;t={php:function('urlencode',string(content/@caption))}"
title="Hier können Sie diese Seite bei Facebook verlinken." target="_blank" rel="nofollow">
<img src="/web.images.facebook_new.png" title="Seite bei Facebook verlinken" style="width:16px;height:16px;margin-left:3px;" alt="Seite bei Facebook verlinken"/>
</a>
</xsl:if>
<xsl:if test="not(document('ibs:/holder_param,advise_mail')/content/@value='disabled')">
<a class="page_function" href="/tools.advise.advise.html?advise_page={$page}&amp;title={php:function('urlencode',string(content/@caption))}"
title="Hier können Sie diese Seite per E-Mail empfehlen."
onclick="requestWebbox('/advise_page/{$page}/title/{content/@caption}/tools.advise.advise.ajax?{$sessionid}'); return false;" target="_blank" rel="nofollow">
<img src="/web.images.write_letter.png" title="Seite per E-Mail empfehlen" style="width:16px;height:16px;margin-left:3px;" alt="Seite per E-Mail empfehlen"/>
</a>
</xsl:if>
</xsl:if>
</xsl:template>

<xsl:template name="ajaxcode">
<script type="text/javascript">
session = '<xsl:value-of select="document('arg:/inveda_cm' )/inveda_cm/session"/>';
</script>
<xsl:call-template name="load_jquery"/>
<xsl:variable name="js3" select="php:function('web_Content::addScript', '/scripts/ajax.js','text/javascript',100)"/>
</xsl:template>


<xsl:template name="replace_string">
<xsl:param name="string"/>
<xsl:param name="from"/>
<xsl:param name="to"/>
<xsl:choose>
<xsl:when test="contains($string, $from)">
<xsl:value-of select="substring-before($string, $from)"/>
<xsl:copy-of select="$to"/>
<xsl:call-template name="replace_string">
<xsl:with-param name="string"
select="substring-after($string, $from)"/>
<xsl:with-param name="from" select="$from"/>
<xsl:with-param name="to" select="$to"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


<!--Hauptbereich mit Inhaltsverzeichnis-->
<xsl:template name="inveda_content">
<xsl:variable name="textbox_extra"/>
<xsl:variable name="type"/>
<xsl:variable name="content_width"/>
<xsl:variable name="javascript" select="'yes'"/>

<xsl:variable name="page_encode">
return '&lt;page&gt;'.urlencode('<xsl:call-template name="replace_string">
<xsl:with-param name="string" select="$page" />
<xsl:with-param name="from">'</xsl:with-param>
<xsl:with-param name="to">\'</xsl:with-param>
</xsl:call-template>').'&lt;/page&gt;';
</xsl:variable>
<xsl:variable name="confirm_encode">
return '&lt;confirm&gt;'.urlencode('<xsl:call-template name="replace_string">
<xsl:with-param name="string" select="@confirm" />
<xsl:with-param name="from">'</xsl:with-param>
<xsl:with-param name="to">\'</xsl:with-param>
</xsl:call-template>').'&lt;/confirm&gt;';
</xsl:variable>
<xsl:variable name="register_encode">
return '&lt;register&gt;'.urlencode('<xsl:call-template name="replace_string">
<xsl:with-param name="string" select="@register" />
<xsl:with-param name="from">'</xsl:with-param>
<xsl:with-param name="to">\'</xsl:with-param>
</xsl:call-template>').'&lt;/register&gt;';
</xsl:variable>
<xsl:variable name="agree_encode">
return '&lt;agree&gt;'.urlencode('<xsl:call-template name="replace_string">
<xsl:with-param name="string" select="@agree" />
<xsl:with-param name="from">'</xsl:with-param>
<xsl:with-param name="to">\'</xsl:with-param>
</xsl:call-template>').'&lt;/agree&gt;';
</xsl:variable>
<xsl:variable name="password_encode">
return '&lt;password&gt;'.urlencode('<xsl:call-template name="replace_string">
<xsl:with-param name="string" select="@password" />
<xsl:with-param name="from">'</xsl:with-param>
<xsl:with-param name="to">\'</xsl:with-param>
</xsl:call-template>').'&lt;/password&gt;';
</xsl:variable>

<xsl:variable name="confirm" select="php:function('system_Transformer::Evaluate',$confirm_encode)" />
<xsl:variable name="register" select="php:function('system_Transformer::Evaluate',$register_encode)" />
<xsl:variable name="agree" select="php:function('system_Transformer::Evaluate',$agree_encode)" />
<xsl:variable name="password" select="php:function('system_Transformer::Evaluate',$password_encode)" />
<xsl:variable name="referrer" select="php:function('system_Transformer::Evaluate',$page_encode)" />

<xsl:choose>
<xsl:when test="$confirm!='' and document('ibs:/issearchengine')/issearchengine='false'">
<xsl:variable name="redirect">
<xsl:for-each select="document('ibs:/confirmed_pages')/confirmed_pages/page">
<xsl:if test="text() = $confirm">no</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:if test="$redirect != 'no'">
<xsl:copy-of select="document(concat('ibs:/redirect,tools.confirm,confirm_page=',$confirm,',confirm_referrer=',$referrer))"/>
</xsl:if>
</xsl:when>
<xsl:when test="$register!='' and document('ibs:/issearchengine')/issearchengine='false'">
<xsl:variable name="redirect">
<xsl:for-each select="document('ibs:/registered_pages')/registered_pages/page">
<xsl:if test="text() = $register">no</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:if test="$redirect != 'no'">
<xsl:copy-of select="document(concat('ibs:/redirect,tools.register,register_page=',$register,',register_referrer=',$referrer))"/>
</xsl:if>
</xsl:when>
<xsl:when test="$agree!='' and document('ibs:/issearchengine')/issearchengine='false'">
<xsl:variable name="redirect">
<xsl:for-each select="document('ibs:/agreed_pages')/agreed_pages/page">
<xsl:if test="text() = $agree">no</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:if test="$redirect != 'no'">
<xsl:copy-of select="document(concat('ibs:/redirect,tools.agree,agree_page=',$agree,',agree_referrer=',$referrer))"/>
</xsl:if>
</xsl:when>
<xsl:when test="$password!=''">
<xsl:variable name="redirect">
<xsl:for-each select="document('ibs:/password_pages')/password_pages/page">
<xsl:if test="text() = $referrer">no</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:if test="$redirect != 'no'">
<xsl:copy-of select="document(concat('ibs:/redirect,tools.password,password_pw=',$password,',password_referrer=',$referrer))"/>
</xsl:if>
</xsl:when>
</xsl:choose>

<xsl:variable name="edit">
<xsl:value-of select="@edit"/>
</xsl:variable>
<!--xsl:if test="$javascript='yes'">
<xsl:call-template name="ajaxcode"/>
</xsl:if-->

<!-- <xsl:variable name="width"> -->
<!--xsl:choose>
<xsl:when test="@width='unlimited'">100%</xsl:when>
<xsl:when test="string-length(@width) &lt; 1">100%</xsl:when>
<xsl:otherwise><xsl:value-of select="$content_width"/></xsl:otherwise>
</xsl:choose-->
<!--xsl:if test="string-length(@width) &gt; 1"><xsl:value-of select="$content_width"/></xsl:if-->
<!-- </xsl:variable> -->

<!--xsl:if test="$edit!='no'">
<xsl:attribute name="eid">content</xsl:attribute>
</xsl:if>
<xsl:if test="/content/@error!=''">
<xsl:attribute name="error"><xsl:value-of select="/content/@error"/></xsl:attribute>
</xsl:if-->

<div eitem="{document('arg:/inveda_cm')/inveda_cm/page}" class="i_content_wrapper">
<xsl:if test="@width">
<xsl:attribute name="style">
<xsl:value-of select="concat('width:',@width)"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$edit!='no' and not($type='include')">
<xsl:attribute name="eid">content</xsl:attribute>
</xsl:if>
<xsl:if test="/content/@error!=''">
<xsl:attribute name="error"><xsl:value-of select="/content/@error"/></xsl:attribute>
</xsl:if>
<xsl:if test="/content/@image and text">
<xsl:choose>
<xsl:when test="/content/@image_align = 'left'">
<div class="image_align_left" style="align:left">
<img src="{/content/@image}" border="0" alt=""/>
</div>
</xsl:when >
<xsl:when test="/content/@image_align = 'right'">
<div class="image_align_right" style="align:right">
<img src="{/content/@image}" border="0" alt=""/>
</div>
</xsl:when>
</xsl:choose>
</xsl:if>

<!-- Content rendern -->
<!-- <xsl:apply-templates select="header"/> frank: header wird auch in html header eingefügt. kann entfernt werden wenn alles funktioniert -->

<!-- rene: header mit html content zu details geändert -->
<xsl:apply-templates select="details"/>

<xsl:apply-templates select="text"/>
<xsl:if test="count(chapter) > 0">
<xsl:call-template name="chapter_index"/>
</xsl:if>
<xsl:apply-templates select="*[not(name() = 'text') and not(name() = 'header') and not(name() = 'details') and not(name() = 'metadata')]"/>
</div>

<xsl:if test="@textboxes='yes' and $type!='include'">
<xsl:apply-templates select="document('ibs:/original')/content//textbox_list"/>
<xsl:apply-templates select="document('ibs:/original')/content//register"/>
</xsl:if>

<!-- Kommentieren erlaubt?! -->
<xsl:if test="@comment='yes' or @comment = 'board'">
<xsl:if test="document('ibs:/page_allowed,comment.public.index')/result/@value='yes'">
<xsl:apply-templates select="document(concat('ibs:/include,comment.public.index,comment~',@comment,',page~',php:function('web_Session::getPage')))/content" />
</xsl:if>
</xsl:if>

</xsl:template>

<xsl:template match="chapter_index">
<xsl:call-template name="chapter_index"/>
</xsl:template>

<xsl:template name="chapter_index">
<ul class="chapter_index">
<a id="chapter_start" name="chapter_start">&#160;</a>
<h3 class="h_chapter_index">
<xsl:value-of select="'Kapitelübersicht'"/>
</h3>
<xsl:for-each select="//chapter">
<li data-chapter="{position()}">
<a href="#{generate-id(@caption)}" title="{@caption}">
<xsl:value-of select="@caption"/>
</a>
</li>
</xsl:for-each>
</ul>
</xsl:template>

<xsl:template match="header[../inveda:header]">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="chapter">
<xsl:call-template name="chapter"/>
</xsl:template>

<xsl:template name="chapter">
<xsl:variable name="skin_dir" select="php:function('constant', 'SKIN_DIR')"/>
<div class="chapter">
<a class="anker fad_visuallyhidden" name="{generate-id(@caption)}">&#160;</a>
<h3 class="h_chapter">
<xsl:variable name="picpath">
<xsl:choose>
<xsl:when test="document('ibs:/mobile_device')/content/@value = 'yes'">
/skins/images/mobile/icon_up.gif
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="php:function('file_exists', concat($skin_dir, 'public/images/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default , '/icon_up.svg'))">
<xsl:value-of select="concat('/skins/images/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/icon_up.svg')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('/skins/images/', document('arg:/inveda_cm' )/inveda_cm/skin,'/', document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default,'/icon_up.gif')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="#chapter_start" title="Hoch">
<img src="{$picpath}" width="16" height="16" border="0" alt="nach oben" title="nach oben"/>
</a>
<xsl:value-of select="@caption"/>
</h3>
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="register">
<xsl:call-template name="build_register"/>
</xsl:template>

<xsl:template name="build_register">
<xsl:for-each select="record">

<xsl:if test="document(concat('ibs:/page_allowed,',@link))/result/@value='yes'">

<!-- sollen die Links überhaupt angezeigt werden? -->
<xsl:variable name="record_layout" select="document('ibs:/holder_param,record_layout')/content/@value"/>

<!-- Liste aufbauen -->
<xsl:variable name="list">

<!-- Variable nur füllen, wenn Liste benötigt wird -->
<xsl:if test="$record_layout != 'simple'">

<!-- Links selektieren -->
<xsl:variable name="ref" select="document(concat('ibs:/include,',@link))/content"/>
<xsl:variable name="confirm" select="$ref/@confirm!=''"/>
<xsl:variable name="tb" select="$ref//box[document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes' and @link!='kontakt']"/>
<xsl:variable name="rc" select="$ref/text//register/record[document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']"/>
<xsl:variable name="lk" select="$ref//*[@href and @title!='' and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']"/>
<xsl:variable name="plink" select="concat('/',@link,'.html')"/>
<ul>
<xsl:if test="count($lk) &gt; 0">
<li>
<a title="{@title}" href="{@link}.html" class="first_link">
<xsl:value-of select="@title"/>
</a>
<xsl:for-each select="$lk">
<xsl:if test="position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:if>
<xsl:if test="position() = 1">
<xsl:value-of select="': '"/>
</xsl:if>
<a href="{@href}">
<xsl:if test="@onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="@onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="@title"/>
</a>
</xsl:for-each>
</li>
</xsl:if>
<xsl:if test="count($rc) &gt; 0">
<xsl:for-each select="$rc">
<xsl:sort select="@title"/>
<xsl:variable name="link">
<xsl:choose>
<xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<li>
<a title="{@title}" href="{$link}" class="first_link">
<xsl:value-of select="@title"/>
</a>
<xsl:variable name="ref2"
select="document(concat('ibs:/include,',@link))/content"/>
<xsl:for-each select="$ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']">
<!--xsl:sort select="@title"/ -->
<xsl:variable name="link2">
<xsl:choose>
<xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="position() = 1">
<xsl:value-of select="': '"/>
</xsl:if>
<xsl:if test="position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:if>
<a href="{$link2}">
<xsl:if test="$confirm!='true' and @onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="@onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="@title"/>
</a>
</xsl:for-each>
<xsl:for-each select="$ref2//*[not(@follow='no') and @href and @title!='' and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']">
<!--xsl:sort select="@title"/ -->
<xsl:choose>
<xsl:when test="count($ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']) &gt; 0 or position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="': '"/>
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="link2">
<xsl:choose>
<xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@href"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$link2}">
<xsl:value-of select="@title"/>
</a>
</xsl:for-each>
<xsl:for-each select="$ref2//box[@link and @link!='kontakt' and @caption!='' and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']">
<!--xsl:sort select="@caption"/ -->
<xsl:choose>
<xsl:when test="count($ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']) &gt; 0 or count($ref2//*[not(@follow='no') and @href and @title!='' and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']) &gt; 0 or position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="': '"/>
</xsl:otherwise>
</xsl:choose>
<xsl:variable name="link3">
<xsl:choose>
<xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$link3}">
<xsl:if test="$confirm!='true' and @mime='ajax'">
<xsl:attribute name="onclick">requestWebbox('<xsl:value-of select="@link"/>.ajax');return false;</xsl:attribute>
</xsl:if>
<xsl:value-of select="@caption"/>
</a>
</xsl:for-each>

</li>
</xsl:for-each>
</xsl:if>
<xsl:if test="count($tb) &gt; 0">
<xsl:for-each select="$tb[@caption!='']">
<xsl:variable name="link4">
<xsl:choose>
<xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<li>
<a title="{@caption}" href="{$link4}" class="first_link">
<xsl:if test="$confirm!='true' and @mime='ajax'">
<xsl:attribute name="onclick">requestWebbox('<xsl:value-of select="@link"/>.ajax');return false;</xsl:attribute>
</xsl:if>
<xsl:value-of select="@caption"/>
</a>

<xsl:if test="not(@mime='ajax')">
<xsl:variable name="ref2" select="document(concat('ibs:/include,',@link))/content"/>
<xsl:for-each select="$ref2//register/record[not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']">
<xsl:if test="position() = 1">
<xsl:value-of select="': '"/>
</xsl:if>
<xsl:if test="position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:if>
<xsl:variable name="link5">
<xsl:choose>
<xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$link5}">
<xsl:value-of select="concat('(',@title,')')"/>
</a>
</xsl:for-each>
<xsl:for-each select="$ref2//*[@href!='#' and @title!='' and not(@follow='no') and document(concat('ibs:/page_allowed,',translate(@href,'#','')))/result/@value='yes']">
<xsl:if test="position() = 1">
<xsl:value-of select="': '"/>
</xsl:if>
<xsl:if test="position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:if>
<a href="{@href}">
<xsl:if test="@onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="@onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="@title"/>
</a>
</xsl:for-each>
<xsl:for-each select="$ref2//box[@link and document(concat('ibs:/page_allowed,',translate(@link,'#','')))/result/@value='yes']">
<xsl:if test="position() = 1">
<xsl:value-of select="': '"/>
</xsl:if>
<xsl:if test="position() &gt; 1">
<xsl:value-of select="', '"/>
</xsl:if>
<xsl:variable name="link6">
<xsl:choose>
<xsl:when test="$confirm='true'"><xsl:value-of select="$plink"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@link"/>.html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$link6}">
<xsl:if test="$confirm!='true' and @mime='ajax'">
<xsl:attribute name="onclick">requestWebbox('<xsl:value-of select="@link"/>.ajax');return false;</xsl:attribute>
</xsl:if>
<xsl:value-of select="@caption"/>
</a>
</xsl:for-each>
</xsl:if>
</li>
</xsl:for-each>
</xsl:if>

</ul>
</xsl:if>
</xsl:variable>

<!-- Box aufbauen -->
<xsl:variable name="box">
<box link="{@link}" link_name="none">
<box_text>
<!-- Content -->
<div class="page_box_content_top">

<!-- Bild -->
<xsl:if test="@img!=''">
<a title="{@title}" href="{@link}.html" class="page_box_image"><img src="{@img}" alt="{@title}"><xsl:comment></xsl:comment></img></a>
</xsl:if>

<!-- Überschrift -->
<h3>
<a title="{@title}" href="{@link}.html">
<xsl:value-of select="@title"/>
</a>
</h3>

<!-- Kurztext -->
<div class="text"><xsl:copy-of select="text"/>
<xsl:copy-of select="boxtext"/>
</div>
</div>
<!-- enthaltene Links / Unterseiten -->
<xsl:if test="$list != ''">
<div class="page_box_content_links">
<xsl:copy-of select="$list"/>
</div>
</xsl:if>
</box_text>
</box>
</xsl:variable>
<xsl:apply-templates select="exslt:node-set($box)/*">
<xsl:with-param name="link_name" select="none"/>
</xsl:apply-templates>
</xsl:if>
</xsl:for-each>
</xsl:template>

<xsl:template match="fad:collection">
<xsl:call-template name="fad_collection"/>
</xsl:template>

<xsl:template match="fad:module">
<xsl:variable name="modules" select="php:function('cms_mod_Interface::getModules')"/>
<xsl:variable name="mod" select="@mod"/>
<xsl:variable name="fad_module" select="."/>
<xsl:for-each select="$modules/Data/Content/DataSet[@nr=$mod]">
<div class="insert_module">
<xsl:copy-of select="$fad_module/@*"/>
<xsl:apply-templates select="php:function('cms_mod_Module::getContent',string(@publishtype),string(@nr),string(@holderlogin))/*"/>
</div>
</xsl:for-each>
</xsl:template>

<xsl:template match="fad:modgroup">
<xsl:variable name="modgroups" select="php:function('cms_mod_Interface::getModgroups')/Data/Content/DataSet"/>
<xsl:variable name="group" select="@group"/>
<xsl:variable name="name" select="@name"/>
<xsl:variable name="showcaption" select="@showcaption"/>
<xsl:variable name="class" select="@class"/>
<xsl:variable name="fad_modgroup" select="."/>
<xsl:for-each select="$modgroups[@place='insert' and (@name=$name or @nr=$group)]">
<xsl:variable name="modgroup" select="@nr"/>
<div class="insert_modgroup">
<xsl:copy-of select="$fad_modgroup/@*[name() != 'group' and name() != 'name' and name() != 'showcaption' and name() != 'class']"/>
<xsl:if test="$class != ''">
<xsl:attribute name="class">
<xsl:value-of select="concat('insert_modgroup ', $class)"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$showcaption = 'yes'">
<h3 class="caption">
<xsl:value-of select="@name"/>
</h3>
</xsl:if>
<div class="container">
<xsl:variable name="modules" select="php:function('cms_mod_Interface::getModules')/Data/Content/DataSet"/>
<xsl:for-each select="$modules[places/place[@place='insert' and @groupid=$modgroup]]">
<xsl:sort select="places/place[@place='insert' and @groupid=$modgroup]/@position" data-type="number"/>
<xsl:apply-templates select="php:function('cms_mod_Module::getContent',string(@publishtype),string(@nr),string(@holderlogin))/*"/>
</xsl:for-each>
</div>
</div>
</xsl:for-each>
</xsl:template>

<xsl:template match="*[@class='mod_code']">
<xsl:copy-of select="."/>
</xsl:template>

<xsl:template name="fad_collection">
<!-- achtung: boxlisten auf mobilen geraeten haben nur eine spalte und die boxen sind immer 100% breit -->
<div class="textbox_list">
<xsl:variable name="allowed_boxes">

<xsl:copy-of select="fad:box[(not(@link) or @link='' or substring(@link,1,7)='http://' or substring(@link,1,8)='https://' or document(concat('ibs:/page_allowed,',@link))/result/@value='yes')]"/>
</xsl:variable>
<xsl:variable name="autocols" select="@autocols"/>
<xsl:variable name="cols">
<xsl:choose>
<xsl:when test="@cols = 'accordeon'">1</xsl:when>
<xsl:when test="@cols = 'tabview'">1</xsl:when>
<xsl:when test="@cols &gt; 1">
<xsl:value-of select="@cols"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="width">
<xsl:choose>
<xsl:when test="string-length(@boxwidth)>0">
<xsl:value-of select="@boxwidth"/>
</xsl:when>
<xsl:when test="document('ibs:/mobile_device')/content/@value='yes'">
<xsl:value-of select="'100%'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat((99 - @cols) div @cols,'%')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="height">
<xsl:value-of select="@boxheight"/>
</xsl:variable>
<xsl:variable name="margin">
<xsl:choose>
<xsl:when test="@margin">
<xsl:value-of select="@margin"/>
</xsl:when>
<xsl:otherwise>1%</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="@cols='tabview'">
<xsl:variable name="tview">
<tab_view>
<xsl:for-each select="exslt:node-set($allowed_boxes)/fad:box">
<xsl:variable name="caption">
<xsl:choose>
<xsl:when test='count(./fad:caption) &gt; 0'>
<xsl:value-of select="./fad:caption"/>
</xsl:when>
<xsl:when test="string-length(@caption) &gt; 0">
<xsl:value-of select="@caption"/>
</xsl:when>
<xsl:otherwise>Tab
<xsl:value-of select="position()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tab_view_tab caption="{$caption}">
<xsl:call-template name="fad_box"/>
</tab_view_tab>
</xsl:for-each>
</tab_view>
</xsl:variable>
<xsl:call-template name="tab_view">
<xsl:with-param name="tview" select="exslt:node-set($tview)/tab_view"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="exslt:node-set($allowed_boxes)/fad:box">
<xsl:choose>
<xsl:when test="($cols &gt; 1) or ($autocols = 'yes')">
<div class="page_box_col">
<xsl:attribute name="style">
<xsl:value-of select="concat('width:',$width)"/>
</xsl:attribute>
<xsl:call-template name="fad_box">
<xsl:with-param name="height" select="$height"/>
<xsl:with-param name="id" select="@id"/>
</xsl:call-template>
</div>
</xsl:when>
<xsl:when test="document('ibs:/mobile_device')/content/@value='yes'">
<xsl:call-template name="box">
<xsl:with-param name="width" select="$width"/>
<xsl:with-param name="height" select="$height"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="fad_box">
<xsl:with-param name="height" select="$height"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>

<xsl:template match="fad:box">
<xsl:call-template name="fad_box"/>
</xsl:template>

<xsl:template name="fad_box">
<!-- Parameter kommen standardmäßig aus dem Attribut,
können aber wahlweise beim Aufruf von außen überschrieben werden -->
<xsl:param name="id" select="@id"/>
<xsl:param name="class" select="@class"/>
<xsl:param name="width" select="@width"/>
<xsl:param name="height" select="@height"/>
<xsl:param name="caption" select="@caption"/>
<xsl:param name="teaser" select="@teaser"/>
<xsl:param name="link" select="@link"/>
<xsl:param name="mime" select="@mime"/>
<xsl:param name="link_text" select="@link_text"/>
<xsl:param name="link_name" select="@link_name"/>
<xsl:param name="link_params" select="@link_params"/>
<xsl:param name="link_image" select="@link_image"/>
<xsl:param name="img" select="php:function('system_util_URL::proxy',string(@img))"/>
<xsl:param name="img_position" select="@img_position"/>
<xsl:param name="img_align" select="@img_align"/>
<xsl:param name="ibs_mime" select="@ibs_mime"/>
<xsl:param name="allowed" select="@allowed"/>
<xsl:param name="target" select="@target"/>
<xsl:param name="popup_top" select="@popup_top"/>
<xsl:param name="popup_left" select="@popup_left"/>
<xsl:param name="popup_width" select="@popup_width"/>
<xsl:param name="popup_height" select="@popup_height"/>
<xsl:param name="anchor_name" select="@anchor_name"/>
<xsl:variable name="new_link_text"><xsl:value-of select="php:function('system_Language::translate', string($link_text))"/></xsl:variable>
<xsl:variable name="new_teaser"><xsl:value-of select="php:function('system_Language::translate', string($teaser))"/></xsl:variable>
<xsl:variable name="new_caption"><xsl:value-of select="php:function('system_Language::translate', string($caption))"/></xsl:variable>


<xsl:variable name="confirm"
select="not(php:function('web_Session::isSecure'))
and document(concat('ibs:/include,',$link))/content/@confirm!=''"/>


<!-- Für width, link_text, img_position und img_align gibt es Standardwerte,
falls weder Parameter noch Attribut gesetzt sind -->
<xsl:variable name="box_width">
<xsl:if test="$width != ''">width:<xsl:value-of select="$width"/>;</xsl:if>
</xsl:variable>
<xsl:variable name="box_height">
<xsl:if test="$height != ''"><xsl:value-of select="$height"/></xsl:if>
</xsl:variable>
<xsl:variable name="box_link_text">
<xsl:choose>
<xsl:when test="$new_link_text != ''"><xsl:value-of select="$new_link_text"/></xsl:when>
<xsl:otherwise>mehr...</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="box_img_position">
<xsl:choose>
<xsl:when test="$img_position != ''"><xsl:value-of select="$img_position"/></xsl:when>
<xsl:otherwise><xsl:value-of select="'normal'"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="box_img_align">
<xsl:choose>
<xsl:when test="$img_align != ''"><xsl:value-of select="$img_align"/></xsl:when>
<xsl:when test="$img_position = 'top'">top</xsl:when>
<xsl:otherwise><xsl:value-of select="'left'"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>

<!-- Ab hier ist wieder alter Quellcode ;) -->
<xsl:variable name="boxmime">
<xsl:choose>
<xsl:when test="$confirm='true'">html</xsl:when>
<xsl:when test="$ibs_mime != ''"><xsl:value-of select="$ibs_mime"/></xsl:when>
<xsl:when test="$mime = 'none'"></xsl:when>
<xsl:when test="$mime != ''"><xsl:value-of select="$mime"/></xsl:when>
<xsl:otherwise>html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="show">
<xsl:choose>
<xsl:when test="$allowed='override'">yes</xsl:when>
<xsl:when test="substring($link,1,7)='http://'">yes</xsl:when>
<xsl:when test="substring($link,1,8)='https://'">yes</xsl:when>
<xsl:when test="not($link) or $link='' or document(concat('ibs:/page_allowed,',$link))/result/@value='yes'">yes</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="link_href">
<xsl:choose>
<xsl:when test="$boxmime='ajax' or $boxmime='popup'">#</xsl:when>
<xsl:when test="$boxmime=''"><xsl:value-of select="$link"/></xsl:when>
<xsl:otherwise><xsl:value-of select="concat($link,'.',$boxmime)"/></xsl:otherwise>
</xsl:choose>
<xsl:if test="$link_params">
<xsl:value-of select="concat('?',$link_params)"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="link_onclick">
<xsl:if test="$boxmime='ajax'">
requestWebbox('<xsl:value-of select="$link"/>.ajax?<xsl:value-of select="$sessionid"/>');return false;
</xsl:if>
<xsl:if test="$boxmime='popup'">
open('<xsl:value-of select="$link"/>.html?<xsl:value-of select="$sessionid"/>','','location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes<xsl:if test="$popup_top!=''">,top=<xsl:value-of select="$popup_top"/></xsl:if><xsl:if test="$popup_left!=''">,left=<xsl:value-of select="$popup_left"/></xsl:if><xsl:if test="$popup_width!=''">,width=<xsl:value-of select="$popup_width"/></xsl:if><xsl:if test="$popup_height!=''">,height=<xsl:value-of select="$popup_height"/></xsl:if>');return false;
</xsl:if>
</xsl:variable>
<xsl:variable name="render_caption_top">
<xsl:if test="caption_top_left!='' or caption_top_right!='' or $box_img_position='caption'">yes</xsl:if>
</xsl:variable>
<xsl:variable name="img_padding_left_right">
<xsl:choose>
<xsl:when test="$box_img_align='right'">padding-left:3px</xsl:when>
<xsl:otherwise>padding-right:3px</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="img_padding_top">
<xsl:choose>
<xsl:when test="$box_img_position='caption'">padding-top:0px</xsl:when>
<xsl:otherwise>padding-top:3px</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="box_img">
<xsl:variable name="box_img_class">
<xsl:choose>
<xsl:when test="$box_img_position='top'">page_box_image_top</xsl:when>
<xsl:otherwise>page_box_image</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$link!=''">
<div class="{$box_img_class}" style="float:{$box_img_align};{$img_padding_left_right};{$img_padding_top};position:relative;">
<a href="{$link_href}" title="{$new_caption}">
<xsl:if test="$link_onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="$link_onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$target"/>
</xsl:attribute>
</xsl:if>
<!-- LINN: max-width weil sonst zu große Fotos alles verschieben -->
<img src="{$img}" class="{$class}" alt="" style="max-width:600px;"/>
</a>
</div>
</xsl:when>
<xsl:otherwise>
<div class="page_box_image" style="float:{$box_img_align};">
<img src="{$img}" class="page_box_image" alt=""/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<!-- stephan: fuer mobile geraete gibt es extra boxen. diese hier zu rendern waere noch unuebersichtlicher, als es jetzt schon ist...-->
<xsl:choose>
<xsl:when test="document('ibs:/mobile_device')/content/@value='yes'">
<xsl:call-template name="mobile_box">
<xsl:with-param name="caption" select="$caption"/>
<xsl:with-param name="link" select="$link"/>
<xsl:with-param name="img" select="$img"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$show='yes'">
<xsl:variable name="box_class">
<xsl:choose>
<xsl:when test="@link_style='hover'">page_box page_box_hover<xsl:if test="$class!=''"> <xsl:value-of select="$class"/></xsl:if></xsl:when>
<xsl:otherwise>page_box<xsl:if test="$class!=''"><xsl:value-of select="concat(' ',$class)"/></xsl:if></xsl:otherwise>
</xsl:choose>
</xsl:variable>

<div class="{$box_class}">
<xsl:choose>
<xsl:when test="@link_style='hover'">
<xsl:if test="$link_text != ''">
<xsl:attribute name="title"><xsl:value-of select="$link_text"/></xsl:attribute>
</xsl:if>
<xsl:attribute name="style"><xsl:value-of select="$box_width"/>cursor:pointer;</xsl:attribute>
<xsl:attribute name="onclick">
<xsl:choose>
<xsl:when test="$target='_blank'">window.open('<xsl:value-of select="$link_href"/>');</xsl:when>
<xsl:otherwise>window.location.href='<xsl:value-of select="$link_href"/>';</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$box_width!=''">
<xsl:attribute name="style"><xsl:value-of select="$box_width"/></xsl:attribute>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$id!=''">
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
</xsl:if>
<xsl:if test="$anchor_name != ''">
<a name="{$anchor_name}"/>
</xsl:if>
<!-- CAPTION -->
<!-- caption_top und bild in caption -->
<xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align!='right'">
<!-- bild links neben caption -->
<xsl:copy-of select="$box_img"/>
</xsl:if>
<xsl:if test="$render_caption_top='yes' or ($box_img_align='right' and $box_img_position='caption')">
<div class="page_box_caption_top">
<xsl:if test="caption_top_left!='' or caption_top_right!='' or $img!=''">
<xsl:if test="caption_top_left!=''">
<div class="page_box_caption_top_left"><xsl:value-of select="caption_top_left"/></div>
</xsl:if>
<xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align='right'">
<!-- bild rechts neben caption -->
<xsl:copy-of select="$box_img"/>
</xsl:if>
<xsl:if test="caption_top_right!=''">
<div class="page_box_caption_top_right">
<xsl:value-of select="caption_top_right"/>
</div>
</xsl:if>
</xsl:if>
<!-- float der ueberschrift abhaengig von bild -->
<!--xsl:choose>
<xsl:when test="$img!='' and $box_img_position='caption' and $box_img_align='right'">
<div style="clear:left;height:1px;line-height:1px;font-size:1px">&#160;</div>
</xsl:when>
<xsl:otherwise>
<div style="clear:right;height:1px;line-height:1px;font-size:1px">&#160;</div>
</xsl:otherwise>
</xsl:choose-->
</div>
</xsl:if>
<xsl:if test="$new_caption!=''">
<xsl:variable name="new_teaser_caption">
<xsl:if test="$new_teaser != ''">
<xsl:value-of select="concat($new_teaser, ': ')"/>
</xsl:if>
<xsl:value-of select="$new_caption"/>
</xsl:variable>
<div class="page_box_caption" title="{$new_teaser_caption}">
<xsl:choose>
<xsl:when test="$link!=''">
<a href="{$link_href}">
<xsl:if test="$link_onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="$link_onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$target"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$new_teaser_caption"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$new_teaser_caption"/>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:if>
<xsl:if test="caption_extra!=''">
<div class="page_box_caption_extra"><xsl:copy-of select="caption_extra"/></div>
</xsl:if>
<!-- CONTENT -->
<!-- bild neben content -->
<div class="page_box_content">
<xsl:if test="$box_height != '' and $box_height != 'auto'">
<xsl:attribute name="style">height:<xsl:value-of select="$box_height"/>;"</xsl:attribute>
</xsl:if>
<xsl:if test="$img!='' and $box_img_position!='caption'">
<xsl:copy-of select="$box_img"/>
</xsl:if>
<!-- die alten boxen haben noch kein box_text knoten -->
<xsl:choose>
<xsl:when test="box_text">
<div class="page_box_text">
<xsl:apply-templates select="box_text/node()"/>
</div>
</xsl:when>
<xsl:otherwise>
<div class="page_box_text">
<xsl:apply-templates/>
</div>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$link_name='none' or @link_style='hover'"/>
<xsl:otherwise>
<xsl:if test="$link!=''">
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="caption_top_left != ''">
<xsl:value-of select="concat(caption_top_left,': ',$new_caption)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$new_caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$link_href}" title="{$title}" class="page_box_more">
<xsl:if test="$link_onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="$link_onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$target"/>
</xsl:attribute>
</xsl:if>
<!-- Bild vorhanden? Dann Text nur als tooltip anzeigen -->
<xsl:choose>
<xsl:when test="$link_image != ''">
<img src="{$link_image}" title="{$box_link_text}" alt=""/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$box_link_text"/>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</div>
<!-- FOOTER -->
<xsl:if test="footer!=''">
<div class="page_box_footer">
<xsl:copy-of select="footer"/>
</div>
</xsl:if>
</div>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template match="textbox_list">
<xsl:call-template name="textbox_list"/>
</xsl:template>

<xsl:template name="textbox_list">
<!-- achtung: boxlisten auf mobilen geraeten haben nur eine spalte und die boxen sind immer 100% breit -->
<div class="textbox_list">
<xsl:if test="@width">
<xsl:attribute name="style">
<xsl:value-of select="concat('width:',@width)"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@class">
<xsl:attribute name="class">
<xsl:value-of select="concat('textbox_list ',@class)"/>
</xsl:attribute>
</xsl:if>
<xsl:variable name="allowed_boxes">
<xsl:copy-of select="box[(not(@link) or @link='' or substring(@link,1,7)='http://' or substring(@link,1,8)='https://' or document(concat('ibs:/page_allowed,',@link))/result/@value='yes')]"/>
</xsl:variable>
<xsl:variable name="autocols" select="@autocols"/>
<xsl:variable name="cols">
<xsl:choose>
<xsl:when test="@cols &gt; 1">
<xsl:value-of select="@cols"/>
</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="boxwidth">
<xsl:choose>
<xsl:when test="string-length(@boxwidth)>0">
<xsl:value-of select="@boxwidth"/>
</xsl:when>
<xsl:when test="document('ibs:/mobile_device')/content/@value='yes'">
<xsl:value-of select="'100%'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(100 div @cols,'%')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="boxheight">
<xsl:value-of select="@boxheight"/>
</xsl:variable>
<!--<xsl:variable name="margin">-->
<!--<xsl:choose>-->
<!--<xsl:when test="@margin">-->
<!--<xsl:value-of select="@margin"/>-->
<!--</xsl:when>-->
<!--<xsl:otherwise>1%</xsl:otherwise>-->
<!--</xsl:choose>-->
<!--</xsl:variable>-->
<xsl:for-each select="exslt:node-set($allowed_boxes)/box">
<xsl:choose>
<xsl:when test="($cols &gt; 1) or ($autocols = 'yes')">
<div class="page_box_col">
<xsl:choose>
<xsl:when test="position() = 1">
<xsl:attribute name="class">page_box_col first_col</xsl:attribute>
</xsl:when>
<xsl:when test="position() = last()">
<xsl:attribute name="class">page_box_col last_col</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:if test="not($autocols)">
<xsl:attribute name="style">
<xsl:value-of select="concat('width:',$boxwidth)"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="box">
<xsl:with-param name="height" select="$boxheight"/>
<xsl:with-param name="id" select="@id"/>
</xsl:call-template>
</div>
</xsl:when>
<xsl:when test="document('ibs:/mobile_device')/content/@value='yes'">
<xsl:call-template name="box">
<xsl:with-param name="width" select="$boxwidth"/>
<xsl:with-param name="height" select="$boxheight"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="box">
<xsl:with-param name="height" select="$boxheight"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:template>

<xsl:template match="icon_panel">
<xsl:call-template name="icon_panel"/>
</xsl:template>

<xsl:template name="icon_panel">
<div class="icon_panel">
<xsl:apply-templates select="*"/>
</div>
</xsl:template>

<xsl:template match="icon_box">
<xsl:call-template name="icon_box"/>
</xsl:template>

<xsl:template name="inveda_site_box">
<xsl:param name="caption"/>
<xsl:param name="caption_link"/>
<xsl:param name="content"/>
<xsl:param name="content_style"/>
<xsl:param name="header_height" select="'20'"/>
<xsl:param name="inner_spacing_h" select="'3'"/>
<xsl:param name="width" select="'auto'"/>
<xsl:param name="overflow" select="'hidden'"/>
<xsl:param name="topbox" select="'false'"/>

<!--xsl:variable name="new_caption"><xsl:value-of select="php:function('getTranslation', string($caption))"/></xsl:variable-->
<xsl:variable name="new_caption">
<xsl:value-of select="php:function('system_Language::translate', string($caption))"/>
</xsl:variable>

<xsl:variable name="cstyle">
<xsl:if test="$content_style!=''">
<xsl:value-of select="concat('_',$content_style)"/>
</xsl:if>
</xsl:variable>
<xsl:if test="$new_caption != ''">
<xsl:choose>
<xsl:when test="$caption_link != ''">
<a href="{$caption_link}">
<xsl:element name="div">
<xsl:attribute name="style">line-height:<xsl:value-of select="$header_height"/>px;width:auto;overflow:<xsl:value-of select="$overflow"/>;
</xsl:attribute>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$topbox = 'true'">site_box_header<xsl:value-of select="$cstyle"/>_round
</xsl:when>
<xsl:otherwise>site_box_header<xsl:value-of select="$cstyle"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="$new_caption"/>
</xsl:element>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:element name="div">
<xsl:attribute name="style">line-height:<xsl:value-of select="$header_height"/>px;width:auto;overflow:<xsl:value-of select="$overflow"/>;
</xsl:attribute>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$topbox = 'true'">site_box_header<xsl:value-of select="$cstyle"/>_round
</xsl:when>
<xsl:otherwise>site_box_header<xsl:value-of select="$cstyle"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="$new_caption"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<!--xsl:if test="$inner_spacing_h &gt; 0">
<div style="line-height:{$inner_spacing_h}px;width:{$width};overflow:{$overflow};">&#160;</div>
</xsl:if-->
<xsl:if test="$content">
<xsl:if test="$content/text() = ''">
&#160;
</xsl:if>
<div style="width:{$width};overflow:{$overflow};" class="site_box_content{$cstyle}" valign="top">
<xsl:apply-templates select="exslt:node-set($content)"/>
</div>
</xsl:if>
<!--xsl:if test="$inner_spacing_h &gt; 0">
<div style="line-height:{$inner_spacing_h}px;width:{$width};overflow:{$overflow}">&#160;</div>
</xsl:if-->

</xsl:template>

<!-- default parameter fuer die box. dieses template kann in die transformation des jeweiligen webskins kopiert werden, um die default parameter fuer den skin zu individualisieren. -->
<!--xsl:template match="box">
<xsl:variable name="width">
<xsl:choose>
<xsl:when test="@width!=''"><xsl:value-of select="@width"/></xsl:when>
<xsl:otherwise>100%</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="link_text">
<xsl:choose>
<xsl:when test="@link_text!=''"><xsl:value-of select="@link_text"/></xsl:when>
<xsl:otherwise>mehr...</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="img_position">
<xsl:choose>
<xsl:when test="@img_position!=''"><xsl:value-of select="@img_position"/></xsl:when>
<xsl:otherwise>normal</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="img_align">
<xsl:choose>
<xsl:when test="@img_align!=''"><xsl:value-of select="@img_align"/></xsl:when>
<xsl:otherwise>left</xsl:otherwise>
</xsl:choose>
</xsl:variable>
</xsl:template-->

<xsl:template name="box">
<!-- Parameter kommen standardmäßig aus dem Attribut,
können aber wahlweise beim Aufruf von außen überschrieben werden -->
<xsl:param name="id" select="@id"/>
<xsl:param name="class" select="@class"/>
<xsl:param name="width" select="@width"/>
<xsl:param name="height" select="@height"/>
<xsl:param name="teaser" select="@teaser"/>
<xsl:param name="caption" select="@caption"/>
<xsl:param name="link" select="@link"/>
<xsl:param name="mime" select="@mime"/>
<xsl:param name="link_text" select="@link_text"/>
<xsl:param name="link_name" select="@link_name"/>
<xsl:param name="link_params" select="@link_params"/>
<xsl:param name="link_image" select="@link_image"/>
<xsl:param name="img" select="php:function('system_util_URL::proxy',string(@img))"/>
<xsl:param name="img_position" select="@img_position"/>
<xsl:param name="img_align" select="@img_align"/>
<xsl:param name="ibs_mime" select="@ibs_mime"/>
<xsl:param name="allowed" select="@allowed"/>
<xsl:param name="target" select="@target"/>
<xsl:param name="popup_top" select="@popup_top"/>
<xsl:param name="popup_left" select="@popup_left"/>
<xsl:param name="popup_width" select="@popup_width"/>
<xsl:param name="popup_height" select="@popup_height"/>
<xsl:param name="anchor_name" select="@anchor_name"/>
<xsl:param name="visible" select="@visible"/>
<xsl:variable name="new_link_text"><xsl:value-of select="php:function('system_Language::translate', string($link_text))"/></xsl:variable>
<xsl:variable name="new_teaser"><xsl:value-of select="php:function('system_Language::translate', string($teaser))"/></xsl:variable>
<xsl:variable name="new_caption"><xsl:value-of select="php:function('system_Language::translate', string($caption))"/></xsl:variable>

<xsl:variable name="confirm"
select="not(php:function('web_Session::isSecure'))
and document(concat('ibs:/include,',$link))/content/@confirm!=''"/>


<!-- Für width, link_text, img_position und img_align gibt es Standardwerte,
falls weder Parameter noch Attribut gesetzt sind -->
<xsl:variable name="box_width">
<xsl:if test="$width != ''">width:<xsl:value-of select="$width"/>;</xsl:if>
</xsl:variable>
<xsl:variable name="box_height">
<xsl:if test="$height != ''"><xsl:value-of select="$height"/></xsl:if>
</xsl:variable>
<xsl:variable name="box_link_text">
<xsl:choose>
<xsl:when test="$new_link_text != ''"><xsl:value-of select="$new_link_text"/></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$caption = 'Zugriffszähler'">Hier finden Sie weitere Statistiken.</xsl:when>
<xsl:when test="$caption = 'Produktabos'">Erfahren Sie mehr über weitere Abos.</xsl:when>
<xsl:otherwise> mehr...</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="box_img_position">
<xsl:choose>
<xsl:when test="$img_position != ''"><xsl:value-of select="$img_position"/></xsl:when>
<xsl:otherwise><xsl:value-of select="'normal'"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="box_img_align">
<xsl:choose>
<xsl:when test="$img_align != ''"><xsl:value-of select="$img_align"/></xsl:when>
<xsl:when test="$img_position = 'top'">top</xsl:when>
<xsl:otherwise><xsl:value-of select="'left'"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="box_visible">
<xsl:if test="$visible = 'false'">visibility: hidden;</xsl:if>
</xsl:variable>

<!-- Ab hier ist wieder alter Quellcode ;) -->
<xsl:variable name="boxmime">
<xsl:choose>
<xsl:when test="$confirm='yes'">html</xsl:when>
<xsl:when test="$ibs_mime != ''"><xsl:value-of select="$ibs_mime"/></xsl:when>
<xsl:when test="$mime = 'none'"></xsl:when>
<xsl:when test="$mime != ''"><xsl:value-of select="$mime"/></xsl:when>
<xsl:otherwise>html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="show">
<xsl:choose>
<xsl:when test="$allowed='override'">yes</xsl:when>
<xsl:when test="substring($link,1,7)='http://'">yes</xsl:when>
<xsl:when test="substring($link,1,8)='https://'">yes</xsl:when>
<xsl:when test="not($link) or $link='' or document(concat('ibs:/page_allowed,',$link))/result/@value='yes'">yes</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="link_href">
<xsl:choose>
<xsl:when test="$boxmime='ajax' or $boxmime='popup'">#</xsl:when>
<xsl:when test="$boxmime=''"><xsl:value-of select="$link"/></xsl:when>
<xsl:otherwise><xsl:value-of select="concat($link,'.',$boxmime)"/></xsl:otherwise>
</xsl:choose>
<xsl:if test="$link_params">
<xsl:value-of select="concat('?',$link_params)"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="link_onclick">
<xsl:if test="$boxmime='ajax'">
requestWebbox('<xsl:value-of select="$link"/>.ajax?<xsl:value-of select="$sessionid"/>');return false;
</xsl:if>
<xsl:if test="$boxmime='popup'">
open('<xsl:value-of select="$link"/>.html?<xsl:value-of select="$sessionid"/>','','location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes<xsl:if test="$popup_top!=''">,top=<xsl:value-of select="$popup_top"/></xsl:if><xsl:if test="$popup_left!=''">,left=<xsl:value-of select="$popup_left"/></xsl:if><xsl:if test="$popup_width!=''">,width=<xsl:value-of select="$popup_width"/></xsl:if><xsl:if test="$popup_height!=''">,height=<xsl:value-of select="$popup_height"/></xsl:if>');return false;
</xsl:if>
</xsl:variable>
<xsl:variable name="render_caption_top">
<xsl:if test="caption_top_left!='' or caption_top_right!='' or $box_img_position='caption'">yes</xsl:if>
</xsl:variable>
<xsl:variable name="img_padding_left_right">
<xsl:choose>
<xsl:when test="$box_img_align='right'">padding-left:3px</xsl:when>
<xsl:otherwise>padding-right:3px</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="img_padding_top">
<xsl:choose>
<xsl:when test="$box_img_position='caption'">padding-top:0px</xsl:when>
<xsl:otherwise>padding-top:3px</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="box_img">
<xsl:variable name="box_img_class">
<xsl:choose>
<xsl:when test="$box_img_position='top'">page_box_image_top</xsl:when>
<xsl:otherwise>page_box_image</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$link!=''">
<div class="{$box_img_class}" style="float:{$box_img_align};{$img_padding_left_right};{$img_padding_top};position:relative;">
<a href="{$link_href}" title="{$new_caption}">
<xsl:if test="$link_onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="$link_onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$target"/>
</xsl:attribute>
</xsl:if>
<!-- LINN: max-width weil sonst zu große Fotos alles verschieben -->
<img src="{$img}" class="{$class}" alt="" style="max-width:600px;"/>
</a>
</div>
</xsl:when>
<xsl:otherwise>
<div class="page_box_image" style="float:{$box_img_align};">
<img src="{$img}" class="page_box_image" alt=""/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<!-- stephan: fuer mobile geraete gibt es extra boxen. diese hier zu rendern waere noch unuebersichtlicher, als es jetzt schon ist...-->
<xsl:choose>
<xsl:when test="document('ibs:/mobile_device')/content/@value='yes'">
<xsl:call-template name="mobile_box">
<xsl:with-param name="caption" select="$caption"/>
<xsl:with-param name="link" select="$link"/>
<xsl:with-param name="img" select="$img"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$show='yes'">
<xsl:variable name="box_class">
<xsl:choose>
<xsl:when test="@link_style='hover'">page_box page_box_hover<xsl:if test="$class!=''"> <xsl:value-of select="$class"/></xsl:if></xsl:when>
<xsl:otherwise>page_box<xsl:if test="$class!=''"><xsl:value-of select="concat(' ',$class)"/></xsl:if></xsl:otherwise>
</xsl:choose>
</xsl:variable>

<div class="{$box_class}">
<xsl:choose>
<xsl:when test="@link_style='hover'">
<xsl:if test="$link_text != ''">
<xsl:attribute name="title"><xsl:value-of select="$link_text"/></xsl:attribute>
</xsl:if>
<xsl:attribute name="style"><xsl:value-of select="$box_width"/>cursor:pointer;<xsl:value-of select="$box_visible"/></xsl:attribute>
<xsl:attribute name="onclick">
<xsl:choose>
<xsl:when test="$target='_blank'">window.open('<xsl:value-of select="$link_href"/>');</xsl:when>
<xsl:otherwise>window.location.href='<xsl:value-of select="$link_href"/>';</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$box_width != '' or $box_visible!= '' ">
<xsl:attribute name="style"><xsl:value-of select="$box_width"/><xsl:value-of select="$box_visible"/></xsl:attribute>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$id!=''">
<xsl:attribute name="id"><xsl:value-of select="$id"/></xsl:attribute>
</xsl:if>
<xsl:if test="$anchor_name != ''">
<a name="{$anchor_name}"/>
</xsl:if>
<!-- CAPTION -->
<!-- caption_top und bild in caption -->
<xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align!='right'">
<!-- bild links neben caption -->
<xsl:copy-of select="$box_img"/>
</xsl:if>
<xsl:if test="$render_caption_top='yes' or ($box_img_align='right' and $box_img_position='caption')">
<div class="page_box_caption_top">
<xsl:if test="caption_top_left!='' or caption_top_right!='' or $img!=''">
<xsl:if test="caption_top_left!=''">
<div class="page_box_caption_top_left"><xsl:value-of select="caption_top_left"/></div>
</xsl:if>
<xsl:if test="$img!='' and $box_img_position='caption' and $box_img_align='right'">
<!-- bild rechts neben caption -->
<xsl:copy-of select="$box_img"/>
</xsl:if>
<xsl:if test="caption_top_right!=''">
<div class="page_box_caption_top_right">
<xsl:value-of select="caption_top_right"/>
</div>
</xsl:if>
</xsl:if>
<!-- float der ueberschrift abhaengig von bild -->
<!--xsl:choose>
<xsl:when test="$img!='' and $box_img_position='caption' and $box_img_align='right'">
<div style="clear:left;height:1px;line-height:1px;font-size:1px">&#160;</div>
</xsl:when>
<xsl:otherwise>
<div style="clear:right;height:1px;line-height:1px;font-size:1px">&#160;</div>
</xsl:otherwise>
</xsl:choose-->
</div>
</xsl:if>
<xsl:if test="$new_caption!=''">
<xsl:variable name="new_teaser_caption">
<xsl:if test="$new_teaser != ''">
<xsl:value-of select="concat($new_teaser, ': ')"/>
</xsl:if>
<xsl:value-of select="$new_caption"/>
</xsl:variable>
<div class="page_box_caption" title="{$new_teaser_caption}">
<xsl:choose>
<xsl:when test="$link!=''">
<a href="{$link_href}">
<xsl:if test="$link_onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="$link_onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$target"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$new_teaser_caption"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$new_teaser_caption"/>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:if>
<xsl:if test="caption_extra!=''">
<div class="page_box_caption_extra"><xsl:copy-of select="caption_extra"/></div>
</xsl:if>
<!-- CONTENT -->
<!-- bild neben content -->
<div class="page_box_content">
<xsl:if test="$box_height != '' and $box_height != 'auto'">
<xsl:attribute name="style">height:<xsl:value-of select="$box_height"/>;"</xsl:attribute>
</xsl:if>
<xsl:if test="$img!='' and $box_img_position!='caption'">
<xsl:copy-of select="$box_img"/>
</xsl:if>
<!-- die alten boxen haben noch kein box_text knoten -->
<xsl:choose>
<xsl:when test="box_text">
<div class="page_box_text">
<xsl:apply-templates select="box_text/node()"/>
</div>
</xsl:when>
<xsl:otherwise>
<div class="page_box_text">
<xsl:apply-templates/>
</div>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$link_name='none' or @link_style='hover'"/>
<xsl:otherwise>
<xsl:if test="$link!=''">
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="caption_top_left != ''">
<xsl:value-of select="concat(caption_top_left,': ',$new_caption)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$new_caption"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{$link_href}" title="{$title}" class="page_box_more">
<xsl:if test="$link_onclick != ''">
<xsl:attribute name="onclick">
<xsl:value-of select="$link_onclick"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$target"/>
</xsl:attribute>
</xsl:if>
<!-- Bild vorhanden? Dann Text nur als tooltip anzeigen -->
<xsl:choose>
<xsl:when test="$link_image != ''">
<img src="{$link_image}" title="{$box_link_text}" alt=""/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$box_link_text"/>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</div>
<!-- FOOTER -->
<xsl:if test="footer!=''">
<div class="page_box_footer">
<xsl:copy-of select="footer"/>
</div>
</xsl:if>
</div>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="mobile_box">
<xsl:param name="caption"/>
<xsl:param name="link"/>
<xsl:param name="img"/>
<div style="clear:both">
<xsl:if test="$link!=''">
<xsl:attribute name="onclick">window.iui.showPageByHref('<xsl:value-of select="$link"/>.html', null, null, null, null, '<xsl:value-of select="$caption"/>');
</xsl:attribute>
</xsl:if>
<div class="page_box_caption" title="{$caption}">
<a><xsl:value-of select="$caption"/>&#160;
</a>
</div>
<div class="page_box_content" style="height:auto;overflow:auto;">
<xsl:choose>
<xsl:when test="$img='t'">
<img align="left" border="0" src="textbox.{$nr}.jpg" alt=""/>
</xsl:when>
<xsl:when test="$img!='' and $img!='f'">
<img align="left" border="0" src="{$img}" alt=""/>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="box_text!=''">
<xsl:apply-templates select="box_text/node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</xsl:template>

<xsl:template name="icon_box">
<!-- Parameter kommen standardmäßig aus dem Attribut,
können aber wahlweise beim Aufruf von außen überschrieben werden -->
<xsl:param name="id" select="@id"/>
<xsl:param name="class" select="@class"/>
<xsl:param name="width" select="@width"/>
<xsl:param name="height" select="@height"/>
<xsl:param name="caption" select="@caption"/>
<xsl:param name="link" select="@link"/>
<xsl:param name="mime" select="@mime"/>
<xsl:param name="link_text" select="@link_text"/>
<xsl:param name="link_name" select="@link_name"/>
<xsl:param name="link_params" select="@link_params"/>
<xsl:param name="link_image" select="@link_image"/>
<xsl:param name="img" select="php:function('system_util_URL::proxy',string(@img))"/>
<xsl:param name="img_position" select="@img_position"/>
<xsl:param name="img_align" select="@img_align"/>
<xsl:param name="ibs_mime" select="@ibs_mime"/>
<xsl:param name="allowed" select="@allowed"/>
<xsl:param name="target" select="@target"/>
<xsl:param name="popup_top" select="@popup_top"/>
<xsl:param name="popup_left" select="@popup_left"/>
<xsl:param name="popup_width" select="@popup_width"/>
<xsl:param name="popup_height" select="@popup_height"/>
<xsl:param name="anchor_name" select="@anchor_name"/>
<xsl:variable name="new_link_text">
<xsl:value-of select="php:function('system_Language::translate', string($link_text))"/>
</xsl:variable>
<xsl:variable name="new_caption">
<xsl:value-of select="php:function('system_Language::translate', string($caption))"/>
</xsl:variable>

<xsl:variable name="skin">
<xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin"/>
</xsl:variable>
<xsl:variable name="skin_scheme_default">
<xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin_scheme_default"/>
</xsl:variable>

<xsl:variable name="boxmime">
<xsl:choose>
<xsl:when test="$ibs_mime != ''">
<xsl:value-of select="$ibs_mime"/>
</xsl:when>
<xsl:when test="$mime = 'none'"></xsl:when>
<xsl:when test="$mime != ''">
<xsl:value-of select="$mime"/>
</xsl:when>
<xsl:otherwise>html</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="link_href">
<xsl:choose>
<xsl:when test="$boxmime='ajax' or $boxmime='popup'">#</xsl:when>
<xsl:when test="$boxmime=''">
<xsl:value-of select="$link"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($link,'.',$boxmime)"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$link_params">
<xsl:value-of select="concat('?',$link_params)"/>
</xsl:if>
</xsl:variable>

<div class="icon-wrapper">
<xsl:if test="@layout">
<xsl:attribute name="class">
<xsl:value-of select="'icon-wrapper wide'"/>
</xsl:attribute>
</xsl:if>
<div class="icon-box">
<xsl:if test="@background">
<xsl:attribute name="style">
<xsl:value-of select="concat('background:',@background)"/>
</xsl:attribute>
</xsl:if>
<a href="{$link_href}">
<xsl:if test="$target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$target"/>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$img">
<div class="icon">
<img src="/skins/{document('arg:/inveda_cm' )/inveda_cm/skin}/{document('arg:/inveda_cm' )/inveda_cm/skin_scheme_default}/images/{$img}" alt="{$new_caption}"/>
</div>
</xsl:when>
<xsl:otherwise>
<div class="icon-letter">
<xsl:value-of select="@letter"/>
</div>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$new_caption!=''">
<span class="caption">
<xsl:value-of select="$new_caption"/>
</span>
</xsl:if>
</a>
</div>
</div>
</xsl:template>


<xsl:template match="checklink">
<xsl:if test="(document(concat('ibs:/page_allowed,',@link))/result/@value='yes' and (@inverted!='yes' or not(@inverted))) or
(document(concat('ibs:/page_allowed,',@link))/result/@value!='yes' and @inverted='yes')">
<xsl:variable name="mime">
<xsl:choose>
<xsl:when test="@ibs_mime != ''">
<xsl:value-of select="@ibs_mime"/>
</xsl:when>
<xsl:when test="@mime != ''">
<xsl:value-of select="@mime"/>
</xsl:when>
<xsl:otherwise>html</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:choose>
<xsl:when test="@copy='yes'">
<xsl:apply-templates select="*"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="RenderActionElement">
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="title" select="."/>
<xsl:with-param name="caption" select="."/>
<xsl:with-param name="link" select="concat(@link,'.',$mime)"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>

<!-- allgemeines Inhaltsverzeichnis-Template -->
<xsl:template name="inveda_chapter_menu">
<xsl:param name="type"/>
<xsl:param name="css_family"/>
<xsl:param name="bullet_family"/>
<xsl:param name="bullet_mime" select="'gif'"/>
<xsl:if test="count(chapter) &gt; 0">
<xsl:choose>
<xsl:when test="$type = 'horizontal_table'">
<table class="{concat($css_family,'_table')}">
<tr class="{concat($css_family,'_row')}">
<xsl:for-each select="chapter">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="link" select="concat('#',generate-id(@caption))"/>
<xsl:with-param name="text" select="@caption"/>
<xsl:with-param name="selected" select="@selected"/>
</xsl:call-template>
</xsl:for-each>
</tr>
</table>
</xsl:when>
<xsl:when test="$type = 'vertical_table'">
<table class="{concat($css_family,'_table')}" border="0">
<xsl:for-each select="chapter">
<tr class="{concat($css_family,'_row')}">
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="bullet_family" select="$bullet_family"/>
<xsl:with-param name="bullet_mime" select="$bullet_mime"/>
<xsl:with-param name="icon" select="@icon"/>
</xsl:call-template>
<xsl:call-template name="RenderCell">
<xsl:with-param name="css_family" select="$css_family"/>
<xsl:with-param name="link" select="concat('#',generate-id(@caption))"/>
<xsl:with-param name="text" select="@caption"/>
<xsl:with-param name="selected" select="@selected"/>
<xsl:with-param name="icon" select="@icon"/>
</xsl:call-template>
</tr>
</xsl:for-each>
</table>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:template>

<!-- allgemeines Template für Tabellen-Zellen -->
<xsl:template name="RenderCell">
<xsl:param name="name"/>
<xsl:param name="css_family"/>
<xsl:param name="bullet_family"/>
<xsl:param name="bullet_mime" select="'gif'"/>
<xsl:param name="selected"/>
<xsl:param name="nowrap"/>
<xsl:param name="secure" select="''"/>
<xsl:param name="valign"/>
<xsl:param name="text"/>
<xsl:param name="icon"/>
<xsl:param name="link"/>
<xsl:param name="ajax" select="@ajax"/>
<xsl:param name="action"/>
<xsl:param name="link_target"/>
<xsl:param name="anchor_id"/>
<xsl:param name="tag" select="'td'"/>
<xsl:param name="colspan" select="1"/>
<xsl:param name="width" select="''"/>
<xsl:variable name="skin">
<xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin"/>
</xsl:variable>
<xsl:variable name="skin_scheme_default">
<xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin_scheme_default"/>
</xsl:variable>
<xsl:variable name="skin_scheme">
<xsl:value-of select="document('arg:/inveda_cm')/inveda_cm/skin_scheme"/>
</xsl:variable>
<xsl:variable name="append_selected">
<xsl:choose>
<xsl:when test="$selected='true'">selected</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$selected"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:element name="{$tag}">
<xsl:if test="$width!=''">
<xsl:attribute name="style">
<xsl:value-of select="concat('width:',$width)"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$colspan &gt; 1">
<xsl:attribute name="colspan">
<xsl:value-of select="$colspan"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$valign">
<xsl:attribute name="valign">
<xsl:value-of select="$valign"/>
</xsl:attribute>
</xsl:if>
<!-- li-tag uterstützt kein nowrap Attribut! -->
<xsl:if test="$nowrap != '' and $tag != 'li' and not(@nowrap='false')">
<xsl:attribute name="nowrap">nowrap</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$css_family='sysmenu' or $secure=1">
<xsl:variable name="name2">
<xsl:choose>
<!--stephan: die link zum bearbeitungsmodus und lexikon bekommen eine senderbehandlung-->
<xsl:when test="$text = '[Direktbearbeitungsmodus]' or $text = '[Änderungen übernehmen]'">_edit</xsl:when>
<xsl:when test="position()=last() and position()=1">_cell_alone</xsl:when>
<xsl:when test="position()=1">_cell_first</xsl:when>
<xsl:when test="position()=last()">_cell_last</xsl:when>
<xsl:otherwise>_cell</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$selected!=''">
<xsl:value-of select="concat($css_family,$name2,'_',$append_selected)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($css_family,$name2)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$name='customer_menu'">
<xsl:attribute name="style">padding-right:5px;</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$selected!=''">
<xsl:attribute name="class">
<xsl:value-of select="concat($css_family, '_cell_',$append_selected)"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">
<xsl:value-of select="concat($css_family, '_cell')"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$bullet_family != ''">
<img border="0" alt="">
<xsl:choose>
<xsl:when test="$selected!=''">
<xsl:choose>
<xsl:when test="$skin_scheme_default!=''">
<xsl:attribute name="src">
<xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme_default,'/',$bullet_family,'_selected.',$bullet_mime)"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">
<xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme,'/',$bullet_family,'_selected.',$bullet_mime)"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$skin_scheme_default!=''">
<xsl:attribute name="src">
<xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme_default,'/',$bullet_family,'.',$bullet_mime)"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">
<xsl:value-of select="concat('/skins/images/',$skin,'/',$skin_scheme,'/',$bullet_family,'.',$bullet_mime)"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</img>
<img src="/web.images.1pix_trans.gif" width="3" height="10" alt=""/>
</xsl:if>
<xsl:variable name="onclick">
<xsl:choose>
<xsl:when test="$ajax != '' and $action != ''">
<xsl:value-of select="concat('javascript:requestWebbox(&quot;',$ajaxsessionid,$ajax,$page,'.ajax?action=',$action,'&quot;);return false;')"/>
</xsl:when>
<xsl:when test="$ajax != ''">
<xsl:value-of select="concat('javascript:requestWebbox(&quot;',$ajaxsessionid,$ajax,'&quot;);return false;')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="''"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$link != ''">
<a href="{$link}" onclick="{$onclick}" title="{$text}">
<xsl:choose>
<xsl:when test="$selected">
<xsl:attribute name="class">
<xsl:value-of select="concat($css_family, '_link_selected')"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">
<xsl:value-of select="concat($css_family, '_link')"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$link_target">
<xsl:attribute name="target">
<xsl:value-of select="$link_target"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$anchor_id">
<xsl:attribute name="id">
<xsl:value-of select="$anchor_id"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$text"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>


<xsl:template name="spacer">
<xsl:param name="n"/>
<xsl:if test="$n > 0">
<img src="/web.images.1pix_trans.gif" border="0" heigth="15" width="15" alt=""/>
<xsl:call-template name="spacer">
<xsl:with-param name="n">
<xsl:value-of select="$n - 1"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>


<!--Datenmasken-->
<xsl:template name="RenderMailDataElement">
<xsl:param name="value" />
<xsl:param name="row_type" select="data_row_1"/>
<xsl:param name="nowrap" select="true"/>
<xsl:choose>
<xsl:when test="$row_type">
<td class="{$row_type}" nowrap="{$nowrap}">
<xsl:choose>
<xsl:when test="$value!=''">
<a href="mailto:{$value}"><xsl:value-of select="$value"/></a>
</xsl:when>
<xsl:otherwise>-</xsl:otherwise>
</xsl:choose>
</td>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$value!=''">
<a href="mailto:{$value}"><xsl:value-of select="$value"/></a>
</xsl:when>
<xsl:otherwise>-</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>





<!-- template entfernt alle zeilenumbrueche und verwendet dafür br tags -->

<xsl:template name="ReplaceNewLineWithBreaks">
<xsl:param name="text" select="."/>
<xsl:choose>
<xsl:when test="contains($text, '
')">
<xsl:if test="string-length(substring-before($text, '
')) > 0">
<xsl:value-of select="substring-before($text, '
')"/>
</xsl:if>
<br/>
<xsl:call-template name="ReplaceNewLineWithBreaks">
<xsl:with-param name="text" select="substring-after($text,'
')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:if test="string-length($text) > 0">
<xsl:value-of select="$text"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>



<!-- allgemeines Listen-Template -->
<xsl:template name="inveda_list">
<xsl:param name="type"/>
<xsl:param name="css_family"/>
<table class="{concat($css_family,'_table')}" cellpadding="0" cellspacing="0" width="100%">
<xsl:if test="@caption">
<tr>
<td colspan="2" class="{concat($css_family,'_header_last')}">
<xsl:value-of select="@caption"/>
</td>
</tr>
</xsl:if>
<xsl:for-each select="item">
<xsl:variable name="row_type">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">
<xsl:value-of select="concat($css_family,'_row_1')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat($css_family,'_row_2')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr class="{concat($css_family,'_row')}">
<xsl:if test="@caption">
<td class="{concat($css_family,'_label')}" valign="top">
<xsl:value-of select="@caption"/>
</td>
</xsl:if>
<xsl:choose>
<xsl:when test="@type='iterate'">
<td class="{$row_type}" valign="top">
<xsl:apply-templates select="*|node()"/>
</td>
</xsl:when>
<xsl:when test="$type='money'">
<xsl:call-template name="RenderMoneyElement">
<xsl:with-param name="row_type" select="concat($row_type,'_last')"/>
<xsl:with-param name="value" select="."/>
<xsl:with-param name="string_if_NaN" select="."/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="RenderDataElement">
<xsl:with-param name="row_type" select="$row_type"/>
<xsl:with-param name="value" select="."/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:for-each>
</table>
</xsl:template>


<xsl:template name="RenderVTR">
<xsl:variable name="alternation">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">_row_1</xsl:when>
<xsl:otherwise>_row_2</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr>
<xsl:for-each select="td|th">
<xsl:variable name="prefix">
<xsl:choose>
<xsl:when test="name()='th'">data_header</xsl:when>
<xsl:otherwise>data</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="apply_alternation">
<xsl:choose>
<xsl:when test="name()='th'">_disabled</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$alternation"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td nowrap="nowrap">
<xsl:attribute name="class">
<xsl:value-of select="concat($prefix,$apply_alternation)"/>
</xsl:attribute>
<xsl:if test="@colspan">
<b>ACHTUNG!</b>
<xsl:value-of select="'colspan wird nicht unterstützt!'"/>
</xsl:if>
<xsl:if test="@rowspan">
<b>ACHTUNG!</b>
<xsl:value-of select="'rowspan wird nicht unterstützt!'"/>
</xsl:if>
<xsl:apply-templates/>
</td>
</xsl:for-each>
</tr>
</xsl:template>





<!-- STRING Funktionen /-->
<xsl:template name="STR_uppercase">
<xsl:param name="string"/>
<xsl:value-of select="translate($string,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
</xsl:template>
<xsl:template name="STR_abbreviate">
<xsl:param name="string"/>
<xsl:param name="length"/>
<xsl:param name="pre_length" select="0"/>
<xsl:value-of select="substring($string,0,$length)"/>
<xsl:if test="string-length($string) &gt; ($length - $pre_length)">...</xsl:if>
</xsl:template>

<xsl:template name="popup-link">
<xsl:param name="site"/>
<xsl:param name="para"/>
<xsl:param name="target"/>
<xsl:param name="caption"/>
<xsl:param name="image"/>
<xsl:param name="title"/>
<xsl:param name="ajax"/>
<xsl:if test="$target != ''">
<a href="/{$target}/{$site}.html?{$para}" title="{$title}">
<xsl:if test="$ajax='yes'">
<xsl:attribute name="onclick">
requestWebbox('/<xsl:value-of select="$target"/>/<xsl:value-of select="$site"/>.ajax?<xsl:value-of select="para"/>'); return false;
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$caption"/>
<xsl:if test="$image">
<img src="{$image}" alt="{$caption}"/>
</xsl:if>
</a>
</xsl:if>
<xsl:if test="$target = ''">
<xsl:copy-of select="$caption"/>
</xsl:if>
</xsl:template>

<xsl:template name="basket-add">
<xsl:param name="item"/>
<xsl:variable name="total" select="document('ibs:/basket')/content/artikel/@anzahl"/>
<a href="?basket_add={$item}_{$total}">
<i class="ii ii-basket" title="In den Warenkorb legen">In den Warenkorb legen</i>
</a>
</xsl:template>

<xsl:template match="thumbshot">
<xsl:call-template name="render_thumbshot">
<xsl:with-param name="link" select="@link"/>
<xsl:with-param name="align" select="@align"/>
<xsl:with-param name="hyperlink" select="@hyperlink"/>
</xsl:call-template>
</xsl:template>

<xsl:template name="render_thumbshot">
<xsl:param name="link"/>
<xsl:param name="hyperlink"/>
<xsl:param name="align"/>

<xsl:variable name="encode">
return '&lt;img&gt;'.urlencode('<xsl:call-template name="replace_string">
<xsl:with-param name="string" select="$link" />
<xsl:with-param name="from">'</xsl:with-param>
<xsl:with-param name="to">\'</xsl:with-param>
</xsl:call-template>').'&lt;/img&gt;';
</xsl:variable>

<xsl:variable name="url">
<xsl:value-of select="php:function('system_Transformer::Evaluate',$encode)"/>
</xsl:variable>

<a class="thumbshot" target="_blank" href="{$link}">
<img style="position:relative;width:150px;height:113px;" align="{$align}"
src="{concat('tools.thumbshot.thumb.script?url=',$url)}"
height="113px"
width="150px" alt=""/>
</a>
</xsl:template>

<xsl:template match="LinkBox">
<!-- Martin: wird ein ActionElement ohne Link gerendert, kommt nur ein img-tag heraus, welches hier bisher heraus gerendert wurde -->
<xsl:for-each select="*">
<xsl:choose>
<xsl:when test="name() = 'a'">
<a target="{@target}" href="{@href}" onclick="{@onclick}" title="{@title}">
<i>
<xsl:if test=".//i/@class != ''">
<xsl:attribute name="class">
<xsl:value-of select=".//i/@class"/>
</xsl:attribute>
</xsl:if>
<xsl:if test=".//i/@title">
<xsl:attribute name="title">
<xsl:value-of select=".//i/@title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@title">
<xsl:attribute name="alt">
<xsl:value-of select="@title"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="@title"/>
</i>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>

<xsl:template match="php">
<xsl:variable name="param">
<xsl:call-template name="xmltotxt">
<xsl:with-param name="xml" select="."/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="code" select="string($param)"/>

<xsl:apply-templates select="php:function('system_Transformer::Evaluate',$code)"/>
</xsl:template>


<xsl:template name="google_analytics">
<xsl:variable name="google_analytics" select="php:function('web_Session::getCurrentHolderParam','google_analytics')"/>
<xsl:variable name="google_analytics2" select="php:function('web_Session::getCurrentHolderParam','google_analytics2')"/>
<xsl:variable name="google_ads" select="php:function('web_Session::getCurrentHolderParam','google_ads')"/>
<xsl:variable name="google_analytics_cookie_consent" select="php:function('web_Session::getCurrentHolderParam','google_analytics_cookie_consent')"/>
<xsl:variable name="google_analytics_mess_id" select="php:function('web_Session::getCurrentHolderParam','google_analytics_mess_id')"/>

<xsl:variable name="consent">
<xsl:choose>
<xsl:when test="$google_analytics_cookie_consent!=''">
<xsl:value-of select="$google_analytics_cookie_consent"/>
</xsl:when>
<xsl:otherwise>tracking</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="gtags">
<xsl:if test="$google_analytics != ''">
<gtag>
<xsl:value-of select="concat('UA-', $google_analytics)"/>
</gtag>
</xsl:if>
<xsl:if test="$google_analytics2 != ''">
<gtag>
<xsl:value-of select="concat('UA-', $google_analytics2)"/>
</gtag>
</xsl:if>
<xsl:if test="$google_ads != ''">
<gtag>
<xsl:value-of select="concat('AW-', $google_ads)"/>
</gtag>
</xsl:if>
<xsl:if test="$google_analytics_mess_id != ''">
<gtag>
<xsl:value-of select="concat('G-', $google_analytics_mess_id)"/>
</gtag>
</xsl:if>
</xsl:variable>


<xsl:for-each select="exslt:node-set($gtags)/*">
<xsl:if test="position() = 1">
<xsl:variable name="addScript" select="php:function('web_Content::addScript',concat('https://www.googletagmanager.com/gtag/js?id=',.),'text/javascript', 0, true(), true(), '', $consent)"/>
</xsl:if>
<xsl:variable name="js">
window.dataLayer = window.dataLayer || [];
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<xsl:value-of select="."/>', {'anonymize_ip': true});
</xsl:variable>
<xsl:variable name="addScriptCode" select="php:function('web_Content::addScriptCode',$js,'text/javascript', 1, $consent)"/>
</xsl:for-each>
</xsl:template>

<xsl:template name="cookieconsent_extern">
<xsl:if test="$cookieconsent_display='' and not(php:function('web_Session::isSecure')) and ($request_type = 'html')">
<xsl:variable name="mod" select="php:function('mandant_Holder::getCurrentParam', 'cookieconsent_module')"/>
<xsl:variable name="content" select="php:function('cms_CMS::getContent', string($mod),'content')/*"/>
<xsl:copy-of select="$content//script"/>
</xsl:if>
</xsl:template>

<xsl:template name="cookieconsent">
<xsl:if test="not(php:function('web_Session::isSecure')) and ($request_type = 'html')">
<xsl:variable name="language" select="php:function('web_Session::getLanguage')"/>
<xsl:variable name="page" select="php:function('web_Session::getCurrentPage')"/>
<xsl:variable name="mod">
<xsl:choose>
<xsl:when test="$languages/language[@id = $language]">
<xsl:value-of select="php:function('mandant_Holder::getCurrentParam', concat('cookieconsent_module_', $language))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="php:function('mandant_Holder::getCurrentParam', 'cookieconsent_module')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="module" select="php:function('cms_mod_Interface::getModule', string($mod))/*"/>

<xsl:variable name="meta" select="php:function('cms_mod_Interface::getMeta', string($mod), string($module/@holderlogin))/metadata"/>
<script type="text/javascript" src="/public/fad-server/class/cms/mod/cookieconsent/cookieconsent.js">/*cookieconsent*/</script>
<script type="text/javascript">
document.addEventListener( 'DOMContentLoaded' , function () {
if (fad_cookieconsent) {
fad_cookieconsent.init( {
display : '<xsl:value-of select="$cookieconsent_display"/>',
module : '<xsl:value-of select="$mod"/>',
maxage : '<xsl:value-of select="$meta/maxage"/>'
} );

<xsl:if test="($cookieconsent_display = '') or ($module and not($module//a[@class='fad_contentlink'][@href = concat('/', $page, '.html')]))">
fad_cookieconsent.run();
</xsl:if>
}
} );
</script>


</xsl:if>
</xsl:template>

<xsl:template match="tag_cloud">
<xsl:variable name="tag_count">
<xsl:value-of select="count(tags/tag)"/>
</xsl:variable>
<xsl:for-each select="tags/tag">
<xsl:sort select="@tags"/>
<xsl:choose>
<xsl:when test="$tag_count &gt; 5 and @maxtag &gt; 1">
<a style="font-size:{10 div (@maxtag - @mintag) * (@katag - @mintag) + 11}px"
href="/tags={@tags}/link.index.{$request_type}">
<xsl:value-of select="tagname"/>
</a>
&#160;
</xsl:when>
<xsl:otherwise>
<a class="kategorie"
href="/tags={@tags}/link.index.{$request_type}">
<xsl:value-of select="tagname"/>
</a>
&#160;
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>

<xsl:template match="box">
<xsl:call-template name="box"/>
</xsl:template>

<xsl:template match="references">
<xsl:variable name="links">
<xsl:for-each select="//*[self::a][not(@href=following::a/@href)]">
<xsl:variable name="title">
<xsl:choose>
<xsl:when test="@title!=''">
<xsl:value-of select="@title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a href="{@href}" title="{$title}" target="_blank">
<xsl:value-of select="$title"/>
</a>
</xsl:for-each>
</xsl:variable>
<xsl:if test="$links!=''">
<xsl:variable name="lb">
<h3>Referenzen</h3>
<ul>
<xsl:for-each select="exslt:node-set($links)/*">
<li>
<xsl:copy-of select="."/>
</li>
</xsl:for-each>
</ul>
</xsl:variable>
<xsl:apply-templates select="exslt:node-set($lb)/*"/>
</xsl:if>
</xsl:template>

<xsl:template match="footbar">
<div class="FootbarWidth">
<div class="FootBarTopRow">
<xsl:call-template name="RenderFootBarTopRow"/>
</div>
<xsl:if test="(count(item[@level = 1 and @link != 'kontakt.html']/item) &gt; 0)">
<div class="FootBarMinorRow">
|
<xsl:call-template name="RenderFootBarMinorRow"/>
</div>
</xsl:if>
<div class="FootBarContactRow">
|
<xsl:call-template name="RenderFootBarContactRow"/>
</div>
<xsl:if test="footbaraddress != ''">
<div class="FootBarAddress">
<p class="FootBarAddressPassage">
<xsl:call-template name="RenderFootBarAddress"/>
</p>
</div>
</xsl:if>
</div>
</xsl:template>

<xsl:template name="RenderFootBarAddress">
<xsl:if test="footbaraddress/company != ''">
| <xsl:value-of select="footbaraddress/company"/>
</xsl:if>
<xsl:if test="footbaraddress/name != ''">
| <xsl:value-of select="footbaraddress/name"/>
</xsl:if>
<xsl:if test="footbaraddress/street != ''">
| <xsl:value-of select="footbaraddress/street"/>
</xsl:if>
<xsl:if test="footbaraddress/zip != '' and footbaraddress/city != ''">
| <xsl:value-of select="footbaraddress/zip"/>&#160;<xsl:value-of select="footbaraddress/city"/>
</xsl:if>
<!--xsl:if test="footbaraddress/mail != ''">
| <xsl:value-of select="php:function('getTranslation', 'E-Mail')"/>: <xsl:value-of select="footbaraddress/mail"/>
</xsl:if-->
<xsl:if test="footbaraddress/mail != ''">
| <xsl:value-of select="php:function('system_Language::translate', 'E-Mail')"/>: <xsl:value-of select="footbaraddress/mail"/>
</xsl:if>
<!--xsl:if test="document(concat('ibs:/page_allowed,','kontakt'))/result/@value='yes'">
| <a href="/kontakt.html"> -&gt; <xsl:value-of select="php:function('getTranslation', 'zum Kontaktformular')"/></a> |
</xsl:if-->
<xsl:if test="document(concat('ibs:/page_allowed,','kontakt'))/result/@value='yes'">
| <a href="/kontakt.html"> -&gt; <xsl:value-of select="php:function('system_Language::translate', 'zum Kontaktformular')"/></a> |
</xsl:if>
<!--| Telefon: <xsl:value-of select="footbaraddress/telefon"/>
| Fax: <xsl:value-of select="footbaraddress/fax"/-->
</xsl:template>


<xsl:template name="RenderFootBarTopRow">
<xsl:variable name="children">
<xsl:value-of select="count(item[not(@visible)])"/>
</xsl:variable>
<xsl:for-each select="item">
<xsl:call-template name="RenderFootBarTopItem">
<xsl:with-param name="level" select="@level"/>
<xsl:with-param name="children" select="$children"/>
<xsl:with-param name="position" select="position()"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>

<xsl:template name="RenderFootBarTopItem">
<xsl:param name="level"/>
<xsl:param name="children"/>
<xsl:if test="not(@visible)">
<xsl:if test="($level = 1)">
<a href="{@link}" title="{$children}" class="FootBarTopItem">
<xsl:value-of select="@title"/>
</a>
&#160;
</xsl:if>
</xsl:if>
</xsl:template>

<xsl:template name="RenderFootBarMinorRow">
<xsl:variable name="children">
<xsl:value-of select="count(item[not(@visible)])"/>
</xsl:variable>
<xsl:for-each select="item[not(@visible) and (@link != 'kontakt.html') or (@link = 'kontakt.html' and @level = 2)]">
<xsl:call-template name="RenderFootBarMinorItem">
<xsl:with-param name="level" select="@level"/>
<xsl:with-param name="children" select="$children"/>
<xsl:with-param name="position" select="position()"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>

<xsl:template name="RenderFootBarContactRow">
<xsl:variable name="children">
<xsl:value-of select="count(item[not(@visible) and @link = 'kontakt.html'])"/>
</xsl:variable>
<xsl:for-each select="item[not(@visible) and @link = 'kontakt.html']">
<xsl:call-template name="RenderFootBarMinorItem">
<xsl:with-param name="level" select="@level"/>
<xsl:with-param name="children" select="$children"/>
<xsl:with-param name="position" select="position()"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>

<xsl:template name="RenderFootBarMinorItem">
<xsl:param name="level"/>
<xsl:param name="children"/>
<xsl:param name="position"/>
<xsl:if test="($level = 2)">
<a href="{@link}" title="{$children}" class="FootBarMinorItem">
<xsl:value-of select="@title"/>
</a>
</xsl:if>
<xsl:if test="(count(item[not(@visible)]) &gt; 0) and ($level = 1)">
<xsl:call-template name="RenderFootBarMinorRow"/>
</xsl:if>

<xsl:choose>
<xsl:when test="(count(item[not(@visible)]) &gt; 0) and ($level = 1)">|</xsl:when>
<xsl:when test="($level = 2) and ($position != $children)">|</xsl:when>
</xsl:choose>

</xsl:template>

<xsl:template match="colfootbar">
<div class="FootbarThemes">
<table width="100%" class="FootbarColTable">
<tr valign="top">
<xsl:for-each select="col">
<td>
<xsl:for-each select="item">
<a href="{@link}">
<xsl:attribute name="class">
<xsl:value-of select="concat('FootbarMenuLevel',@level)"/>
</xsl:attribute>
<xsl:value-of select="@title"/>
</a>
<br/>
</xsl:for-each>
</td>
</xsl:for-each>
</tr>
</table>
</div>
<xsl:if test="footbaraddress != ''">
<div class="FootbarColAddress">
<p class="FootBarAddressPassage">
<xsl:call-template name="RenderFootBarAddress"/>
</p>
</div>
</xsl:if>
</xsl:template>


<xsl:template match="keyword">
<a href="lexikon.public.index.html?{$session}&amp;schlagwort={text()}">
<xsl:apply-templates select="text()"/>
</a>
</xsl:template>

<xsl:template name="IbsDo"/>

<xsl:template match="ibs-lexikon">
<xsl:variable name="ibs">ibs:/lexikon,<xsl:value-of select="@schlagwort"/></xsl:variable>
<xsl:apply-templates select="document($ibs)/Data/Content/DataSet[1]/erklaerung/*"/>
</xsl:template>

<xsl:template match="ibs-original">
<div class="ibs-original" style="clear:both;">
<xsl:apply-templates select="document('ibs:/original')/content"/>
</div>
</xsl:template>

<!--den Inhalt einer fremden Webseite einbinden-->
<xsl:template match="ibs-include">
<div class="ibs-include">
<xsl:variable name="doc">ibs:/include,<xsl:value-of select="concat(@link,',',@project)"/><xsl:for-each select="param">,<xsl:value-of select="concat(@key,'~',php:function('rawurlencode',string(@value)))"/></xsl:for-each></xsl:variable>
<xsl:apply-templates select="document(translate($doc,' ','*'))/content" mode="include"/>
</div>
</xsl:template>

<xsl:template match="ibs-get">
<xsl:variable name="doc">ibs:/get,<xsl:value-of select="@name"/></xsl:variable>
<xsl:apply-templates select="document($doc)/get"/>
</xsl:template>

<!-- facebook Integration -->
<xsl:template match="facebook">
<xsl:for-each select="./*">
<xsl:choose>
<xsl:when test="name() = 'like-box'">
<div id="fb-root"></div>
<script type="text/plain" data-type="text/javascript" data-cookieconsent="targeting">(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="150" data-show-faces="true"></div>
</xsl:when>
<xsl:otherwise>
<div id="fb-root"></div>
<script type="text/plain" data-type="text/javascript" data-cookieconsent="targeting" language="JavaScript1.2">
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1&amp;appId=<xsl:value-of select="document('ibs:/holder_param,facebook.application_id')/content/@value"/>";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div data-width="292" data-show-faces="true" data-stream="true" data-header="true">
<xsl:attribute name="class"><xsl:value-of select="concat('fb-',name())"/></xsl:attribute>

</div>

<!--xsl:element name="{concat('fb-',name())}">
<xsl:for-each select="./@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:value-of select="."/>
</xsl:element-->
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>



<xsl:template match="content">
<xsl:call-template name="inveda_content">
<xsl:with-param name="type" select="@type" />
</xsl:call-template>
</xsl:template>

<xsl:template match="content" mode="include">
<xsl:call-template name="inveda_content">
<xsl:with-param name="type" select="'include'" />
<xsl:with-param name="javascript" select="'no'" />
</xsl:call-template>
</xsl:template>

<!--Intro Seite anzeigen-->
<xsl:template match="ibs-popup">
<div>
<xsl:if test="@once!='yes' or document('ibs:/page_calls')/result/@value='1'">
<script type="text/javascript">
window.open("<xsl:value-of select="@link"/>","ABC","width=800,height=500,left=0,top=0,resizable=yes,scrollbars=yes,titlebar=no");
</script>
</xsl:if>
</div>
</xsl:template>

<!-- auf Framework-Parameter zugreifen /-->
<xsl:template match="ibs-param">
<xsl:apply-templates select="php:function('data_Placeholder::getParam',string(@name),'as_doc')/param" mode="ibs"/>
</xsl:template>

<xsl:template match="fad:placeholder">
<xsl:variable name="output">
<xsl:apply-templates select="php:function('data_Placeholder::getParam',string(@class),'as_doc')/param" mode="ibs"/>
</xsl:variable>
<xsl:if test="not($output='')">
<xsl:copy-of select="$output"/>
</xsl:if>
<xsl:if test="not(not($output='')) and (php:function('web_Session::isSecure'))">
<span class="fad_placeholder {@class}" title="{@title}">
<xsl:comment></xsl:comment>
</span>
</xsl:if>
</xsl:template>

<xsl:template match="param" mode="ibs">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="iframe">
<iframe src="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}">
<xsl:if test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:if>
<xsl:if test="@height"><xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute></xsl:if>
<xsl:if test="@name"><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></xsl:if>
<xsl:if test="@align"><xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute></xsl:if>
<xsl:if test="@scrolling"><xsl:attribute name="scrolling"><xsl:value-of select="@scrolling"/></xsl:attribute></xsl:if>
<xsl:if test="@frameborder"><xsl:attribute name="frameborder"><xsl:value-of select="@frameborder"/></xsl:attribute></xsl:if>
<xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
<xsl:if test="@class"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
<xsl:if test="@style"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen:
Sie können die eingebettete Seite über den folgenden Verweis
aufrufen: <a href="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}"><xsl:value-of select="@name"/></a></p>
</iframe>
</xsl:template>

<xsl:template match="fad:iframe">
<iframe src="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}">
<xsl:if test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:if>
<xsl:if test="@height"><xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute></xsl:if>
<xsl:if test="@name"><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></xsl:if>
<xsl:if test="@align"><xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute></xsl:if>
<xsl:if test="@scrolling"><xsl:attribute name="scrolling"><xsl:value-of select="@scrolling"/></xsl:attribute></xsl:if>
<xsl:if test="@frameborder"><xsl:attribute name="frameborder"><xsl:value-of select="@frameborder"/></xsl:attribute></xsl:if>
<xsl:if test="@id"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if>
<xsl:if test="@class"><xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute></xsl:if>
<xsl:if test="@style"><xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute></xsl:if>
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen:
Sie können die eingebettete Seite über den folgenden Verweis
aufrufen: <a href="{php:function('system_util_URL::randomize',string(concat(@src,@link)))}"><xsl:value-of select="@name"/></a></p>
</iframe>
</xsl:template>

<xsl:template match="editmenu"/>

<xsl:template match="input[@ibs_js='RTEDITOR']">
<xsl:choose>
<xsl:when test="@readonly = 'readonly'">
<xsl:value-of select="@value"/>
</xsl:when>
<xsl:otherwise>
<input onclick="IBSShowDialog('editor.rteditor.html?rt_type={@rt_type}&amp;name={@name}&amp;archive={@archive}','123',600,650);">
<xsl:attribute name="id">
<xsl:value-of select="../@name"/>
</xsl:attribute>
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:value-of select="."/>
</input>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="link[@rel='stylesheet']|a[@href='#']">
<xsl:copy-of select="."/>
</xsl:template>

<xsl:template match="a|link">
<xsl:variable name="href">
<xsl:choose>
<xsl:when test="starts-with(@href,'ibs-param')">
<xsl:value-of select="php:function('data_Placeholder::getParam',substring-after(@href,'ibs-param:'))"/>
</xsl:when>
<xsl:when test="href">
<xsl:apply-templates select="href"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@href"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="text()!='' or node()">
<a>
<xsl:for-each select="@*">
<xsl:if test="not(name() = 'onclick' and document('ibs:/mobile_device')/content/@value = 'yes' and substring(., 1, 13) = 'requestWebbox')">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:if>
</xsl:for-each>
<xsl:if test="$href != ''">
<xsl:attribute name="href"><xsl:value-of select="php:function('system_util_URL::randomize',string($href))"/></xsl:attribute>
</xsl:if>
<xsl:if test="not(@rel!='') and ((starts-with($href,'http://') or starts-with($href,'https://')) and not(starts-with($href, concat('http://',document('ibs:/holder_value,domain')/content/@value,'/'))))">
<xsl:attribute name="rel">
<xsl:value-of select="'nofollow'"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@target">
<xsl:attribute name="target">
<xsl:value-of select="@target"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</a>
</xsl:if>
</xsl:template>


<xsl:template match="para">
<p>
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="*[@randomize]">
<xsl:element name="{name()}">
<xsl:for-each select="@*[not(name() = 'randomize')]">
<xsl:attribute name="{name()}">
<xsl:value-of select="php:function('system_util_URL::randomize',string(.))"/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>

<xsl:template match="*">
<xsl:element name="{name()}">
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
<xsl:if test="name() != 'br'">
<xsl:comment/>
</xsl:if>
</xsl:element>
</xsl:template>

<xsl:template match="img[@class='attachment']">
<img style="cursor: pointer;" src="{@src}" onclick="window.open('{@title}','popup','toolbar=no,resizable=yes,top=40,scrollbars=yes');"/>
</xsl:template>

<xsl:template match="img">
<xsl:choose>
<xsl:when test="substring(@alt,1,4)='cms.'">
<xsl:call-template name="render_cms_image"/>
</xsl:when>
<xsl:when test="not($is_secure) and substring(@src,1,9)='/content.'">
<xsl:call-template name="render_cms_image"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:copy-of select="@*[name()!='src' and name()!='proxy']"/>
<xsl:attribute name="src">
<xsl:variable name="random" select="php:function('system_util_URL::randomize',string(@src))"/>
<xsl:value-of select="php:function('system_util_URL::proxy',string($random),(@proxy!=''))"/>
</xsl:attribute>
<xsl:apply-templates select="*|node()|comment()|processing-instruction()"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="render_cms_image">

<xsl:param name="absolute_path" select="'false'"/>
<xsl:param name="absolute_path_value" select="''"/>
<xsl:param name="width_unit" select="'px'"/>
<xsl:param name="calculated_width"/>
<xsl:param name="lazyload" select="$skin_defs/lazyload='yes'"/>

<xsl:param name="link_class" select="@linkclass"/>
<xsl:param name="link_title" select="@linktitle"/>
<xsl:param name="link_target" select="@linktarget"/>
<xsl:param name="link_rel" select="@linkrel"/>
<xsl:param name="link" select="@link"/>
<xsl:param name="size"/>

<xsl:param name="srcset" select="@srcset"/>
<xsl:param name="sizes" select="@sizes"/>
<xsl:param name="class" select="@class"/>
<xsl:param name="style" select="@style"/>

<xsl:param name="preview" select="false()"/>


<xsl:variable name="param" select="str:tokenize(@alt,'.')"/>
<xsl:variable name="srcparam" select="str:tokenize(@src,'.')"/>

<xsl:variable name="src_id">
<xsl:choose>
<xsl:when test="$srcparam[1]='/content'">
<xsl:value-of select="$srcparam[2]"/>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
</xsl:variable>

<xsl:variable name="c_holderlogin" select="php:function('web_Session::getCurrentHolderLogin')"/>
<xsl:variable name="holderlogin">
<xsl:choose>
<xsl:when test="/content/@post and /content/@post!=''">
<!-- blogpost -->
<xsl:value-of select="$c_holderlogin"/>
</xsl:when>
<xsl:when test="@holderlogin!=''">
<xsl:value-of select="@holderlogin"/>
</xsl:when>
<xsl:when test="$c_holderlogin != /content/@holderlogin and /content/@holderlogin !='' ">
<!-- abonnierte Seiten / Inhalt nicht überschrieben /Publisherseite übersetzt oder kopiert -->
<xsl:value-of select="/content/@holderlogin"/>
</xsl:when>
<xsl:when test="$c_holderlogin=/content/@holderlogin and $src_id=/content/@nr">
<!-- Bild gehört zum Content (eigene Seite oder nicht überschriebene Aboseite) -->
<xsl:value-of select="/content/@holderlogin"/>
</xsl:when>
<xsl:when test="/content/@holderlogin=/content/metadata/publisher_login and /content/metadata/publisher_login!='' and $src_id=/content/metadata/publisher_content_id">
<!-- überschriebene Publisherseite / Bild im Publishercontent -->
<xsl:value-of select="/content/metadata/publisher_login"/>
</xsl:when>
<!-- xsl:when test="$param[4]!=''">
Bei Hauptbildern schreiben die render.xsl das holderlogin dran
<xsl:value-of select="$param[4]"/>
</xsl:when-->
<xsl:when test="$c_holderlogin != /*/@holderlogin and /*/@holderlogin !='' ">
<!-- interne Seiten / internes Modul -->
<xsl:value-of select="/*/@holderlogin"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$c_holderlogin"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="content_nr">
<xsl:choose>
<xsl:when test="$src_id!=''">
<xsl:value-of select="$src_id"/>
</xsl:when>
<xsl:when test="/content/@post and /content/@post!=''">
<!-- blogpost -->
<xsl:value-of select="/content/@post"/>
</xsl:when>
<xsl:when test="@meta_nr and @meta_nr!=''">
<xsl:value-of select="@meta_nr"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/content/@nr"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>


<xsl:variable name="meta_nr">
<xsl:choose>
<xsl:when test="@meta_nr and @meta_nr!=''">
<!-- @meta_nr gesetzt(Hauptbild) -->
<xsl:value-of select="@meta_nr"/>
</xsl:when>
<xsl:when test="/content/@post and /content/@post!=''">
<!-- blogpost -->
<xsl:value-of select="/content/@post"/>
</xsl:when>
<xsl:when test="/content/@nr and /content/@nr!=''">
<!-- backend -->
<xsl:value-of select="/content/@nr"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(/content/metadata/nr,',',/content/metadata/publisher_content_id)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="image_nr">
<xsl:choose>
<xsl:when test="$param[1]='cms' and $param[2]!=''">
<xsl:value-of select="$param[2]"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$srcparam[4]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:variable name="image_size">
<xsl:choose>
<xsl:when test="$size!=''">
<xsl:value-of select="$size"/>
</xsl:when>
<xsl:when test="$param[1]='cms' and $param[3]!=''">
<xsl:value-of select="$param[3]"/>
</xsl:when>
<xsl:when test="count($srcparam)=7">
<xsl:value-of select="$srcparam[6]"/>
</xsl:when>
</xsl:choose>
</xsl:variable>




<xsl:variable name="image_sizes" select="str:tokenize($image_size,'x')"/>
<xsl:variable name="images" select="php:function('cms_CMS::getImages',$content_nr,$holderlogin)/images"/>
<xsl:variable name="images_img" select="$images/image[@id=$image_nr]"/>
<xsl:variable name="image_meta" select="php:function('cms_CMS::getImageMeta',string($src_id),string($image_nr),string($holderlogin),string($meta_nr))"/>
<xsl:variable name="image_source" select="$image_meta/media/src"/>
<xsl:variable name="image_description" select="$image_meta/media/description"/>
<xsl:variable name="image_title" select="$image_meta/media/title"/>
<xsl:variable name="image_gallery" select="$image_meta/media/gallery"/>
<xsl:variable name="image_name" select="$images/image[@id=$image_nr]/@name"/>
<xsl:variable name="image_names" select="str:tokenize($image_name,'.')"/>
<xsl:variable name="is_svg" select="$images_img/@imgtype='svg'"/>


<xsl:variable name="setSessionHolder" select="php:function('cms_CMS::setSessionHolder', string($holderlogin), string($content_nr))"/>
<xsl:variable name="content_meta" select="php:function('cms_CMS::getMetaById',string($content_nr),string($holderlogin))/metadata"/>

<xsl:variable name="domain" select="php:function('mandant_Holder::getCurrentHolderURL')"/>
<xsl:variable name="src_domain">
<xsl:choose>
<xsl:when test="$absolute_path_value!=''"><xsl:value-of select="$absolute_path_value"/></xsl:when>
<xsl:when test="/content/@domain!=''"><xsl:value-of select="/content/@domain"/></xsl:when>
<xsl:when test="$domain!=''"><xsl:value-of select="substring($domain,1,string-length($domain)-1)"/></xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:variable name="src_prefix">
<xsl:if test="$absolute_path = 'true'">
<xsl:value-of select="$src_domain"/>
</xsl:if>
</xsl:variable>

<xsl:choose>

<xsl:when test="not($preview) and $image_meta/media/type='youtube'">
<xsl:call-template name="load_jquery"/>
<xsl:variable name="js_add1" select="php:function('web_Content::addScript','/scripts/jquery.fitvids.js','text/javascript',100)"/>
<xsl:variable name="js_add3" select="php:function('web_Content::addScript','/scripts/init_fitvids.js','text/javascript',101)"/>

<span class="fad_cms_youtube" style="width:{$image_sizes[1]}px;height:{$image_sizes[2]}px;"
itemprop="video" itemscope="" itemtype="http://schema.org/VideoObject">
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$class!='' and ($image_description!='' or $image_source!='')">
<xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper fad_cms_youtube')"/>
</xsl:when>
<xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''">
<xsl:value-of select="'image-meta fad-image-wrapper fad_cms_youtube'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat ($class, ' fad-image-wrapper fad_cms_youtube')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<meta itemprop="thumbnailUrl" content="{$src_domain}{@src}"/>
<meta itemprop="contentURL" content="https://www.youtube.com/watch?v={$image_meta/media/id}"/>
<meta itemprop="height" content="{$image_meta/media/height}"/>
<meta itemprop="width" content="{$image_meta/media/width}"/>
<meta itemprop="uploadDate" content="{$image_meta/media/upload}"/>
<meta itemprop="name" content="{$image_meta/media/title}"/>
<meta itemprop="description" content="{$image_meta/media/description}"/>
<iframe width="{$image_sizes[1]}" height="{$image_sizes[2]}" src="https://www.youtube-nocookie.com/embed/{$image_meta/media/id}?rel=0" frameborder="0" allowfullscreen="allowfullscreen">
<xsl:comment>Kommentar damit der Editor funktioniert</xsl:comment>
</iframe>
</span>
</xsl:when>
<xsl:when test="not($preview) and $image_meta/media/type='vimeo'">
<xsl:call-template name="load_jquery"/>
<xsl:variable name="js_add1" select="php:function('web_Content::addScript','/scripts/jquery.fitvids.js','text/javascript',100)"/>
<xsl:variable name="js_add3" select="php:function('web_Content::addScript','/scripts/init_fitvids.js','text/javascript',101)"/>

<span class="fad_cms_youtube" style="width:{$image_sizes[1]}px;height:{$image_sizes[2]}px;"
itemprop="video" itemscope="" itemtype="http://schema.org/VideoObject">
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$class!='' and ($image_description!='' or $image_source!='')">
<xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper fad_cms_youtube')"/>
</xsl:when>
<xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''">
<xsl:value-of select="'image-meta fad-image-wrapper fad_cms_youtube'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat ($class, ' fad-image-wrapper fad_cms_youtube')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<meta itemprop="thumbnailUrl" content="{$src_domain}/{@src}"/>
<meta itemprop="contentURL" content="https://player.vimeo.com?v={$image_meta/media/id}"/>
<meta itemprop="height" content="{$image_meta/media/height}"/>
<meta itemprop="width" content="{$image_meta/media/width}"/>
<meta itemprop="uploadDate" content="{$image_meta/media/upload}"/>
<meta itemprop="name" content="{$image_meta/media/title}"/>
<meta itemprop="description" content="{$image_meta/media/description}"/>
<iframe width="{$image_sizes[1]}" height="{$image_sizes[2]}" src="https://player.vimeo.com/video/{$image_meta/media/id}" frameborder="0" webkitallowfullscreen="webkitallowfullscreen" mozallowfullscreen="mozallowfullscreen" allowfullscreen="allowfullscreen">
<xsl:comment>Kommentar damit der Editor funktioniert</xsl:comment>
</iframe>
</span>
</xsl:when>
<xsl:when test="not($preview) and $image_meta/media/type='video/mp4'">
<xsl:variable name="mp4_file" select="str:tokenize($image_meta/media/mp4,'.')"/>
<video poster="{@src}" controls="controls"
itemprop="video" itemscope="" itemtype="http://schema.org/VideoObject">
<xsl:copy-of select="@autoplay|@loop|@height|@width|@playsinline|@controls"/>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$class!='' and ($image_description!='' or $image_source!='' or $image_title!='')">
<xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper fad_cms_mp4')"/>
</xsl:when>
<xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''">
<xsl:value-of select="'image-meta fad-image-wrapper fad_cms_mp4'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat ($class, ' fad-image-wrapper fad_cms_mp4')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="not(contains($class, 'fad_image_width_')) or contains($class, 'fad_image_width_auto')">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$image_size!=''">
<xsl:choose>
<xsl:when test="$width_unit = '%'">
<xsl:value-of select="concat('width:', $calculated_width, $width_unit)"/>
<xsl:value-of select="concat('; max-width:', $image_sizes[1], 'px')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('width:', $image_sizes[1], 'px')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('width:', $image_meta/media/width, 'px')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<meta itemprop="thumbnailUrl" content="{$src_domain}{@src}"/>
<meta itemprop="contentURL" content="{$src_domain}/{$images_img/@url}.{$mp4_file[2]}"/>
<meta itemprop="height" content="{$image_meta/media/height}"/>
<meta itemprop="width" content="{$image_meta/media/width}"/>
<meta itemprop="uploadDate" content="{$image_meta/media/upload}"/>
<meta itemprop="name" content="{$image_meta/media/title}"/>
<meta itemprop="description" content="{$image_meta/media/description}"/>

<source src="/{$images_img/@url}.{$mp4_file[2]}" type="video/mp4"/>
Your browser does not support the video tag.
</video>
</xsl:when>

<xsl:otherwise>

<span itemprop="image" itemscope="itemscope" itemtype="https://schema.org/ImageObject">
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$class!='' and ($image_description!='' or $image_source!='' or $image_title!='')">
<xsl:value-of select="concat($class, ' image-meta', ' fad-image-wrapper')"/>
</xsl:when>
<xsl:when test="$image_description!='' or $image_source!='' or $image_title!=''">
<xsl:value-of select="'image-meta fad-image-wrapper'"/>
</xsl:when>
<xsl:when test="$class!=''">
<xsl:value-of select="concat($class, ' fad-image-wrapper')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'fad-image-wrapper'"/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$image_sizes!='' and $image_sizes[1] &lt; $image_sizes[2]">
<xsl:value-of select="' fad-image-portrait'"/>
</xsl:when>
<xsl:when test="$image_meta/media/width &lt; $image_meta/media/height">
<xsl:value-of select="' fad-image-portrait'"/>
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:if test="not(contains($class, 'fad_image_width_')) or contains($class, 'fad_image_width_auto')">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$image_size!=''">
<xsl:choose>
<xsl:when test="$width_unit = '%'">
<xsl:value-of select="concat('width:', $calculated_width, $width_unit)"/>
<xsl:value-of select="concat('; max-width:', $image_sizes[1], 'px')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('width:', $image_sizes[1], 'px')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('width:', $image_meta/media/width, 'px')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>

<xsl:variable name="img">
<xsl:choose>
<xsl:when test="$is_svg">
<xsl:choose>
<xsl:when test="$svg_embedded">
<xsl:variable name="svg" select="php:function('cms_CMS::getSVG',concat('/',$images_img/@url),$holderlogin)"/>
<xsl:choose>
<xsl:when test="$svg"><xsl:copy-of select="$svg"/></xsl:when>
<xsl:otherwise>
<img src="/{$images_img/@url}.{$images_img/@imgtype}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="."/>
</xsl:otherwise>
</xsl:choose>
<meta itemprop="url" content="{$src_domain}/{$images_img/@url}.{$image_names[2]}"/>
<meta itemprop="width" content="{$image_meta/media/width}"/>
<meta itemprop="height" content="{$image_meta/media/height}"/>
</xsl:when>
<xsl:when test="$image_size!=''">
<xsl:variable name="reg" select="php:function('web_Session::registerImageSize',$image_size)"/>
<img itemprop="image" width="{$image_sizes[1]}" height="{$image_sizes[2]}">
<xsl:choose>
<xsl:when test="not($is_secure) and $lazyload">
<xsl:if test="not($srcset)">
<xsl:attribute name="data-src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_size,'.',$image_names[2])"/></xsl:attribute>
</xsl:if>
<xsl:if test="$srcset">
<xsl:attribute name="data-srcset">
<xsl:value-of select="$srcset"/>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="class">lazy <xsl:value-of select="$class"/></xsl:attribute>
<xsl:variable name="addLazyScript" select="php:function('web_Content::addScript','/scripts/jquery/lazyload/lazyload.js','text/javascript',100)"/>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
<xsl:attribute name="src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_size,'.',$image_names[2])"/></xsl:attribute>
<xsl:if test="$srcset">
<xsl:attribute name="srcset">
<xsl:value-of select="$srcset"/>
</xsl:attribute>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$image_title != ''">
<xsl:attribute name="alt">
<xsl:value-of select="$image_title"/>
</xsl:attribute>
</xsl:if>

<xsl:if test="$sizes">
<xsl:attribute name="sizes">
<xsl:value-of select="$sizes"/>
</xsl:attribute>
</xsl:if>

<xsl:if test="$style != ''">
<xsl:attribute name="style">
<xsl:value-of select="$style"/>
</xsl:attribute>
</xsl:if>

</img>

<meta itemprop="url" content="{$src_domain}/{$images_img/@url}.{$image_size}.{$image_names[2]}"/>
<meta itemprop="width" content="{$image_sizes[1]}"/>
<meta itemprop="height" content="{$image_sizes[2]}"/>
</xsl:when>
<xsl:otherwise>
<img itemprop="image">
<xsl:choose>
<xsl:when test="not($is_secure) and $lazyload">
<xsl:if test="not($srcset) and not($is_svg)">
<xsl:attribute name="data-src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_names[2])"/></xsl:attribute>
</xsl:if>
<xsl:if test="not($is_svg)">
<xsl:if test="$srcset">
<xsl:attribute name="data-srcset">
<xsl:value-of select="$srcset"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$sizes">
<xsl:attribute name="sizes">
<xsl:value-of select="$sizes"/>
</xsl:attribute>
</xsl:if>
</xsl:if>
<xsl:attribute name="class">lazy <xsl:value-of select="$class"/></xsl:attribute>
<xsl:variable name="addLazyScript" select="php:function('web_Content::addScript','/scripts/jquery/lazyload/lazyload.js','text/javascript',100)"/>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src"><xsl:value-of select="concat($src_prefix,'/',$images_img/@url,'.',$image_names[2])"/></xsl:attribute>
<xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
<xsl:if test="not($is_svg)">
<xsl:if test="$srcset">
<xsl:attribute name="srcset">
<xsl:value-of select="$srcset"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$sizes">
<xsl:attribute name="sizes">
<xsl:value-of select="$sizes"/>
</xsl:attribute>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="$image_title != ''">
<xsl:attribute name="alt">
<xsl:value-of select="$image_title"/>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="width">
<xsl:value-of select="$image_meta/media/width"/>
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="$image_meta/media/height"/>
</xsl:attribute>
<xsl:if test="$style != ''">
<xsl:attribute name="style">
<xsl:value-of select="$style"/>
</xsl:attribute>
</xsl:if>

</img>
<meta itemprop="url" content="{$src_domain}/{$images_img/@url}.{$image_names[2]}"/>
<meta itemprop="width" content="{$image_meta/media/width}"/>
<meta itemprop="height" content="{$image_meta/media/height}"/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="not($is_secure) and $lazyload">
<xsl:variable name="lcode">
$(document).ready(function() {
$('.lazy').Lazy();
});
</xsl:variable>
<xsl:variable name="addScriptCode" select="php:function('web_Content::addScriptCode',string($lcode) , 'text/javascript', position())"/>
</xsl:if>


</xsl:variable>

<xsl:choose>

<xsl:when test="$image_meta/media/type='application/epub+zip'">
<a href="{$src_prefix}/id/{$content_nr}/epub/{$image_nr}/cms.epub.public.reader.html">
<xsl:copy-of select="$img"/>
</a>
</xsl:when>
<xsl:when test="$image_meta/media/type='application/pdf'">
<a href="{$src_prefix}/id/{$content_nr}/pdf/{$image_nr}/cms.pdf.public.reader.html" onclick="requestWebbox('{$src_prefix}/id/{$content_nr}/pdf/{$image_nr}/cms.pdf.public.reader.ajax','','GET');return false;">
<xsl:copy-of select="$img"/>
</a>
</xsl:when>

<xsl:when test="$link != '' and $link != 'undefined' ">
<a>
<xsl:attribute name="href">
<xsl:if test="starts-with($link, '/')">
<xsl:value-of select="$src_prefix"/>
</xsl:if>
<xsl:value-of select="$link"/>
</xsl:attribute>
<xsl:if test="$link_class != ''">
<xsl:attribute name="class">
<xsl:value-of select="$link_class"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$link_title != ''">
<xsl:attribute name="title">
<xsl:value-of select="$link_title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$link_target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$link_target"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$link_rel != ''">
<xsl:attribute name="rel">
<xsl:value-of select="$link_rel"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$img"/>
</a>
</xsl:when>
<xsl:when test="not($is_secure) and $image_gallery = 't'">
<!-- TODO: gallery link as ajax -->
<a href="?gallery={$image_nr}" class="fad_gallerylink" title="zur Galerie" target="_blank">
<xsl:copy-of select="$img"/>
</a>
</xsl:when>
<xsl:when test="$is_secure and $content_meta/publishtype='wiki'">
<a href="{exslt:node-set($img)/img/@src}" target="_blank" title="Großansicht">
<xsl:copy-of select="$img"/>
</a>
</xsl:when>
<xsl:when test="starts-with($image_source, 'http://') or starts-with($image_source ,'https://')">
<a href="{$image_source}" target="_blank" title="{$image_source}">
<xsl:copy-of select="$img"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$img"/>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="$image_title!=''">
<span class="image-meta-title">
<xsl:choose>
<xsl:when test="not(is_secure) and $link != '' and $link != 'undefined'">
<a href="{$link}">
<xsl:if test="$link_title != ''">
<xsl:attribute name="title">
<xsl:value-of select="$link_title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$link_target != ''">
<xsl:attribute name="target">
<xsl:value-of select="$link_target"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$link_rel != ''">
<xsl:attribute name="rel">
<xsl:value-of select="$link_rel"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$image_title"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$image_title"/>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
<xsl:if test="$image_description!=''">
<span class="image-meta-description">
<xsl:value-of select="$image_description"/>
</span>
</xsl:if>

<xsl:if test="$image_source!=''">
<xsl:choose>
<xsl:when test="starts-with($image_source, 'http://') or starts-with($image_source ,'https://')">
<span class="image-meta-source">
<a class="image-meta-source-link" href="{$image_source}" title="{$image_source}" target="_blank">
<xsl:value-of select="substring-after($image_source, '://')"/>
</a>
</span>
</xsl:when>
<xsl:when test="starts-with($image_source, 'www.')">
<span class="image-meta-source">
<a class="image-meta-source-link" href="{$image_source}" title="{$image_source}" target="_blank">
<xsl:value-of select="$image_source"/>
</a>
</span>
</xsl:when>
<xsl:when test="starts-with($image_source, '/')">
<span class="image-meta-source">
<a class="image-meta-source-link" href="{$image_source}" title="{$image_source}">
<xsl:value-of select="$image_source"/>
</a>
</span>
</xsl:when>
<xsl:otherwise>
<span class="image-meta-source">
<xsl:value-of select="$image_source"/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:if>

</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="table[@border_type]">
<table style="{@style}" cellspacing="{@cellspacing}" cellpadding="{@cellpadding}" width="{@width}">
<xsl:if test="@align!=''">
<xsl:attribute name="align">
<xsl:value-of select="@align"/>
</xsl:attribute>
</xsl:if>
<xsl:variable name="bgColor">
<xsl:choose>
<xsl:when test="@background_clr='0'">
</xsl:when>
<xsl:otherwise>
BACKGROUND-COLOR: <xsl:value-of select="@background_clr"/>; <xsl:value-of select="@style"/>;
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="@border_type = 1">
<xsl:attribute name="style">
<xsl:value-of select="concat('BORDER: ',@border_clr,' ',@border_width,'px solid', $bgColor)"/>
</xsl:attribute>
<xsl:for-each select="tr|tbody/tr">
<tr>
<xsl:for-each select="td">
<td>
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:when>
<xsl:when test="@border_type = 0 and @cellspacing = 0">
<xsl:attribute name="style">
<xsl:value-of select="$bgColor"/>
</xsl:attribute>
<xsl:variable name="color" select="@border_clr"/>
<xsl:variable name="width" select="@border_width"/>
<xsl:for-each select="tr|tbody/tr">
<xsl:variable name="oben">
<xsl:if test="position() = 1">true</xsl:if>
</xsl:variable>
<tr>
<xsl:for-each select="td">
<xsl:variable name="links">
<xsl:if test="position() = 1">true</xsl:if>
</xsl:variable>
<xsl:if test="$oben='true' and $links!='true'">
<td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px;
BORDER-TOP:{$color} {$width}px solid;MARGIN:0px;
BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;">
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:if>
<xsl:if test="$oben='true' and $links='true'">
<td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px;
BORDER-TOP:{$color} {$width}px solid;MARGIN:0px;
BORDER-LEFT:{$color} {$width}px solid;MARGIN:0px;
BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;">
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:if>
<xsl:if test="$links='true' and $oben!='true'">
<td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px;
BORDER-LEFT:{$color} {$width}px solid;MARGIN:0px;
BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;">
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:if>
<xsl:if test="$oben!='true' and $links!='true'">
<td style="BORDER-RIGHT:{$color} {$width}px solid;MARGIN:0px;
BORDER-BOTTOM:{$color} {$width}px solid;MARGIN:0px;">
<xsl:for-each select="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:if>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="style">
<xsl:value-of select="$bgColor"/>
</xsl:attribute>
<xsl:variable name="color" select="@border_clr"/>
<xsl:variable name="width" select="@border_width"/>
<xsl:for-each select="tr|tbody/tr">
<tr>
<xsl:for-each select="td">
<td style="BORDER:{$color} {$width}px solid;MARGIN:0px;">
<xsl:for-each select="@*[.!='']">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</table>
</xsl:template>

<xsl:template match="em">
<span class="em">
<xsl:copy-of select="node()"/>
</span>
</xsl:template>

<xsl:template match="highlight|fad:highlight">
<xsl:call-template name="highlight"/>
</xsl:template>

<xsl:template name="highlight">
<div class="highlight">
<xsl:if test="@width or @height">
<xsl:attribute name="style">
<xsl:if test="@width">width:<xsl:value-of select="@width"/>;
</xsl:if>
<xsl:if test="@height">height:<xsl:value-of select="@height"/>;
</xsl:if>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="message">
<h3><xsl:value-of select="@caption"/></h3>
<span class ="message_text">
<xsl:apply-templates/>
</span>
</xsl:template>

<!--Systemmeldungen//-->
<xsl:template match="sysmessage">
<xsl:choose>
<xsl:when test="document('arg:/_xml')/content/@sysmessage='no'"></xsl:when>
<xsl:otherwise>
<xsl:variable name="temp_buffer" select="string(.)"/>
<span class="message_text">
<xsl:apply-templates/>
</span>
<!-- Linn Meldung nur anzeigen, wenn temp_buffer nicht leer ist -->
<xsl:if test="document('arg:/_xml')/content/@popmessage='yes' and $temp_buffer != ''">
<script type="text/javascript">
alert("<xsl:value-of select="$temp_buffer"/>");
</script>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="error">
<span class="errorlabel">
<xsl:value-of select="@caption"/>
</span>
</xsl:template>

<xsl:template match="Error">
<span class="errorlabel">
<xsl:value-of select="."/>
</span>
</xsl:template>

<!--xsl:template match="form">
<form>
<xsl:if test="@id != ''">
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
</xsl:if>
<xsl:if test="@name != ''">
<xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
</xsl:if>
<xsl:if test="@class != ''">
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
</xsl:if>
<xsl:if test="@action != ''">
<xsl:attribute name="action"><xsl:value-of select="@action"/></xsl:attribute>
</xsl:if>
<xsl:if test="@mathode != ''">
<xsl:attribute name="method"><xsl:value-of select="@method"/></xsl:attribute>
</xsl:if>
<xsl:if test="@enctype != ''">
<xsl:attribute name="enctype"><xsl:value-of select="@enctype"/></xsl:attribute>
</xsl:if>
<xsl:attribute name="accept-charset"><xsl:value-of select="'UTF-8'"/></xsl:attribute>
<xsl:if test="@default_action != ''">
<xsl:attribute name="default_action"><xsl:value-of select="@default_action"/></xsl:attribute>
</xsl:if>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="@target != ''"><xsl:value-of select="@target"/></xsl:when>
<xsl:otherwise>_self</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="@script != ''">
<xsl:attribute name="onsubmit"><xsl:value-of select="@script"/></xsl:attribute>
</xsl:if>
<xsl:if test="@style != ''">
<xsl:attribute name="style"><xsl:value-of select="@style"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates select="*[name()!='errorbox']/*"/>
<xsl:if test="@focus">
<script type="text/javascript">
document.getElementById("<xsl:value-of select="@name"/>::<xsl:value-of select="@focus"/>").focus();
</script>
</xsl:if>
</form>
</xsl:template-->

<xsl:template match="form">
<form>
<xsl:if test="@id != ''">
<xsl:attribute name="id">
<xsl:value-of select="@id"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@name != ''">
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@class != ''">
<xsl:attribute name="class">
<xsl:value-of select="@class"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@action != ''">
<xsl:attribute name="action">
<xsl:value-of select="@action"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@method != ''">
<xsl:attribute name="method">
<xsl:value-of select="@method"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@enctype != ''">
<xsl:attribute name="enctype">
<xsl:value-of select="@enctype"/>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="accept-charset">
<xsl:value-of select="'UTF-8'"/>
</xsl:attribute>
<xsl:if test="@default_action != ''">
<xsl:attribute name="default_action">
<xsl:value-of select="@default_action"/>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="@target != ''">
<xsl:value-of select="@target"/>
</xsl:when>
<xsl:otherwise>_self</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="@script != ''">
<xsl:attribute name="onsubmit">
<xsl:value-of select="@script"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@style != ''">
<xsl:attribute name="style">
<xsl:value-of select="@style"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="*[name()!='errorbox']"/>
<xsl:if test="@focus">
<script type="text/javascript">
document.getElementById("<xsl:value-of select="@name"/>::<xsl:value-of select="@focus"/>").focus();
</script>
</xsl:if>
</form>
</xsl:template>

<xsl:template match="noscript">
<noscript>
<xsl:apply-templates/>
</noscript>
</xsl:template>

<xsl:template name="fad_counter">
<xsl:variable name="page" select="php:function('web_Session::getCurrentPage')"/>
<xsl:variable name="logparam" select="php:function('web_Session::getLogParams')"/>
<xsl:variable name="js_add" select="php:function('web_Content::addScript','/tools.count.js','text/javascript',1)"/>
<script>
if (!(typeof ipc == 'undefined' || ipc == null)) {
var ipc_data = {
"ref":"<xsl:value-of select="$page"/>",
"param":"<xsl:value-of select="$logparam"/>"
}
ipc.c(ipc_data);
}
</script>
<noscript>
<img src="/tools.count.script?ref={$page}&amp;param={$logparam}" style="visibility:hidden;"/>
</noscript>

<xsl:if test="not(php:function('web_Session::is_ajax_call'))">
<xsl:call-template name="ivwcode"/>
</xsl:if>

</xsl:template>

<xsl:template match="input">
<xsl:choose>
<xsl:when test="@ida='' and (@readonly = 'readonly')">
<xsl:value-of select="@value"/>
</xsl:when>
<xsl:otherwise>
<input>
<xsl:copy-of select="@*[name() != 'class' and name() != 'ibs_checked']"/>
<xsl:variable name="error" select="ancestor::*[name()='ControlElement']/@error!=''"/>
<xsl:if test="@class != '' or $error != ''">
<xsl:attribute name="class">
<xsl:value-of select="@class"/>
<xsl:if test="$error != ''">
<xsl:value-of select="' '"/>
<xsl:value-of select="'error'"/>
</xsl:if>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="@size">
<xsl:attribute name="size">
<xsl:value-of select="@size"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:if test="@value!='' and string-length(@value) > 20 and @ida='' and (@readonly = 'readonly')">
<xsl:attribute name="size">
<xsl:value-of select="string-length(@value) + 1"/>
</xsl:attribute>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="name() = 'ibs_checked'">
<xsl:attribute name="checked">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
</input>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="select">
<select>
<xsl:copy-of select="@*[name() != 'class']"/>
<xsl:if test="@class != ''">
<xsl:attribute name="class">
<xsl:value-of select="@class"/>
<xsl:if test="../@error!=''">
<xsl:if test="@class != ''">
<xsl:value-of select="' '"/>
</xsl:if>
<xsl:value-of select="'error'"/>
</xsl:if>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="optgroup|option"/>
</select>
</xsl:template>

<xsl:template match="optgroup">
<optgroup label="{@label}">
<xsl:apply-templates select="option"/>
</optgroup>
</xsl:template>

<xsl:template match="option">
<option>
<xsl:for-each select="@*">
<xsl:choose>
<!--Kleines Fake da es Probleme mit den Attributen selected und disabled bei DataOptionList gibt-->
<xsl:when test="name()='select'">
<xsl:attribute name="selected">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:when>
<xsl:when test="name()='not_enabled'">
<xsl:attribute name="disabled">
<xsl:value-of select="'true'"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:value-of select="."/>
</option>
</xsl:template>

<xsl:template match="table[@type='ibs_vtable']">
<table class="data_table" cellpadding="0" cellspacing="0">
<xsl:for-each select="@*[name()!='type']">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:for-each select="tr">
<xsl:call-template name="RenderVTR">
</xsl:call-template>
</xsl:for-each>
</table>
</xsl:template>

<xsl:template match="textarea">
<textarea>
<xsl:copy-of select="@*[name() != 'class']"/>
<xsl:if test="@class != '' or ../@error != ''">
<xsl:attribute name="class">
<xsl:value-of select="@class"/>
<xsl:if test="../@error!=''">
<xsl:if test="@class!=''">
<xsl:value-of select="' '"/>
</xsl:if>
<xsl:value-of select="'error'"/>
</xsl:if>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</textarea>
</xsl:template>



<!--inveda_cm Framework GUI-Elemente-->

<xsl:template match="ControlGroup">
<xsl:if test="node()">
<div class="ControlGroup">
<xsl:if test="Data|ControlElement|ControlButton">
<xsl:if test="Data">
<xsl:apply-templates select="Data"/>
</xsl:if>

<xsl:if test="translate(@caption,' ','') != '' or Description">
<div class="ControlGroup_description_wrapper">
<xsl:if test="translate(@caption,' ','') != ''">
<h3 class="ControlGroup_caption">
<xsl:value-of select="@caption"/>
</h3>
</xsl:if>

<xsl:if test="Description">
<div class="ControlGroup_description">
<xsl:apply-templates select="Description/node()"/>
</div>
</xsl:if>
</div>
</xsl:if>

<xsl:if test="ControlElement">
<div class="ControlGroup_content">
<xsl:choose>
<xsl:when test="count(ControlElement[@location='right' or @location='left']) &gt; 0">
<xsl:if test="count(ControlElement[@location='left']) &gt; 0">
<div class="ControlGroup_content_left">
<xsl:for-each select="ControlElement[@location='left']">
<xsl:call-template name="ControlElement">
<xsl:with-param name="location" select="@location"/>
</xsl:call-template>
</xsl:for-each>
</div>
</xsl:if>
<xsl:if test="count(ControlElement[@location='left']) &gt; 0">
<div class="ControlGroup_content_middle">
<xsl:for-each select="ControlElement[not(@location='right' or @location='left')]">
<xsl:call-template name="ControlElement">
<xsl:with-param name="location" select="@location"/>
</xsl:call-template>
</xsl:for-each>
</div>
</xsl:if>
<div class="ControlGroup_content_right">
<xsl:for-each select="ControlElement[@location='right']">
<xsl:call-template name="ControlElement">
<xsl:with-param name="location" select="@location"/>
</xsl:call-template>
</xsl:for-each>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="ControlElement">
<xsl:call-template name="ControlElement">
<xsl:with-param name="location" select="@location"/>
</xsl:call-template>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:if>

<xsl:if test="@confirm_question!=''">
<div class="ControlGroup_confirm_question">
<xsl:value-of select="@confirm_question"/>
</div>
</xsl:if>

<xsl:if test="count(ControlButton) &gt; 0">
<div class="ControlGroup_buttons_div">
<xsl:attribute name="class">
<xsl:value-of select="'ControlGroup_buttons'"/>
<xsl:if test="@gridded = true()">
<xsl:value-of select="' gridded'"/>
</xsl:if>
</xsl:attribute>
<xsl:apply-templates select="ControlButton"/>
</div>
</xsl:if>

</xsl:if>
</div>
</xsl:if>
</xsl:template>

<xsl:template match="ControlElement">
<xsl:call-template name="ControlElement"/>
</xsl:template>

<xsl:template name="ControlElement">
<xsl:param name="location"/>
<xsl:if test="node()">
<div>
<xsl:attribute name="class">
<xsl:value-of select="concat('form-group ',@control,' ')"/>
<xsl:if test="@name != ''">
<xsl:value-of select="concat(' form_',@name)"/>
</xsl:if>
<xsl:if test="@required or @error!=''">
<xsl:value-of select="' required'"/>
</xsl:if>
<xsl:if test="@caption = ''">
<xsl:value-of select="' empty'"/>
</xsl:if>
<xsl:if test="$location != ''">
<xsl:value-of select="concat(' ',$location)"/>
</xsl:if>
</xsl:attribute>
<xsl:choose>
<xsl:when test="@type='ida'">
<xsl:apply-templates/>
</xsl:when>
<xsl:when test="@type='simple'">
<xsl:call-template name="Control"/>
</xsl:when>
<xsl:when test="@type='extended'">
<xsl:call-template name="Label">
<xsl:with-param name="required" select="@required or @error!=''"/>
<xsl:with-param name="css_family" select="'ControlElement'"/>
</xsl:call-template>

<span class="help_element">
<xsl:choose>
<xsl:when test="@help_page != ''">
<xsl:attribute name="class">help_element help_page</xsl:attribute>
<a href="{@help_page}" onclick="getHelp('{@help_page}', this, 'control');return false;">
<i class="ii ii-info" alt="Hilfe zu diesem Bedienelement" title="Hilfe zu diesem Bedienelement">help</i>
</a>
</xsl:when>
<xsl:when test="@help_text != ''">
<xsl:attribute name="class">help_element help_text</xsl:attribute>
<a id="{@id}_help" href="#{@id}_help" tooltip="{@help_text}">?</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'&#160;'"/>
</xsl:otherwise>
</xsl:choose>
</span>

<xsl:call-template name="Control"/>
</xsl:when>
<xsl:when test="@type='hidden'">
<xsl:attribute name="style">
<xsl:value-of select="'display:none'"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:when>
</xsl:choose>
</div>
</xsl:if>
</xsl:template>

<xsl:template name="Label">
<xsl:param name="required"/>
<xsl:param name="css_family"/>
<xsl:variable name="css_err">
<xsl:choose>
<xsl:when test="@error!=''">_error_</xsl:when>
<xsl:otherwise>_</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="css_family_label">
<xsl:value-of select="concat($css_family,$css_err,'label')"/>
</xsl:variable>
<label for="{@id}">
<xsl:attribute name="class">
<xsl:value-of select="'ControlElement_label'"/>
<xsl:if test="@label_position != ''">
<xsl:value-of select="concat(' fad_label_position_',@label_position)"/>
</xsl:if>
</xsl:attribute>
<xsl:if test="@required or $required">
<xsl:attribute name="title">
<xsl:value-of select="'Pflichtfeld'"/>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="translate(@caption,' ','') != ''">
<xsl:value-of select="@caption"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'&#160;'"/>
</xsl:otherwise>
</xsl:choose>
</label>
</xsl:template>

<xsl:template name="Control">
<xsl:variable name="css_err">
<xsl:choose>
<xsl:when test="@error!=''">_error_</xsl:when>
<xsl:otherwise>_</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:choose>
<xsl:when test="@icon != '' or @error !='' or @ima_help">
<div class="fad_control">
<xsl:call-template name="render-control">
<xsl:with-param name="icon" select="@icon"/>
<xsl:with-param name="error" select="@error"/>
<xsl:with-param name="ima_help" select="@ima_help"/>
</xsl:call-template>
</div>
</xsl:when>
<xsl:otherwise>
<div class="ControlElement_cell">
<xsl:apply-templates/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="render-control">
<xsl:param name="icon"/>
<xsl:param name="error"/>
<xsl:param name="ima_help"/>

<xsl:if test="$icon != ''">
<img src="/web.images.{$icon}.png" class="label_status"/>
</xsl:if>

<xsl:choose>
<xsl:when test="$error!=''">
<span class="error_control" nowrap="nowrap">
<xsl:apply-templates/>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>

<xsl:if test="$error!='' or $ima_help">
<span>
<xsl:if test="$error!=''">
<xsl:attribute name="class">error_control error_message</xsl:attribute>
<xsl:value-of select="$error"/>
</xsl:if>
<xsl:if test="$ima_help != ''">
<a href="{$ima_help}" target="inveda_help">
<i class="ii ii-info" alt="Hilfe zu diesem Bedienelement" title="Hilfe zu diesem Bedienelement">help</i>
</a>
</xsl:if>
</span>
</xsl:if>
</xsl:template>

<xsl:template match="ControlButton">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="tab_view">
<xsl:call-template name="tab_view"/>
</xsl:template>

<xsl:template name="tab_view">
<xsl:variable name="js1" select="php:function('web_Content::addScript', '/scripts/tab.js')"/>
<div class="tab_box" id="{@id}">
<ul class="tab_nav">
<xsl:for-each select="tab_view_tab">
<li class="tab_item">
<a class="tab_link">
<xsl:value-of select="@caption"/>
</a>
</li>
</xsl:for-each>
</ul>
<xsl:for-each select="tab_view_tab">
<div class="tab_view">
<xsl:apply-templates/>
</div>
</xsl:for-each>
</div>
<script type="text/javascript">setTimeout("tab_init(document.getElementById('{./@id}'), 0);",120);</script>
</xsl:template>

<xsl:template match="webbox">
<xsl:apply-templates select="php:function('dialog_WebBox::create',exslt:node-set(.))"/>
</xsl:template>

<xsl:template match="WebBox">
<xsl:call-template name="WebBox"/>
</xsl:template>

<xsl:template name="WebBox">
<xsl:variable name="link">
<xsl:if test="@link != ''">
<xsl:value-of select="@link"/>
<xsl:choose>
<xsl:when test="@link_mime = 'none'"/>
<xsl:when test="@link_mime != ''">
<xsl:value-of select="concat('.', @link_mime)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'.html'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:variable>
<xsl:variable name="link_text" select="@link_text"/>
<xsl:variable name="link_target" select="@link_target"/>
<div class="webbox">
<xsl:if test="translate(@caption,' ','')">
<div class="WebBox_caption">
<xsl:choose>
<xsl:when test="$link != ''">
<a href="{$link}" class="WebBox_caption_link">
<h3 class="WebBox_caption_content">
<xsl:value-of select="@caption"/>
</h3>
</a>
</xsl:when>
<xsl:otherwise>
<h3 class="WebBox_caption_content">
<xsl:value-of select="@caption"/>
</h3>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="@filter='toggle'">
<span class="WebBox_caption_togglefilter">
<a onclick="toggleFilter(this, '{@name}');" id="{concat(@name, '_togglefilter')}">
<i class="ii ii-details_minus" title="Filter ein/ausblenden">Filter ein/ausblenden</i>
</a>
</span>
</xsl:if>
<xsl:if test="@help!=''">
<span class="WebBox_caption_help">
<a href="{@help}" target="inveda_help">
<i class="ii ii-info" title="Hilfe">Hilfe</i>
</a>
</span>
</xsl:if>
</div>
</xsl:if>
<xsl:choose>
<xsl:when test="form/ControlGroup/Description/@show = 'true' and form/ControlGroup/Description != ''">
<div class="WebBox_description">
<xsl:copy-of select="form/ControlGroup/Description/node()"/>
</div>
</xsl:when>
<xsl:when test="Description != ''"> <!-- Description in Dialogen ohne Controls -->
<div class="WebBox_description">
<h3 class="ControlGroup_caption">
<xsl:value-of select="Caption"/>
</h3>
<xsl:copy-of select="Description/node()"/>
</div>
</xsl:when>
</xsl:choose>
<xsl:if test="count(form/*[name()='ControlGroup' or name()='ControlElement']) &gt; 0 or table">
<div class="webbox_cell">
<xsl:apply-templates select="form"/>
</div>
</xsl:if>
<xsl:if test="webboxmenu">
<div class="webbox_menu">
<xsl:apply-templates select="webboxmenu"/>
</div>
</xsl:if>
<xsl:if test="Data">
<div class="webbox_cell">
<xsl:apply-templates select="Data"/>
</div>
</xsl:if>
<xsl:if test="div">
<xsl:apply-templates select="div"/>
</xsl:if>
</div>
<xsl:if test="//errorbox != ''"> <!-- kann direkt in der webbox, oder im form stehen -->
<xsl:choose>
<xsl:when test="document('arg:/inveda_cm')/inveda_cm/inveda_cm_debug = 'ON'">
<div class="fad_error_box">
<span style="font-weight:bold;color:#900;">Eingabefehler im DSH:</span>
<div style="padding:3px 0 0 7px;">
<xsl:copy-of select="//errorbox/developer/node()"/>
</div>
</div>
</xsl:when>
<xsl:otherwise>
<div class="fad_error_box" style="font-weight:bold;text-align:center">
<xsl:choose>
<xsl:when test="string-length(//errorbox/user) > 0">
<xsl:copy-of select="//errorbox/user/node()"/>
</xsl:when>
<xsl:otherwise>Keine Daten verfügbar</xsl:otherwise>
</xsl:choose>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="script">
<script type="text/javascript">
<xsl:value-of select="script" disable-output-escaping="yes"/>
</script>
</xsl:if>
<!-- Toggle Filter erst beim click ausführen und nicht beim Seitenaufruf -->
<!--<xsl:if test="@filter='toggle'">-->
<!--<script type="text/javascript">-->
<!--toggleFilter(document.getElementById('<xsl:value-of select="concat(@name, '_togglefilter')"/>'), '<xsl:value-of select="@name"/>');-->
<!--</script>-->
<!--</xsl:if>-->
</xsl:template>

<!--Normaler Text, wird nicht indiziert-->
<xsl:template match="text[../content]">
<xsl:apply-templates select="node()|comment()|processing-instruction()"/>
</xsl:template>

<!--für den rteditor...-->

<xsl:template match="actiongroup">
<xsl:variable name="type">
<xsl:choose>
<xsl:when test="../../@type!=''">
<xsl:value-of select="../../@type"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'simple'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

<xsl:if test="$type = @type or @type='simple'">
<br/>
<table cellpadding="0" cellspacing="2" border="0" height="20" class="webapp_actiongroup" align="left" valign="left" style="float:left;">
<tr>
<xsl:for-each select="item">
<td bgColor="#e0e0e0" valign="top" align="center" width="20" onmouseover="mouseOver(this)" onmouseout="mouseOut(this)">
<xsl:element name="{@tag}">
<xsl:for-each select="@*">
<xsl:if test="name()!='tag'">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:if>
</xsl:for-each>
<xsl:apply-templates select="*|text"/>
</xsl:element>
</td>
</xsl:for-each>
</tr>
</table>
</xsl:if>
</xsl:template>

<xsl:template match="rtmenu">
<table class="ControlGroupTable" id="toolbar1" width="100%">
<tr>
<td>
<xsl:apply-templates select="actiongroup"/>
</td>
</tr>
</table>
</xsl:template>

<xsl:template match="rteditor">
<xsl:variable name="type" select="@type"/>
<script type="text/javascript" language="JavaScript1.2">
type = "<xsl:value-of select="@type"/>";
session = "<xsl:value-of select="$session"/>";
editor_name = "<xsl:value-of select="@editor_name"/>";
archive = "<xsl:value-of select="@archive"/>";
holder_url="<xsl:value-of select="@holder_url"/>";
embedded=true;
boxName="<xsl:value-of select="@boxName"/>";
controlName="<xsl:value-of select="@controlName"/>";
holder_preview="?preview=yes";
if(boxName==""){
embedded=false;
}
width="<xsl:value-of select="@width"/>";
height="<xsl:value-of select="@height"/>";
</script>
<script type="text/javascript" language="JavaScript1.2" src="/editor.js.rteditor.js">
//editor</script>
<script type="text/javascript" language="JavaScript1.2" src="/editor.js.menu.js">
//menu</script>
<script type="text/javascript" language="JavaScript1.2" src="/editor.js.fck_xhtml.js">
//script</script>

<xsl:copy-of select="document('ibs:/modules,editor/menu.xml')/menu/style"/>
<xsl:variable name="menu" select="document('ibs:/modules,editor/menu.xml')/menu/menu[@type=$type]"/>

<ul class="menuBar" style="position:relative;top:10px">
<xsl:for-each select="$menu/item">
<xsl:variable name="pos1" select="position()"/>
<xsl:if test="item">
<li>
<a class="menuButton" href="javascript:buttonClick(event, 'menu{position()}')" onclick="return buttonClick(event, 'menu{position()}');" onmouseover="buttonMouseover(event, 'menu{position()}');">
<xsl:value-of select="@title"/>
&#160;
</a>
<ul id="menu{position()}" class="menu" onmouseover="menuMouseover(event)">
<xsl:for-each select="item">
<xsl:choose>
<xsl:when test="item">
<li>
<a class="menuItem" href="/blank.html" onclick="return false;" onmouseover="menuItemMouseover(event, 'menu{$pos1}_{position()}');">
<span class="menuItemText">
<xsl:value-of select="@title"/>
</span>
<span class="menuItemArrow">&#9654;</span>
</a>
<ul id="menu{$pos1}_{position()}" class="menu" onmouseover="menuMouseover(event)">
<xsl:for-each select="item">
<li>
<a class="menuItem" href="{@link}" onclick="hideMenu(event)">
<span class="menuLinkText">
<xsl:if test="@img">
<img class="menuItemPic" src="{@img}"/>
</xsl:if>
<xsl:value-of select="@title"/>
&#160;
</span>
</a>
</li>
</xsl:for-each>
</ul>
</li>
</xsl:when>
<xsl:otherwise>
<li>
<a class="menuItem" href="{@link}">
<span class="menuLinkText">
<xsl:if test="@img">
<img class="menuItemPic" src="{@img}"/>
</xsl:if>
<xsl:value-of select="@title"/>
&#160;
</span>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</ul>
</li>
</xsl:if>
</xsl:for-each>
</ul>

<div id="editor" class="tabPanel" style="z-index:0; clear: both">
<xsl:apply-templates select="rtmenu"/>
<iframe src="" name="editorWindow" id="editorWindow" class="edit" width="{@width}px" height="{@height}px" marginwidth="5px" marginheight="5px" style="background-color:#FFF;border:1px solid #000;">
<p>
Ihr Browser kann leider keine eingebetteten Frames anzeigen.
Bitte verwenden Sie das herkömmliche Eingabefeld zum Bearbeiten
Ihrer Texte oder verwenden Sie einen aktuellen Browser.
</p>
</iframe>
</div>
</xsl:template>

<xsl:template match="ibs-webbox">
<xsl:variable name="param">
<xsl:call-template name="xmltotxt">
<xsl:with-param name="xml" select="."/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="param2" select="string($param)"/>

<xsl:apply-templates select="php:function('XSLWebBox',$param2)"/>
</xsl:template>

<xsl:template name="xmltotxt">
<xsl:param name="xml"/>&lt;<xsl:value-of select="name($xml)"/><xsl:for-each select="@*"><xsl:value-of select="concat(' ',name())"/>="<xsl:value-of select="."/>"</xsl:for-each> &gt;<xsl:for-each select="$xml/*"><xsl:call-template name="xmltotxt"><xsl:with-param name="xml" select="."/></xsl:call-template></xsl:for-each><xsl:value-of select="$xml/text()"/>&lt;/<xsl:value-of select="name($xml)"/>&gt;</xsl:template>

<xsl:template match="movie">
<xsl:choose>
<xsl:when test="@preview='yes'">
<a title="Video abspielen" href="tools.movie.player.html?height={@height}&amp;width={@width}&amp;autostart={@autostart}&amp;src={@src}"
onclick="requestWebbox('tools.movie.player.ajax?height={@height}&amp;width={@width}&amp;autostart={@autostart}&amp;src={@src}&amp;{$sessionid}'); return false;"
target="movie">
<xsl:choose>
<xsl:when test="@previewpic">
<xsl:variable name="previewpic">
<xsl:choose>
<xsl:when test="starts-with(@previewpic,'http')">
<xsl:value-of select="@previewpic"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('http://',document('ibs:/holder_value,domain')/content/@value,'/',@previewpic)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<img src="{$previewpic}"/>
</xsl:when>
<xsl:otherwise>
<img src="tools.movie.movie_thumb.script?file={@src}&amp;archive=user"/>
</xsl:otherwise>
</xsl:choose>
</a>
</xsl:when>
<xsl:when test="@preview='no'">
<xsl:variable name="src">
<xsl:choose>
<xsl:when test="starts-with(@src,'http')">
<xsl:value-of select="@src"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('http://',document('ibs:/holder_value,domain')/content/@value,'/',@src)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="autostart">
<xsl:choose>
<xsl:when test="@autostart='true' or @autostart='yes'">
<xsl:value-of select="'true'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'false'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<object type="application/x-shockwave-flash" width="{@width}" height="{@height}" wmode="transparent" data="ibs/mediaplayer.swf?file={$src}&amp;autostart={$autostart}">
<param name="movie" value="ibs/mediaplayer.swf?file={$src}&amp;autostart={$autostart}"/>
<param name="wmode" value="transparent"/>
</object>
</xsl:when>
<xsl:otherwise>
<a title="Video abspielen" href="tools.movie.player.html?height={@height}&amp;width={@width}&amp;autostart={@autostart}&amp;src={@src}" onclick="requestWebbox('tools.movie.player.ajax?height={@height}&amp;width={@width}&amp;autostart={@autostart}&amp;src={@src}&amp;{$sessionid}'); return false;" target="movie">
<img src="{@preview}"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template name="RenderTimeElement">
<!-- Value in Minuten übergeben -->
<xsl:param name="value"/>
<xsl:param name="signed" select="'true'"/>
<xsl:param name="format" select="'hh:mm'"/><!-- hh:mm oder 0.0 oder 0.00 -->
<xsl:param name="title"/>
<xsl:if test="$title">
<xsl:attribute name="title">
<xsl:value-of select="$title"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$signed = 'true' and string(number($value)) != 'NaN' and number($value) &lt; 0">-</xsl:if>
<xsl:variable name="num_value" select="number ( $value )"/>
<xsl:variable name="sign">
<xsl:choose>
<xsl:when test="string(number($value)) != 'NaN' and number($value) &lt; 0">-1</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="abs_value" select="number ( $sign ) * $num_value"/>
<xsl:if test="$format = 'hh:mm'">
<xsl:choose>
<xsl:when test="string($abs_value) != 'NaN' and $abs_value != 0">
<xsl:value-of select="concat ( format-number ( floor ( $abs_value div 60 ), '00' ),':', format-number( $abs_value - 60 * floor ( $abs_value div 60 ) ,'00' ) )"/>
</xsl:when>
<xsl:when test="string($abs_value) != 'NaN' and $abs_value = 0">00:00</xsl:when>
<xsl:otherwise>--:--</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="$format = '0.0'">
<xsl:choose>
<xsl:when test="string($abs_value) != 'NaN' and $abs_value != 0">
<xsl:value-of select="format-number($abs_value div 60,'#0,0')"/>
</xsl:when>
<xsl:when test="string($abs_value) != 'NaN' and $abs_value = 0">0,0</xsl:when>
<xsl:otherwise>-,-</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="$format = '0.00'">
<xsl:choose>
<xsl:when test="string($abs_value) != 'NaN' and $abs_value != 0">
<xsl:value-of select="format-number($abs_value div 60,'#0,00')"/>
</xsl:when>
<xsl:when test="string($abs_value) != 'NaN' and $abs_value = 0">0,00</xsl:when>
<xsl:otherwise>-,--</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>


<!-- remove dialog, because Chrome/Safari handling is a mess -->
<xsl:template match="dialog">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="answer">
<div class="fad_cms_answer">
<xsl:variable name="right" select="./@right"/>
<xsl:for-each select="./p">
<p>
<xsl:if test="position()=1">
<input type="checkbox" name="fad_answer" value="">
<xsl:if test="$right='true'">
<xsl:attribute name="checked">checked</xsl:attribute>
<xsl:attribute name="onclick">this.checked=true;</xsl:attribute>
</xsl:if>
<xsl:if test="$right!='true'">
<xsl:attribute name="onclick">this.checked=false;</xsl:attribute>
</xsl:if>
</input>
</xsl:if>
<xsl:apply-templates/>
</p>
</xsl:for-each>
</div>
</xsl:template>
<!--
<xsl:template match="script">
<xsl:if test="@src != ''">
<xsl:variable name="add_Script" select="php:function('web_Content::addScript',string(@src),'text/javascript',number( 600 + position() ))"/>
</xsl:if>
<xsl:if test="not(@src) or @src = ''">
<xsl:variable name="script_body">
$(function(){
<xsl:for-each select="*|text()">
<xsl:value-of select="string(.)" disable-output-escaping="yes"/>
</xsl:for-each>
});
</xsl:variable>
<xsl:variable name="add_Script" select="php:function('web_Content::addScriptCode',string($script_body),'text/javascript',number( 700 + position() ) )"/>
</xsl:if>
</xsl:template>
-->

<!-- ima calculator passthrough -->
<xsl:template match="div[@id = 'calculator' and not(@data-src = '')]">
<xsl:copy-of select="."/>
</xsl:template>

<xsl:template name="ivwcode">
<xsl:if test="$ivwszm_cdata != ''">

<xsl:variable name="szm-code">
<xsl:choose>
<xsl:when test="$document/metadata/publishtype">
<xsl:value-of select="concat($document/metadata/publishtype,'-',$document/metadata/schema,'-',$document/metadata/layout/@name,'-',$document/metadata/skin.szm-code)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="php:function('web_Session::getCurrentPage')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="ivwszm" select="document('ibs:/holder_param,ivwszm_id')/content/@value"/>
<!--Zenus-->
<script type='text/javascript'>
IOMm('configure', { st: '<xsl:value-of select="$ivwszm"/>', dn: '<xsl:value-of select="$ivwszm_cdata"/>', ct: '0000810000', mh: 5 }); // Configure IOMm
IOMm('pageview', { cp: '<xsl:value-of select="$szm-code"/>' }); // Count pageview
</script>
<script type='text/javascript' src='https://{$ivwszm_cdata}/iomm/latest/manager/base/es5/bundle.js'></script>
</xsl:if>
</xsl:template>


</xsl:stylesheet>";s:7:"/schema";s:119:"<?xml version="1.0" encoding="utf-8" ?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"/>";}
3False

file: 1024 - /www/deutrik/fad-server/class/web/Session.php
call: web_content_HTML->deliver
0index
1lesering-two
2Object(DOMDocument) O:11:"DOMDocument":0:{}

file: 297 - /www/deutrik/fad-server/class/web/session/Holder.php
call: web_Session->deliver
0index
1html
2lesering-two
3Object(DOMDocument) O:11:"DOMDocument":0:{}

file: 383 - /www/deutrik/fad-server/class/web/Session.php
call: web_session_Holder->run

file: 7 - /www/deutrik/fad-server/public/start.php
call: web_Session::start
Die Gefährten - Lesering.de

Du schreibst und würdest deine Texte gerne teilen?