<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:eat="http://msqr.us/xsd/ieat"
	xmlns:x="http://msqr.us/xsd/jaxb-web"
	version="1.0">

	<!-- standard data vars -->
	<xsl:variable name="aux" select="x:x-data/x:x-auxillary"/>
	<xsl:variable name="ctx" select="x:x-data/x:x-context"/>
	<xsl:variable name="mod" select="x:x-data/x:x-model"/>
	<xsl:variable name="err" select="x:x-data/x:x-errors/x:error[@field]"/>
	<xsl:variable name="req" select="x:x-data/x:x-request/x:param"/>
	<xsl:variable name="ses" select="x:x-data/x:x-session"/>
	
	<!-- helper vars -->
	<xsl:variable name="acting-user" select="x:x-data/x:x-session[1]/eat:session-data[1]/eat:acting-user[1]"/>
	<xsl:variable name="server-name" select="string($ctx/x:server-name)"/>
	<xsl:variable name="server-port" select="string($ctx/x:server-port)"/>
	<xsl:variable name="user-locale" select="string($ctx/x:user-locale)"/>
	<xsl:variable name="web-context" select="string($ctx/x:web-context)"/>
	<xsl:variable name="web-path" select="string($ctx/x:path)"/>
	
	<!-- application context defined as key for quick lookup -->
	<xsl:key name="appenv" match="x:x-data/x:x-auxillary/x:x-app-context/x:param" use="@key"/>
	
	<!-- auxillaray params defined as key for quick lookup -->
	<xsl:key name="aux-param" match="x:x-data/x:x-auxillary/x:x-param" use="@key"/>
	
	<!-- message resource bundle defined as key for quick lookup -->
	<xsl:key name="i18n" match="x:x-data/x:x-msg/x:msg" use="@key"/>
	
	<!-- request params defined as key for quick lookup -->
	<xsl:key name="req-param" match="x:x-data/x:x-request/x:param" use="@key"/>

</xsl:stylesheet>