<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was generated by Altova MapForce 2007

YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.

Refer to the Altova MapForce 2007 Documentation for further details.
http://www.altova.com/mapforce
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:act2="Act" xmlns:allergies2="Allergies" xmlns:armsClinicaldata="Clinicaldata" xmlns:common2="Common" xmlns:participation2="Participation" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:act="Act" xmlns:allergies="Allergies" xmlns="Clinicaldata" xmlns:common="Common" xmlns:participation="Participation" exclude-result-prefixes="act2 allergies2 armsClinicaldata common2 participation2 xs">
	<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
	<xsl:template match="/armsClinicaldata:clinicalData">
		<clinicalData>
			<xsl:for-each select="@templateId">
				<xsl:attribute name="templateId">
					<xsl:value-of select="."/>
				</xsl:attribute>
			</xsl:for-each>
			<xsl:for-each select="@templateName">
				<xsl:attribute name="templateName">
					<xsl:value-of select="."/>
				</xsl:attribute>
			</xsl:for-each>
			<xsl:for-each select="@templateDescription">
				<xsl:attribute name="templateDescription">
					<xsl:value-of select="."/>
				</xsl:attribute>
			</xsl:for-each>
			<xsl:for-each select="@vhimVersion">
				<xsl:attribute name="vhimVersion">
					<xsl:value-of select="."/>
				</xsl:attribute>
			</xsl:for-each>
			<xsl:for-each select="@requestType">
				<xsl:attribute name="requestType">
					<xsl:value-of select="."/>
				</xsl:attribute>
			</xsl:for-each>
			<xsl:for-each select="@entryPoint">
				<xsl:attribute name="entryPoint">
					<xsl:value-of select="."/>
				</xsl:attribute>
			</xsl:for-each>
			<xsl:for-each select="errors">
				<errors xmlns="">
					<xsl:for-each select="fatalError">
						<fatalError>
							<xsl:for-each select="exception">
								<exception>
									<xsl:value-of select="."/>
								</exception>
							</xsl:for-each>
							<xsl:for-each select="exceptionMessage">
								<exceptionMessage>
									<xsl:value-of select="."/>
								</exceptionMessage>
							</xsl:for-each>
							<xsl:for-each select="errorCode">
								<errorCode>
									<xsl:value-of select="."/>
								</errorCode>
							</xsl:for-each>
							<xsl:for-each select="displayMessage">
								<displayMessage>
									<xsl:value-of select="."/>
								</displayMessage>
							</xsl:for-each>
							<xsl:for-each select="errorId">
								<errorId>
									<xsl:value-of select="."/>
								</errorId>
							</xsl:for-each>
						</fatalError>
					</xsl:for-each>
					<xsl:for-each select="error">
						<error>
							<xsl:for-each select="exception">
								<exception>
									<xsl:value-of select="."/>
								</exception>
							</xsl:for-each>
							<xsl:for-each select="exceptionMessage">
								<exceptionMessage>
									<xsl:value-of select="."/>
								</exceptionMessage>
							</xsl:for-each>
							<xsl:for-each select="errorCode">
								<errorCode>
									<xsl:value-of select="."/>
								</errorCode>
							</xsl:for-each>
							<xsl:for-each select="displayMessage">
								<displayMessage>
									<xsl:value-of select="."/>
								</displayMessage>
							</xsl:for-each>
							<xsl:for-each select="errorId">
								<errorId>
									<xsl:value-of select="."/>
								</errorId>
							</xsl:for-each>
						</error>
					</xsl:for-each>
					<xsl:for-each select="warning">
						<warning>
							<xsl:for-each select="exception">
								<exception>
									<xsl:value-of select="."/>
								</exception>
							</xsl:for-each>
							<xsl:for-each select="exceptionMessage">
								<exceptionMessage>
									<xsl:value-of select="."/>
								</exceptionMessage>
							</xsl:for-each>
							<xsl:for-each select="errorCode">
								<errorCode>
									<xsl:value-of select="."/>
								</errorCode>
							</xsl:for-each>
							<xsl:for-each select="displayMessage">
								<displayMessage>
									<xsl:value-of select="."/>
								</displayMessage>
							</xsl:for-each>
							<xsl:for-each select="errorId">
								<errorId>
									<xsl:value-of select="."/>
								</errorId>
							</xsl:for-each>
						</warning>
					</xsl:for-each>
				</errors>
			</xsl:for-each>
			<xsl:for-each select="intoleranceCondition">
				<intoleranceCondition xmlns="">
					<xsl:for-each select="id">
						<id>
							<xsl:for-each select="@assigningAuthorityName">
								<xsl:attribute name="assigningAuthorityName">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
							<xsl:for-each select="@extension">
								<xsl:attribute name="extension">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
							<xsl:for-each select="@root">
								<xsl:attribute name="root">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
						</id>
					</xsl:for-each>
					<xsl:for-each select="subject">
						<subject>
							<xsl:for-each select="@vpid">
								<xsl:attribute name="vpid">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
						</subject>
					</xsl:for-each>
					<xsl:for-each select="author">
						<author>
							<xsl:for-each select="@comments">
								<xsl:attribute name="comments">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
							<xsl:for-each select="@practitionerParticipationType">
								<xsl:attribute name="practitionerParticipationType">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
							<xsl:for-each select="@vpid">
								<xsl:attribute name="vpid">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
							<xsl:for-each select="time">
								<time>
									<xsl:for-each select="@high">
										<xsl:attribute name="high">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@literal">
										<xsl:attribute name="literal">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@low">
										<xsl:attribute name="low">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@width_value">
										<xsl:attribute name="width_value">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@width_unit">
										<xsl:attribute name="width_unit">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
								</time>
							</xsl:for-each>
							<xsl:for-each select="signature">
								<signature/>
							</xsl:for-each>
						</author>
					</xsl:for-each>
					<xsl:for-each select="reactionObservationEvent">
						<reactionObservationEvent>
							<xsl:for-each select="@noReaction">
								<xsl:attribute name="noReaction">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
							<xsl:for-each select="@description">
								<xsl:attribute name="description">
									<xsl:value-of select="."/>
								</xsl:attribute>
							</xsl:for-each>
							<xsl:for-each select="id">
								<id>
									<xsl:for-each select="@assigningAuthorityName">
										<xsl:attribute name="assigningAuthorityName">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@extension">
										<xsl:attribute name="extension">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@root">
										<xsl:attribute name="root">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
								</id>
							</xsl:for-each>
							<xsl:for-each select="status">
								<status>
									<xsl:for-each select="@codeSet">
										<xsl:attribute name="codeSet">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@code">
										<xsl:attribute name="code">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@displayName">
										<xsl:attribute name="displayName">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
								</status>
							</xsl:for-each>
							<xsl:for-each select="reaction">
								<reaction>
									<xsl:for-each select="@codeSet">
										<xsl:attribute name="codeSet">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@code">
										<xsl:attribute name="code">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@displayName">
										<xsl:attribute name="displayName">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@nullFlavor">
										<xsl:attribute name="nullFlavor">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@otherCode">
										<xsl:attribute name="otherCode">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@otherDisplayName">
										<xsl:attribute name="otherDisplayName">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
								</reaction>
							</xsl:for-each>
							<xsl:for-each select="onsetDate">
								<onsetDate>
									<xsl:for-each select="@literal">
										<xsl:attribute name="literal">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@low">
										<xsl:attribute name="low">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
								</onsetDate>
							</xsl:for-each>
							<xsl:for-each select="author">
								<author>
									<xsl:for-each select="@comments">
										<xsl:attribute name="comments">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@practitionerParticipationType">
										<xsl:attribute name="practitionerParticipationType">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@vpid">
										<xsl:attribute name="vpid">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="time">
										<time>
											<xsl:for-each select="@high">
												<xsl:attribute name="high">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@literal">
												<xsl:attribute name="literal">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@low">
												<xsl:attribute name="low">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@width_value">
												<xsl:attribute name="width_value">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@width_unit">
												<xsl:attribute name="width_unit">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
										</time>
									</xsl:for-each>
									<xsl:for-each select="signature">
										<signature/>
									</xsl:for-each>
								</author>
							</xsl:for-each>
							<xsl:for-each select="reactionOnsetHistory">
								<reactionOnsetHistory>
									<xsl:for-each select="@changedBy">
										<xsl:attribute name="changedBy">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="@changedDate">
										<xsl:attribute name="changedDate">
											<xsl:value-of select="."/>
										</xsl:attribute>
									</xsl:for-each>
									<xsl:for-each select="onsetDate">
										<onsetDate>
											<xsl:for-each select="@literal">
												<xsl:attribute name="literal">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@low">
												<xsl:attribute name="low">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
										</onsetDate>
									</xsl:for-each>
									<xsl:for-each select="reaction">
										<reaction>
											<xsl:for-each select="@codeSet">
												<xsl:attribute name="codeSet">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@code">
												<xsl:attribute name="code">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@displayName">
												<xsl:attribute name="displayName">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@nullFlavor">
												<xsl:attribute name="nullFlavor">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@otherCode">
												<xsl:attribute name="otherCode">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
											<xsl:for-each select="@otherDisplayName">
												<xsl:attribute name="otherDisplayName">
													<xsl:value-of select="."/>
												</xsl:attribute>
											</xsl:for-each>
										</reaction>
									</xsl:for-each>
								</reactionOnsetHistory>
							</xsl:for-each>
						</reactionObservationEvent>
					</xsl:for-each>
				</intoleranceCondition>
			</xsl:for-each>
		</clinicalData>
	</xsl:template>
</xsl:stylesheet>
