<?xml version='1.0' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
				 
			<Message>
					<Header>
					   
						<xsl:attribute name="fromSystem">
						  <xsl:value-of select="/root/errorresponse/error-header/error-fromsystem/text()"/>
					    </xsl:attribute>
						<xsl:attribute name="toSystem">
						  <xsl:value-of select="/root/errorresponse/error-header/error-tosystem/text()"/>
					    </xsl:attribute>
						<xsl:attribute name="messageId">
						  <xsl:value-of select="/root/errorresponse/error-header/error-messageid/text()"/>
					    </xsl:attribute>
						<xsl:attribute name="dateTimeSent">
						  <xsl:value-of select="/root/errorresponse/error-header/error-timesent/text()"/>
					    </xsl:attribute>
					</Header>
				   <EBody>
				   	  <xsl:element name="{/root/errorresponse/error-body/error-command}">
					  <xsl:attribute name = "propertyId">
					    <xsl:value-of select="/root/errorresponse/error-body/error-propertyid/text()"/>
					  </xsl:attribute>
					 <xsl:attribute name = "dateTime">
					    <xsl:value-of select="/root/errorresponse/error-body/error-datetime/text()"/>
						</xsl:attribute>
                      <xsl:attribute name = "commandId">
					    <xsl:value-of select="/root/errorresponse/error-body/error-commandid/text()"/>
						</xsl:attribute>
					  <xsl:attribute name = "sessionId">
					    <xsl:value-of select="/root/errorresponse/error-body/error-sessionid/text()"/>
						</xsl:attribute>
					  <xsl:attribute name = "sessionType">
					    <xsl:value-of select="/root/errorresponse/error-body/error-session-type/text()"/>
						</xsl:attribute>
					   <xsl:attribute name = "errorCode">
					    <xsl:value-of select="/root/errorresponse/error-body/error-error-code/text()"/>
						</xsl:attribute>
						<xsl:attribute name = "errorText">
					    <xsl:value-of select="/root/errorresponse/error-body/error-error-text/text()"/>
						</xsl:attribute>
						</xsl:element>
					 
	                </EBody>
                 </Message>
  	 </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="error.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="no" 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"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->