<?xml version="1.0" encoding="utf-8"?>
<!--
	Author: John Taylor
	File: 
	Date: 
	Purpose: Transforming web.xmls into context.xmls
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
	
	<xsl:template match="/web-app">
	        <xsl:comment>
	        This was generated from the original web.xml using web2context.xsl http://wiki.astrogrid.org/pub/Main/JohnTaylor/web2context.xsl
	        </xsl:comment>
		<Context path="fill-me-in">
		<xsl:apply-templates select="env-entry"/>
		</Context>
	</xsl:template>
	
	<xsl:template match="env-entry">
		<xsl:element name="Environment" >
			<xsl:attribute name="name">
			   <xsl:value-of select="env-entry-name"/>
			</xsl:attribute>
			<xsl:attribute name="override">false</xsl:attribute>
			<xsl:attribute name="type">
			   <xsl:value-of select="env-entry-type"/>
			</xsl:attribute>
			<xsl:attribute name="value">
			   <xsl:value-of select="env-entry-value"/>
			</xsl:attribute>
			<xsl:attribute name="description">
			   <xsl:value-of select="description"/>
			</xsl:attribute>
		</xsl:element>
	</xsl:template>

</xsl:stylesheet>
