<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="US-ASCII" indent="yes"/>
	<xsl:template match="/">
		<FormData>
			<xsl:copy-of select="FormData/@*"/>
			<xsl:apply-templates select="FormData/Form"/>
		</FormData>
	</xsl:template>
	<xsl:template match="Form">
		<xsl:comment>
			<xsl:text>Form </xsl:text>
			<xsl:value-of select="@Name"/>
		</xsl:comment>
		<xsl:element name="{translate(@Name, ' ', '_')}">
			<xsl:apply-templates select="Group|Form|Item"/>
		</xsl:element>
	</xsl:template>
	<xsl:template match="Group">
		<Group>
			<xsl:apply-templates select="Item"/>
		</Group>
	</xsl:template>
	<xsl:template match="Item">
		<xsl:comment>
			<xsl:text>Item </xsl:text>
			<xsl:value-of select="@Name"/>
		</xsl:comment>
		<xsl:element name="{translate(@Name, ' ', '_')}">
			<xsl:copy-of select="@*"/>
			<xsl:apply-templates select="Value"/>
		</xsl:element>
	</xsl:template>
	<xsl:template match="Value">
		<xsl:copy-of select="@*"/>
		<xsl:value-of select="."/>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="kline.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="kline.xsd" srcSchemaRoot="FormData" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->