<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:output method="xml" doctype-system="http://www.springframework.org/dtd/spring-beans.dtd"
		doctype-public="-//SPRING//DTD BEAN//EN"/>

	<!-- XSLT Template to copy anything, priority="-1" -->
	<xsl:template match="@*|node()|text()|comment()|processing-instruction()" priority="-1">
		<xsl:call-template name="copyall"/>
	</xsl:template>
	
	<xsl:template name="copyall">
	  <xsl:copy>
	    <xsl:apply-templates select="@*|node()|text()|comment()|processing-instruction()"/>
	  </xsl:copy>
	</xsl:template>
	
	<!-- <Server port="8005" shutdown="SHUTDOWN" debug="0"> -->
	<xsl:template match="//bean[@id='portalfactory']//entry[@key='Macartney']//entry[@key='imageBaseUri']">
		<entry key="imageBaseUri" value="//www.olat.org/macartney/loge/" />
	</xsl:template>

	<xsl:template match="//bean[@id='portalfactory']//entry[@key='GuestMacartney']//entry[@key='imageBaseUri']">
		<entry key="imageBaseUri" value="//www.olat.org/macartney/loge/" />
	</xsl:template>
</xsl:stylesheet>
