<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:output standalone="yes" method="html" indent="yes"/>
	<xsl:template match="/">
		<html>
			<head>
				<title>Dokumentation Railo Web Configuration</title>
				<style>
						body, table {
								font: 11px Arial, Geneva, Helvetica, sans-serif;
								}
						table {
								margin-bottom: 20px;
								}
						h3 {
								margin-top: 10px;
								margin-bottom: 20px;
						}
						
				</style>
			</head>
			<body>
				<h1>Railo Web Configuration</h1>
				<hr/>
				<!-- Systemeinstellungen -->
				<table>
					<caption align="left">
						<h2>1. System Einstellungen</h2>
					</caption>
					<tr>
						<td width="350px;">Connection Close in Response Header schreiben</td>
						<td>
							<xsl:value-of select="/railo-configuration/setting/@close-connection"/>
						</td>
					</tr>
					<tr>
						<td>Railo Version in Response Header schreiben</td>
						<td>
							<xsl:value-of select="/railo-configuration/setting/@show-version"/>
						</td>
					</tr>
					<tr>
						<td>Whitespaces in Ausgabe unterdrücken</td>
						<td>
							<xsl:value-of select="/railo-configuration/setting/@suppress-whitespace"/>
						</td>
					</tr>
				</table>
				
				<!-- Datasources -->
				<table>
					<caption align="left">
						<h2>2. Datenverbindungen (Datasources)</h2>
					</caption>
					<xsl:for-each select="/railo-configuration/data-sources/data-source">
						<tr>
							<td colspan="2">
								<h3>Datasource Name: <xsl:value-of select="@name"/>
								</h3>
							</td>
						</tr>
						<tr>
							<td width="350px;">Datenbankuser:</td>
							<td>
								<xsl:value-of select="@username"/>
							</td>
						</tr>
						<tr>
							<td>Passwort:</td>
							<td>
								<xsl:value-of select="@password"/>
							</td>
						</tr>
						<tr>
							<td>Datenbank-Server:</td>
							<td>
								<xsl:value-of select="@host"/>
							</td>
						</tr>
						<tr>
							<td>Port:</td>
							<td>
								<xsl:value-of select="@port"/>
							</td>
						</tr>
						<tr>
							<td>Service:</td>
							<td>
								<xsl:value-of select="@database"/>
							</td>
						</tr>
						<tr>
							<td>Connection-String:</td>
							<td>
								<xsl:value-of select="@dsn"/>
							</td>
						</tr>
						<tr>
							<td>Connection Timeout (min):</td>
							<td>
								<xsl:value-of select="@connectionTimeout"/>
							</td>
						</tr>
						<tr>
							<td>CLOB aktiviert:</td>
							<td>
								<xsl:value-of select="@clob"/>
							</td>
						</tr>
						<tr>
							<td>BLOB aktiviert:</td>
							<td>
								<xsl:value-of select="@blob"/>
							</td>
						</tr>
						<tr>
							<td>Class:</td>
							<td>
								<xsl:value-of select="@class"/>
							</td>
						</tr>
					</xsl:for-each>
				</table>
				
				<!-- File system -->
				<table>
					<caption align="left">
						<h2>3. Dateipfade</h2>
					</caption>
					<tr>
						<td width="350px;">Verzeichnis in dem Java Classes deployed werden</td>
						<td>
							<xsl:value-of select="/railo-configuration/file-system/@deploy-directory"/>
						</td>
					</tr>
					<tr>
						<td>Verzeichnis TEMP Dateien (Uploads...)</td>
						<td>
							<xsl:value-of select="/railo-configuration/file-system/@temp-directory"/>
						</td>
					</tr>
					<tr>
						<td>TLD-Verzeichnis</td>
						<td>
							<xsl:value-of select="/railo-configuration/file-system/@tld-directory"/>
						</td>
					</tr>
					<tr>
						<td>FLD-Verzeichnis</td>
						<td>
							<xsl:value-of select="/railo-configuration/file-system/@fld-directory"/>
						</td>
					</tr>
				</table>
				
				<!-- Scope Configuration -->
				<table>
					<caption align="left">
						<h2>4. Scope Konfiguration</h2>
					</caption>
					<tr>
						<td width="350px;">Application Timeout</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@applicationtimeout"/>
						</td>
					</tr>
					<tr>
						<td>Variablenname in Resultsets suchen</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@cascade-to-resultset"/>
						</td>
					</tr>
					<tr>
						<td>Variablen Cascading</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@cascading"/>
						</td>
					</tr>
					<tr>
						<td>Speicherort Client Variablen</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@client-directory"/>
						</td>
					</tr>
					<tr>
						<td>Quota Client Variablen</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@client-directory-max-size"/>
						</td>
					</tr>
					<tr>
						<td>Clientmanagement</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@clientmanagement"/>
						</td>
					</tr>
					<tr>
						<td>URL und Form Scope mergen</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@merge-url-form"/>
						</td>
					</tr>
					<tr>
						<td>Logdate Request Timeouts</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@requesttimeout-log"/>
						</td>
					</tr>
					<tr>
						<td>Sessionmanagement</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@sessionmanagement"/>
						</td>
					</tr>
					<tr>
						<td>Session Timeout</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@sessiontimeout"/>
						</td>
					</tr><tr>
						<td>Client Cookies setzen</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@setclientcookies"/>
						</td>
					</tr><tr>
						<td>Domain Cookies verwenden</td>
						<td>
							<xsl:value-of select="/railo-configuration/scope/@setdomaincookies"/>
						</td>
					</tr>
				</table>
				
				<!-- Mail system -->
				<table>
					<caption align="left">
						<h2>5. Mail Einstellungen</h2>
					</caption>
					<tr>
						<td width="350px;">Log Verzeichnis</td>
						<td>
							<xsl:value-of select="/railo-configuration/mail/@log"/>
						</td>
					</tr>
					<tr>
						<td>Spooler aktiv</td>
						<td>
							<xsl:value-of select="/railo-configuration/mail/@spool-enable"/>
						</td>
					</tr>
					<tr>
						<td>Spool Intervall (min)</td>
						<td>
							<xsl:value-of select="/railo-configuration/mail/@spool-interval"/>
						</td>
					</tr>
					<tr>
						<td>Timeout</td>
						<td>
							<xsl:value-of select="/railo-configuration/mail/@timeout"/>
						</td>
					</tr>
				</table>
				
				<!-- Debuggin settings -->
				<table>
					<caption align="left">
						<h2>6. Debugging Einstellungen</h2>
					</caption>
					<tr>
						<td width="350px;">Debugging aktiv</td>
						<td>
							<xsl:value-of select="/railo-configuration/debugging/@debug"/>
						</td>
					</tr>
					<tr>
						<td>Debugging Template</td>
						<td>
							<xsl:value-of select="/railo-configuration/debugging/@template"/>
						</td>
					</tr>
				</table>
				
				<!-- Charset -->
				<table>
					<caption align="left">
						<h2>7. Charset</h2>
					</caption>
					<tr>
						<td width="350px;">Encoding Ressourcen</td>
						<td>
							<xsl:value-of select="/railo-configuration/charset/@resource-charset"/>
						</td>
					</tr>
					<tr>
						<td>Encoding Templates</td>
						<td>
							<xsl:value-of select="/railo-configuration/charset/@template-charset"/>
						</td>
					</tr>
					<tr>
						<td>Encoding Web</td>
						<td>
							<xsl:value-of select="/railo-configuration/charset/@web-charset"/>
						</td>
					</tr>
					
				</table>
				
				<!-- Anwendung -->
				<table>
					<caption align="left">
						<h2>8. Anwendung</h2>
					</caption>
					<tr>
						<td width="350px;">Timout über URL steuerbar</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@allow-url-requesttimeout"/>
						</td>
					</tr>
					<tr>
						<td>Log Verzeichnis Application</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@application-log"/>
						</td>
					</tr>
					<tr>
						<td>Log Level Application</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@application-log-level"/>
						</td>
					</tr>
					<tr>
						<td>Cache Verzeichnis</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@cache-directory"/>
						</td>
					</tr>
					<tr>
						<td>Quota Cache Verzeichnis</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@cache-directory-max-size"/>
						</td>
					</tr>
					<tr>
						<td>Log Verzeichnis Exceptions</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@exception-log"/>
						</td>
					</tr>
					<tr>
						<td>Suchmodus Application.cfm</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@listener-mode"/>
						</td>
					</tr>
					<tr>
						<td>Modus Application.cfm/Application.cfc</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@listener-type"/>
						</td>
					</tr>
					<tr>
						<td>Standard Request Timeout</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@requesttimeout"/>
						</td>
					</tr>
					<tr>
						<td>Script Protection</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@script-protect"/>
						</td>
					</tr>
					<tr>
						<td>Verzeichnis Traces</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@trace-log"/>
						</td>
					</tr>
					<tr>
						<td>Log Level Tracing</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@trace-log-level"/>
						</td>
					</tr>
					<tr>
						<td>Log Level Application</td>
						<td>
							<xsl:value-of select="/railo-configuration/application/@application-log-level"/>
						</td>
					</tr>

				</table>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
