<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:p="http://uri.in2isoft.com/onlinepublisher/publishing/page/1.0/"
 xmlns:f="http://uri.in2isoft.com/onlinepublisher/publishing/frame/1.0/"
 xmlns:h="http://uri.in2isoft.com/onlinepublisher/publishing/hierarchy/1.0/"
 xmlns:header="http://uri.in2isoft.com/onlinepublisher/part/header/1.0/"
 xmlns:text="http://uri.in2isoft.com/onlinepublisher/part/text/1.0/"
 xmlns:movie="http://uri.in2isoft.com/onlinepublisher/part/movie/1.0/"
 xmlns:util="http://uri.in2isoft.com/onlinepublisher/util/"
 xmlns:part="http://uri.in2isoft.com/onlinepublisher/part/1.0/"
 exclude-result-prefixes="p f h header text util part"
 >

<xsl:variable name="only-inline" select="'!true'" />

<xsl:variable name="timestamp-query">
	<xsl:if test="$urlrewrite!='true'">
		<xsl:text>?version=</xsl:text><xsl:value-of select="$timestamp"/>
	</xsl:if>
</xsl:variable>

<xsl:variable name="timestamp-url">
	<xsl:if test="$urlrewrite='true'">
		<xsl:text>version</xsl:text><xsl:value-of select="$timestamp"/><xsl:text>/</xsl:text>
	</xsl:if>
</xsl:variable>


<!-- Links -->

<xsl:template name="util:link">
	<xsl:attribute name="title"><xsl:value-of select="@alternative"/></xsl:attribute>
	<xsl:choose>
		<xsl:when test="$editor='true'">
			<xsl:attribute name="href">javascript://</xsl:attribute>
			<xsl:choose>
				<xsl:when test="@id">
					<xsl:attribute name="onclick">
					linkController.linkWasClicked({
						id : <xsl:value-of select="@id"/>
						, event : event
						, node : this
						<xsl:if test="ancestor::part:part/@id">,part : <xsl:value-of select="ancestor::part:part/@id"/></xsl:if>
					}); return false;
					</xsl:attribute>
					<xsl:attribute name="oncontextmenu">
						linkController.linkMenu({
							id : <xsl:value-of select="@id"/>
							, event : event
							, node : this
							<xsl:if test="ancestor::part:part/@id">,part : <xsl:value-of select="ancestor::part:part/@id"/></xsl:if>
						});
					</xsl:attribute>
				</xsl:when>
				<xsl:otherwise>
					<xsl:attribute name="onclick">return false;</xsl:attribute>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="@part-id">
				<span class="editor_link_bound"><xsl:comment/></span>
			</xsl:if>
		</xsl:when>
		<xsl:otherwise>
			<xsl:choose>
				<xsl:when test="@path and $preview='false'">
					<xsl:attribute name="href">
						<xsl:value-of select="$navigation-path"/>
						<xsl:choose>
							<xsl:when test="starts-with(@path,'/')">
								<xsl:value-of select="substring(@path,2)"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="@path"/>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:attribute>
				</xsl:when>
				<xsl:when test="@page">
					<xsl:attribute name="href"><xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page"/></xsl:attribute>
				</xsl:when>
				<xsl:when test="@page-reference">
					<xsl:attribute name="href"><xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page-reference"/></xsl:attribute>
				</xsl:when>
				<xsl:when test="@url">
					<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
				</xsl:when>
				<xsl:when test="@file">
					<xsl:attribute name="href"><xsl:value-of select="$navigation-path"/>?file=<xsl:value-of select="@file"/><xsl:if test="@target='_download'">&amp;download=true</xsl:if></xsl:attribute>
				</xsl:when>
				<xsl:when test="@email">
					<xsl:attribute name="href">mailto:<xsl:value-of select="@email"/></xsl:attribute>
				</xsl:when>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="@target='_blank'">
					<xsl:attribute name="onclick">try {window.open(this.getAttribute('href')); return false;} catch (ignore) {}</xsl:attribute>
				</xsl:when>
				<xsl:when test="@target and @target!='_self' and @target!='_download'">
					<xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute>
				</xsl:when>
			</xsl:choose>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template name="util:link-href">
	<xsl:choose>
		<xsl:when test="@path and $preview='false'">
			<xsl:value-of select="$navigation-path"/><xsl:value-of select="@path"/>
		</xsl:when>
		<xsl:when test="@page">
			<xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page"/>
		</xsl:when>
		<xsl:when test="@page-reference">
			<xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page-reference"/>
		</xsl:when>
		<xsl:when test="@url">
			<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
		</xsl:when>
		<xsl:when test="@file">
			<xsl:value-of select="$navigation-path"/>?file=<xsl:value-of select="@file"/><xsl:if test="@target='_download'">&amp;download=true</xsl:if>
		</xsl:when>
		<xsl:when test="@email">
			mailto:<xsl:value-of select="@email"/>
		</xsl:when>
	</xsl:choose>
</xsl:template>




<!-- Uncategorized -->

<xsl:template name="util:googleanalytics">
	<xsl:param name="code" select="//p:meta/p:analytics/@key"/>
	<xsl:if test="not($preview='true') and $code!='' and $statistics='true'">
		<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '<xsl:value-of select="$code"/>', {siteSpeedSampleRate : 20});ga('send', 'pageview');</script>
	</xsl:if>
</xsl:template>

<!--
<xsl:template name="util:googleanalytics_old">
	<xsl:param name="code" select="//p:meta/p:analytics/@key"/>
	<xsl:if test="not($preview='true') and $code!='' and $statistics='true'">
		<script>
		try {
			if (document.location.hostname!=="localhost") {
				//,'_trackPageLoadTime'
				var _gaq=[['_setAccount','<xsl:value-of select="$code"/>'],['_trackPageview']];
				 (function() {
    				var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
					ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
					var s = document.getElementsByTagName('script')[0];
					s.parentNode.insertBefore(ga, s);
				})();
			}
		} catch(ex) {}
		</script>
	</xsl:if>
</xsl:template>
-->

<xsl:template name="util:doctype">
    <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html&gt;
</xsl:text>
</xsl:template>

<xsl:template name="util:title">
	<title>
        <xsl:if test="not(//p:page/@id=//p:context/p:home/@page)">
            <xsl:value-of select="//p:page/@title"/>
            <xsl:text> - </xsl:text>
        </xsl:if>
        <xsl:value-of select="//f:frame/@title"/>
    </title>
</xsl:template>

<xsl:template name="util:google-font">
    <xsl:param name="family" />
    <link href='http://fonts.googleapis.com/css?family={$family}' rel='stylesheet' type='text/css'/>
</xsl:template>

<xsl:template name="util:metatags">
	<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
    <!-- Set on server 
	<meta http-equiv="X-UA-Compatible" content="IE=Edge"></meta>
    -->
	<meta name="robots" content="index,follow"></meta>
	<meta property="og:title" content="{//p:page/@title}"/>
	<meta property="og:site_name" content="{//f:frame/@title}"/>
	<meta property="og:url" content="{$absolute-page-path}" />
	<xsl:if test="p:meta/p:description">
		<meta property="og:description" content="{p:meta/p:description}" />
		<meta name="Description" content="{p:meta/p:description}"></meta>
	</xsl:if>
</xsl:template>

<xsl:template name="util:feedback">
	<xsl:param name="text">Feedback</xsl:param>
	<p class="layout_feedback">
		<a class="common" href="javascript://" onclick="op.feedback(this)"><span><xsl:value-of select="$text"/></span></a>
	</p>
</xsl:template>

<xsl:template name="util:watermark">
	<xsl:comment>
    _    _                             _          
   | |  | |                           (_)         
   | |__| |_   _ _ __ ___   __ _ _ __  _ ___  ___ 
   |  __  | | | | '_ ` _ \ / _` | '_ \| / __|/ _ \
   | |  | | |_| | | | | | | (_| | | | | \__ \  __/
   |_|  |_|\__,_|_| |_| |_|\__,_|_| |_|_|___/\___|
   
   SOFTWARE FOR HUMANS     http://www.humanise.dk/
    </xsl:comment>
</xsl:template>

<xsl:template name="util:userstatus">
	<xsl:if test="//f:userstatus">
		<div class="layout_userstatus">
			<xsl:choose>
				<xsl:when test="$userid>0">
					<strong><xsl:text>Bruger: </xsl:text></strong><xsl:value-of select="$usertitle"/>
					<xsl:text> </xsl:text>
					<a href="{$path}?id={//f:userstatus/@page}&amp;logout=true" class="common common_link"><span><xsl:text>log ud</xsl:text></span></a>
				</xsl:when>
				<xsl:otherwise>
    				<span>Ikke logget ind</span>
    				<xsl:text> </xsl:text>
    				<a href="{$path}?id={//f:userstatus/@page}" class="common common_link"><span>log ind</span></a>
				</xsl:otherwise>
			</xsl:choose>
		</div>
	</xsl:if>
</xsl:template>

<xsl:template name="util:parameter">
    <xsl:param name="name" />
    <xsl:param name="default" />
    <div>
        <xsl:attribute name="data-editable">{"name":"<xsl:value-of select="$name"/>"}</xsl:attribute>
        <xsl:choose>
          <xsl:when test="//p:parameter[@name=$name]">
              <xsl:value-of select="//p:parameter[@name=$name]" disable-output-escaping="yes"/>
          </xsl:when>
          <xsl:otherwise>
              <xsl:copy-of select="$default"/>
          </xsl:otherwise>
        </xsl:choose>
    </div>
</xsl:template>


<!-- Scripts -->

<xsl:template name="util:scripts-build">
    <xsl:call-template name="util:_scripts-base"/>
    <xsl:call-template name="util:_scripts-msie"/>
	<xsl:choose>
		<xsl:when test="$preview='true'">
            <xsl:call-template name="util:_scripts-config"/>
			<script src="{$path}{$timestamp-url}hui/bin/minimized.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Editor.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Pages.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}style/{$design}/js/script.private.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:when>
		<xsl:when test="$development='true'">
            <xsl:call-template name="util:_scripts-config"/>
			<script src="{$path}{$timestamp-url}hui/bin/joined.site.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}style/basic/js/OnlinePublisher.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}style/{$design}/js/script.dev.js{$timestamp-query}"><xsl:comment/></script>
        </xsl:when>
		<xsl:otherwise>
            <xsl:call-template name="util:_scripts-config"/>
			<script src="{$path}{$timestamp-url}style/{$design}/js/script.js{$timestamp-query}" async="async" defer="defer"><xsl:comment/></script>
			<!--
            <script>_editor.loadScript('<xsl:value-of select="$path"/><xsl:value-of select="$timestamp-url"/>style/<xsl:value-of select="$design"/>/js/script.js<xsl:value-of select="$timestamp-query"/>')</script>
				-->
		</xsl:otherwise>
	</xsl:choose>
    <xsl:call-template name="util:_scripts-preview"/>
</xsl:template>

<xsl:template name="util:scripts">
    <xsl:call-template name="util:_scripts-base"/>
    <xsl:call-template name="util:_scripts-msie"/>
	<xsl:choose>
		<xsl:when test="$preview='true'">
			<xsl:choose>
				<xsl:when test="$development='true'">
					<script src="{$path}{$timestamp-url}hui/bin/joined.js{$timestamp-query}"><xsl:comment/></script>
				</xsl:when>
				<xsl:otherwise>
					<script src="{$path}{$timestamp-url}hui/bin/minimized.js{$timestamp-query}"><xsl:comment/></script>
				</xsl:otherwise>
			</xsl:choose>
			<script src="{$path}{$timestamp-url}hui/js/Editor.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Pages.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:when>
		<xsl:when test="$development='true'">
			<script src="{$path}{$timestamp-url}hui/js/hui.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_animation.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_parallax.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_color.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_require.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/ui.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/ImageViewer.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Box.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/SearchField.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:when>
		<xsl:otherwise>
			<script src="{$path}{$timestamp-url}hui/bin/minimized.site.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:otherwise>
	</xsl:choose>
	<script src="{$path}{$timestamp-url}style/basic/js/OnlinePublisher.js{$timestamp-query}"><xsl:comment/></script>
    <xsl:call-template name="util:_scripts-config"/>
    <xsl:call-template name="util:_scripts-preview"/>
	<script>_editor.$scriptReady();</script>
</xsl:template>

<xsl:template name="util:_scripts-preview">
    
	<xsl:if test="$preview='true' and $mini!='true'">
		<script src="editor.js?version={$timestamp}"><xsl:comment/></script>
		<script src="{$path}{$timestamp-url}Editor/Template/{$template}/js/editor.php{$timestamp-query}"><xsl:comment/></script>
	</xsl:if>
    
    <!--
	<xsl:if test="//movie:movie">
		<script src="http://vjs.zencdn.net/4.1/video.js"><xsl:comment/></script>
	</xsl:if>
    -->
    
</xsl:template>

<xsl:template name="util:_scripts-msie">
<!-- html5 -->
<xsl:comment><![CDATA[[if lt IE 9]>
<script src="]]><xsl:value-of select="$path"/><xsl:value-of select="$timestamp-url"/>hui/bin/compatibility.min.js<xsl:value-of select="$timestamp-query"/><![CDATA[" data-movable="false"></script>
<![endif]]]></xsl:comment>
</xsl:template>

<xsl:template name="util:_scripts-config">
<script>
<xsl:comment>
require(['hui.ui'],function() {hui.ui.context='<xsl:value-of select="$path"/>';hui.ui.language='<xsl:value-of select="$language"/>';});require(['op'],function() {op.context='<xsl:value-of select="$path"/>';op.page.id=<xsl:value-of select="@id"/>;op.page.template='<xsl:value-of select="$template"/>';op.page.path='<xsl:value-of select="$path"/>';op.page.pagePath='<xsl:value-of select="$page-path"/>';op.user={username:'<xsl:value-of select="$username"/>',id:<xsl:value-of select="$userid"/>,internal:<xsl:value-of select="$internal-logged-in"/>};op.preview=<xsl:value-of select="$preview"/>;op.ignite();})
</xsl:comment>
</script>
</xsl:template>

<xsl:template name="util:_scripts-base">
    <xsl:call-template name="util:script-inline">
        <xsl:with-param name="file" select="'style/basic/js/boot.js'"/>
        <xsl:with-param name="compiled"><![CDATA[!function(){function e(e,t){t in a?e(t,a[t]):i[t]?i[t].push(e):i[t]=[e]}function t(e,t){a[e]=t
var n=i[e]
n&&(n.forEach(function(n){n(e,t)}),i[e]=0)}function n(t,n){var i=t.length
if(i){var a=[],r=0
t.forEach(e.bind(0,function(e,o){a[t.indexOf(e)]=o,++r>=i&&n.apply(0,a)}))}else n()}var i={},a={}
require=n,define=function(e,i,a){a?n(i,function(){t(e,a.apply(0,arguments))}):t(e,i)}}(),function(e,t){e._editor={ready:function(n){"complete"==t.readyState?n():e.addEventListener?e.addEventListener("DOMContentLoaded",n,!1):t.addEventListener?t.addEventListener("load",n,!1):"undefined"!=typeof e.attachEvent&&e.attachEvent("onload",n)},viewReady:function(t){var n=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame
return n?n(t):void this.ready(t)},loadPart:function(e){require(["hui","hui.ui","op"],function(){_editor.loadScript(_editor.context+"style/basic/js/parts/"+e.name+".js")}),require(["op.part."+e.name],e.$ready)},loadCSS:function(e){this.viewReady(function(){_editor.inject(_editor._build("link",{rel:"stylesheet",type:"text/css",href:e}))})},_loaded:{},loadScript:function(e){this._loaded[e]||(this._loaded[e]=1,_editor.inject(this._build("script",{async:"async",src:e})))},_build:function(e,n){var i=t.createElement(e)
for(variable in n)i.setAttribute(variable,n[variable])<commit_msg>Remove call to missing function<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
 xmlns="http://www.w3.org/1999/xhtml"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:p="http://uri.in2isoft.com/onlinepublisher/publishing/page/1.0/"
 xmlns:f="http://uri.in2isoft.com/onlinepublisher/publishing/frame/1.0/"
 xmlns:h="http://uri.in2isoft.com/onlinepublisher/publishing/hierarchy/1.0/"
 xmlns:header="http://uri.in2isoft.com/onlinepublisher/part/header/1.0/"
 xmlns:text="http://uri.in2isoft.com/onlinepublisher/part/text/1.0/"
 xmlns:movie="http://uri.in2isoft.com/onlinepublisher/part/movie/1.0/"
 xmlns:util="http://uri.in2isoft.com/onlinepublisher/util/"
 xmlns:part="http://uri.in2isoft.com/onlinepublisher/part/1.0/"
 exclude-result-prefixes="p f h header text util part"
 >

<xsl:variable name="only-inline" select="'!true'" />

<xsl:variable name="timestamp-query">
	<xsl:if test="$urlrewrite!='true'">
		<xsl:text>?version=</xsl:text><xsl:value-of select="$timestamp"/>
	</xsl:if>
</xsl:variable>

<xsl:variable name="timestamp-url">
	<xsl:if test="$urlrewrite='true'">
		<xsl:text>version</xsl:text><xsl:value-of select="$timestamp"/><xsl:text>/</xsl:text>
	</xsl:if>
</xsl:variable>


<!-- Links -->

<xsl:template name="util:link">
	<xsl:attribute name="title"><xsl:value-of select="@alternative"/></xsl:attribute>
	<xsl:choose>
		<xsl:when test="$editor='true'">
			<xsl:attribute name="href">javascript://</xsl:attribute>
			<xsl:choose>
				<xsl:when test="@id">
					<xsl:attribute name="onclick">
					linkController.linkWasClicked({
						id : <xsl:value-of select="@id"/>
						, event : event
						, node : this
						<xsl:if test="ancestor::part:part/@id">,part : <xsl:value-of select="ancestor::part:part/@id"/></xsl:if>
					}); return false;
					</xsl:attribute>
					<xsl:attribute name="oncontextmenu">
						linkController.linkMenu({
							id : <xsl:value-of select="@id"/>
							, event : event
							, node : this
							<xsl:if test="ancestor::part:part/@id">,part : <xsl:value-of select="ancestor::part:part/@id"/></xsl:if>
						});
					</xsl:attribute>
				</xsl:when>
				<xsl:otherwise>
					<xsl:attribute name="onclick">return false;</xsl:attribute>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:if test="@part-id">
				<span class="editor_link_bound"><xsl:comment/></span>
			</xsl:if>
		</xsl:when>
		<xsl:otherwise>
			<xsl:choose>
				<xsl:when test="@path and $preview='false'">
					<xsl:attribute name="href">
						<xsl:value-of select="$navigation-path"/>
						<xsl:choose>
							<xsl:when test="starts-with(@path,'/')">
								<xsl:value-of select="substring(@path,2)"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="@path"/>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:attribute>
				</xsl:when>
				<xsl:when test="@page">
					<xsl:attribute name="href"><xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page"/></xsl:attribute>
				</xsl:when>
				<xsl:when test="@page-reference">
					<xsl:attribute name="href"><xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page-reference"/></xsl:attribute>
				</xsl:when>
				<xsl:when test="@url">
					<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
				</xsl:when>
				<xsl:when test="@file">
					<xsl:attribute name="href"><xsl:value-of select="$navigation-path"/>?file=<xsl:value-of select="@file"/><xsl:if test="@target='_download'">&amp;download=true</xsl:if></xsl:attribute>
				</xsl:when>
				<xsl:when test="@email">
					<xsl:attribute name="href">mailto:<xsl:value-of select="@email"/></xsl:attribute>
				</xsl:when>
			</xsl:choose>
			<xsl:choose>
				<xsl:when test="@target='_blank'">
					<xsl:attribute name="onclick">try {window.open(this.getAttribute('href')); return false;} catch (ignore) {}</xsl:attribute>
				</xsl:when>
				<xsl:when test="@target and @target!='_self' and @target!='_download'">
					<xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute>
				</xsl:when>
			</xsl:choose>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template name="util:link-href">
	<xsl:choose>
		<xsl:when test="@path and $preview='false'">
			<xsl:value-of select="$navigation-path"/><xsl:value-of select="@path"/>
		</xsl:when>
		<xsl:when test="@page">
			<xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page"/>
		</xsl:when>
		<xsl:when test="@page-reference">
			<xsl:value-of select="$navigation-path"/>?id=<xsl:value-of select="@page-reference"/>
		</xsl:when>
		<xsl:when test="@url">
			<xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
		</xsl:when>
		<xsl:when test="@file">
			<xsl:value-of select="$navigation-path"/>?file=<xsl:value-of select="@file"/><xsl:if test="@target='_download'">&amp;download=true</xsl:if>
		</xsl:when>
		<xsl:when test="@email">
			mailto:<xsl:value-of select="@email"/>
		</xsl:when>
	</xsl:choose>
</xsl:template>




<!-- Uncategorized -->

<xsl:template name="util:googleanalytics">
	<xsl:param name="code" select="//p:meta/p:analytics/@key"/>
	<xsl:if test="not($preview='true') and $code!='' and $statistics='true'">
		<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '<xsl:value-of select="$code"/>', {siteSpeedSampleRate : 20});ga('send', 'pageview');</script>
	</xsl:if>
</xsl:template>

<!--
<xsl:template name="util:googleanalytics_old">
	<xsl:param name="code" select="//p:meta/p:analytics/@key"/>
	<xsl:if test="not($preview='true') and $code!='' and $statistics='true'">
		<script>
		try {
			if (document.location.hostname!=="localhost") {
				//,'_trackPageLoadTime'
				var _gaq=[['_setAccount','<xsl:value-of select="$code"/>'],['_trackPageview']];
				 (function() {
    				var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
					ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
					var s = document.getElementsByTagName('script')[0];
					s.parentNode.insertBefore(ga, s);
				})();
			}
		} catch(ex) {}
		</script>
	</xsl:if>
</xsl:template>
-->

<xsl:template name="util:doctype">
    <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html&gt;
</xsl:text>
</xsl:template>

<xsl:template name="util:title">
	<title>
        <xsl:if test="not(//p:page/@id=//p:context/p:home/@page)">
            <xsl:value-of select="//p:page/@title"/>
            <xsl:text> - </xsl:text>
        </xsl:if>
        <xsl:value-of select="//f:frame/@title"/>
    </title>
</xsl:template>

<xsl:template name="util:google-font">
    <xsl:param name="family" />
    <link href='http://fonts.googleapis.com/css?family={$family}' rel='stylesheet' type='text/css'/>
</xsl:template>

<xsl:template name="util:metatags">
	<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
    <!-- Set on server 
	<meta http-equiv="X-UA-Compatible" content="IE=Edge"></meta>
    -->
	<meta name="robots" content="index,follow"></meta>
	<meta property="og:title" content="{//p:page/@title}"/>
	<meta property="og:site_name" content="{//f:frame/@title}"/>
	<meta property="og:url" content="{$absolute-page-path}" />
	<xsl:if test="p:meta/p:description">
		<meta property="og:description" content="{p:meta/p:description}" />
		<meta name="Description" content="{p:meta/p:description}"></meta>
	</xsl:if>
</xsl:template>

<xsl:template name="util:feedback">
	<xsl:param name="text">Feedback</xsl:param>
	<p class="layout_feedback">
		<a class="common" href="javascript://" onclick="op.feedback(this)"><span><xsl:value-of select="$text"/></span></a>
	</p>
</xsl:template>

<xsl:template name="util:watermark">
	<xsl:comment>
    _    _                             _          
   | |  | |                           (_)         
   | |__| |_   _ _ __ ___   __ _ _ __  _ ___  ___ 
   |  __  | | | | '_ ` _ \ / _` | '_ \| / __|/ _ \
   | |  | | |_| | | | | | | (_| | | | | \__ \  __/
   |_|  |_|\__,_|_| |_| |_|\__,_|_| |_|_|___/\___|
   
   SOFTWARE FOR HUMANS     http://www.humanise.dk/
    </xsl:comment>
</xsl:template>

<xsl:template name="util:userstatus">
	<xsl:if test="//f:userstatus">
		<div class="layout_userstatus">
			<xsl:choose>
				<xsl:when test="$userid>0">
					<strong><xsl:text>Bruger: </xsl:text></strong><xsl:value-of select="$usertitle"/>
					<xsl:text> </xsl:text>
					<a href="{$path}?id={//f:userstatus/@page}&amp;logout=true" class="common common_link"><span><xsl:text>log ud</xsl:text></span></a>
				</xsl:when>
				<xsl:otherwise>
    				<span>Ikke logget ind</span>
    				<xsl:text> </xsl:text>
    				<a href="{$path}?id={//f:userstatus/@page}" class="common common_link"><span>log ind</span></a>
				</xsl:otherwise>
			</xsl:choose>
		</div>
	</xsl:if>
</xsl:template>

<xsl:template name="util:parameter">
    <xsl:param name="name" />
    <xsl:param name="default" />
    <div>
        <xsl:attribute name="data-editable">{"name":"<xsl:value-of select="$name"/>"}</xsl:attribute>
        <xsl:choose>
          <xsl:when test="//p:parameter[@name=$name]">
              <xsl:value-of select="//p:parameter[@name=$name]" disable-output-escaping="yes"/>
          </xsl:when>
          <xsl:otherwise>
              <xsl:copy-of select="$default"/>
          </xsl:otherwise>
        </xsl:choose>
    </div>
</xsl:template>


<!-- Scripts -->

<xsl:template name="util:scripts-build">
    <xsl:call-template name="util:_scripts-base"/>
    <xsl:call-template name="util:_scripts-msie"/>
	<xsl:choose>
		<xsl:when test="$preview='true'">
            <xsl:call-template name="util:_scripts-config"/>
			<script src="{$path}{$timestamp-url}hui/bin/minimized.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Editor.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Pages.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}style/{$design}/js/script.private.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:when>
		<xsl:when test="$development='true'">
            <xsl:call-template name="util:_scripts-config"/>
			<script src="{$path}{$timestamp-url}hui/bin/joined.site.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}style/basic/js/OnlinePublisher.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}style/{$design}/js/script.dev.js{$timestamp-query}"><xsl:comment/></script>
        </xsl:when>
		<xsl:otherwise>
            <xsl:call-template name="util:_scripts-config"/>
			<script src="{$path}{$timestamp-url}style/{$design}/js/script.js{$timestamp-query}" async="async" defer="defer"><xsl:comment/></script>
			<!--
            <script>_editor.loadScript('<xsl:value-of select="$path"/><xsl:value-of select="$timestamp-url"/>style/<xsl:value-of select="$design"/>/js/script.js<xsl:value-of select="$timestamp-query"/>')</script>
				-->
		</xsl:otherwise>
	</xsl:choose>
    <xsl:call-template name="util:_scripts-preview"/>
</xsl:template>

<xsl:template name="util:scripts">
    <xsl:call-template name="util:_scripts-base"/>
    <xsl:call-template name="util:_scripts-msie"/>
	<xsl:choose>
		<xsl:when test="$preview='true'">
			<xsl:choose>
				<xsl:when test="$development='true'">
					<script src="{$path}{$timestamp-url}hui/bin/joined.js{$timestamp-query}"><xsl:comment/></script>
				</xsl:when>
				<xsl:otherwise>
					<script src="{$path}{$timestamp-url}hui/bin/minimized.js{$timestamp-query}"><xsl:comment/></script>
				</xsl:otherwise>
			</xsl:choose>
			<script src="{$path}{$timestamp-url}hui/js/Editor.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Pages.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:when>
		<xsl:when test="$development='true'">
			<script src="{$path}{$timestamp-url}hui/js/hui.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_animation.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_parallax.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_color.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/hui_require.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/ui.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/ImageViewer.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/Box.js{$timestamp-query}"><xsl:comment/></script>
			<script src="{$path}{$timestamp-url}hui/js/SearchField.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:when>
		<xsl:otherwise>
			<script src="{$path}{$timestamp-url}hui/bin/minimized.site.js{$timestamp-query}"><xsl:comment/></script>
		</xsl:otherwise>
	</xsl:choose>
	<script src="{$path}{$timestamp-url}style/basic/js/OnlinePublisher.js{$timestamp-query}"><xsl:comment/></script>
  <xsl:call-template name="util:_scripts-config"/>
  <xsl:call-template name="util:_scripts-preview"/>
</xsl:template>

<xsl:template name="util:_scripts-preview">
    
	<xsl:if test="$preview='true' and $mini!='true'">
		<script src="editor.js?version={$timestamp}"><xsl:comment/></script>
		<script src="{$path}{$timestamp-url}Editor/Template/{$template}/js/editor.php{$timestamp-query}"><xsl:comment/></script>
	</xsl:if>
</xsl:template>

<xsl:template name="util:_scripts-msie">
<!-- html5 -->
<xsl:comment><![CDATA[[if lt IE 9]>
<script src="]]><xsl:value-of select="$path"/><xsl:value-of select="$timestamp-url"/>hui/bin/compatibility.min.js<xsl:value-of select="$timestamp-query"/><![CDATA[" data-movable="false"></script>
<![endif]]]></xsl:comment>
</xsl:template>

<xsl:template name="util:_scripts-config">
<script>
<xsl:comment>
require(['hui.ui'],function() {hui.ui.context='<xsl:value-of select="$path"/>';hui.ui.language='<xsl:value-of select="$language"/>';});require(['op'],function() {op.context='<xsl:value-of select="$path"/>';op.page.id=<xsl:value-of select="@id"/>;op.page.template='<xsl:value-of select="$template"/>';op.page.path='<xsl:value-of select="$path"/>';op.page.pagePath='<xsl:value-of select="$page-path"/>';op.user={username:'<xsl:value-of select="$username"/>',id:<xsl:value-of select="$userid"/>,internal:<xsl:value-of select="$internal-logged-in"/>};op.preview=<xsl:value-of select="$preview"/>;op.ignite();})
</xsl:comment>
</script>
</xsl:template>

<xsl:template name="util:_scripts-base">
    <xsl:call-template name="util:script-inline">
        <xsl:with-param name="file" select="'style/basic/js/boot.js'"/>
        <xsl:with-param name="compiled"><![CDATA[!function(){function e(e,t){t in a?e(t,a[t]):i[t]?i[t].push(e):i[t]=[e]}function t(e,t){a[e]=t
var n=i[e]
n&&(n.forEach(function(n){n(e,t)}),i[e]=0)}function n(t,n){var i=t.length
if(i){var a=[],r=0
t.forEach(e.bind(0,function(e,o){a[t.indexOf(e)]=o,++r>=i&&n.apply(0,a)}))}else n()}var i={},a={}
require=n,define=function(e,i,a){a?n(i,function(){t(e,a.apply(0,arguments))}):t(e,i)}}(),function(e,t){e._editor={ready:function(n){"complete"==t.readyState?n():e.addEventListener?e.addEventListener("DOMContentLoaded",n,!1):t.addEventListener?t.addEventListener("load",n,!1):"undefined"!=typeof e.attachEvent&&e.attachEvent("onload",n)},viewReady:function(t){var n=e.requestAnimationFrame||e.mozRequestAnimationFrame||e.webkitRequestAnimationFrame||e.msRequestAnimationFrame
return n?n(t):void this.ready(t)},loadPart:function(e){require(["hui","hui.ui","op"],function(){_editor.loadScript(_editor.context+"style/basic/js/parts/"+e.name+".js")}),require(["op.part."+e.name],e.$ready)},loadCSS:function(e){this.viewReady(function(){_editor.inject(_editor._build("link",{rel:"stylesheet",type:"text/css",href:e}))})},_loaded:{},loadScript:function(e){this._loaded[e]||(this._loaded[e]=1,_editor.inject(this._build("script",{async:"async",src:e})))},_build:function(e,n){var i=t.createElement(e)
for(variable in n)i.setAttribute(variable,n[variable])
{'fraction_non_alphanumeric': 0.2431602626459144, 'fraction_numerical': 0.0034654669260700387, 'mean_word_length': 5.066199520560575, 'pattern_counts': {'":': 2, '<': 851, '<?xml version=': 2, '>': 853, 'https://': 2, 'lorem ipsum': 0, 'www.': 10, 'xml': 22}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4119452', 'n_tokens_mistral': 13515, 'n_tokens_neox': 11668, 'n_words': 1259}