<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:eat="http://msqr.us/xsd/ieat" 
	xmlns:xweb="http://msqr.us/xsd/jaxb-web"
	exclude-result-prefixes="eat xweb">
	
	<!-- imports -->
	<xsl:import href="tmpl/default-layout.xsl"/>
	
	<!-- layout variables -->
	<xsl:variable name="layout.global.nav.page" select="'import-recipeml'"/>
	
	<xsl:template match="xweb:x-data" mode="page-title">
		<xsl:value-of select="key('i18n','import-recipeml.title')"/>
	</xsl:template>
	
	<xsl:template match="xweb:x-data" mode="page-body">
		<div class="intro">
			<xsl:value-of select="key('i18n','import-recipeml.intro')"/>
		</div>
		<form method="post" action="{$web-context}{$ctx/xweb:path}" enctype="multipart/form-data">
			<table class="form">
				<tr>
					<th>
						<xsl:value-of select="key('i18n','import.recipeml.file.displayName')"/>
					</th>
					<td>
						<input type="file" name="tfile"/>
					</td>
				</tr>
				<tr>
					<td/>
					<td>
						<input type="submit" name="_target1"
							value="{key('i18n','continue.displayName')}"/>
						<xsl:text> </xsl:text>
						<input type="submit" name="_cancel"
							value="{key('i18n','cancel.displayName')}"/>
					</td>
				</tr>
			</table>
		</form>
	</xsl:template>
</xsl:stylesheet>
