<?xml version="1.0" encoding="UTF-8"?>
<x:stylesheet xmlns:x="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<x:output indent="yes" encoding="UTF-8"/>
  <!--Automatically generated from XDR file path10dot7.xdr using gen-source2path.xslt - do not edit manually.-->
	<x:template match="/">
		<path_env>
			<path_header>
				<x:for-each select="(/source_feed/header/source_system/@code)[1]">
					<source_system>
						<x:value-of select="."/>
					</source_system>
				</x:for-each>
				<x:for-each select="(/source_feed/header/contact_mail)[1]">
					<contact_mail>
						<x:value-of select="."/>
					</contact_mail>
				</x:for-each>
				<x:for-each select="(/source_feed/header/publish_date)[1]">
					<publish_date>
						<x:value-of select="."/>
					</publish_date>
				</x:for-each>
			</path_header>
			<path_body>
				<path_root>
					<x:for-each select="source_feed/body/compound">
						<compound>
							<x:for-each select=".././././././././compound[1]">
								<compound_code>
									<x:value-of select="concat(compound_source,compound_no)"/>
								</compound_code>
							</x:for-each>
							<x:for-each select="compound_no[1]">
								<compound_number>
									<x:value-of select="."/>
								</compound_number>
							</x:for-each>
							<x:for-each select="compound_source[1]">
								<compound_source>
									<x:value-of select="."/>
								</compound_source>
							</x:for-each>
							<license_status>
                <!--TODO-->
							</license_status>
							<origin>
								<origin_code>
                  <!--TODO-->
								</origin_code>
								<origin_description>
                  <!--TODO-->
								</origin_description>
							</origin>
							<x:for-each select="protocol">
								<protocol>
									<x:for-each select=".././././././././protocol[1]">
										<compound_code>
											<x:value-of select="concat(../compound_source,../compound_no)"/>
										</compound_code>
									</x:for-each>
									<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
										<protocol_code>
											<x:value-of select="."/>
										</protocol_code>
									</x:for-each>
									<protocol_status>
										<protocol_status_code>
                      <!--TODO-->
										</protocol_status_code>
										<protocol_status_description>
                      <!--TODO-->
										</protocol_status_description>
									</protocol_status>
									<title>
										<short>
                      <!--TODO-->
										</short>
									</title>
									<x:for-each select="(projected_enrollment)[1]">
										<target_enrolment>
											<x:value-of select="."/>
										</target_enrolment>
									</x:for-each>
									<screening_dropout_rate>
                    <!--TODO-->
									</screening_dropout_rate>
									<enrolment_dropout_rate>
                    <!--TODO-->
									</enrolment_dropout_rate>
									<data_expected_completed_patient>
                    <!--TODO-->
									</data_expected_completed_patient>
									<data_expected_enroled_dropout>
                    <!--TODO-->
									</data_expected_enroled_dropout>
									<data_expected_screening_dropout>
                    <!--TODO-->
									</data_expected_screening_dropout>
									<treatment_duration>
                    <!--TODO-->
									</treatment_duration>
									<dmpk_indicator>
                    <!--TODO-->
									</dmpk_indicator>
									<research_phase>
										<research_phase_code>
                      <!--TODO-->
										</research_phase_code>
										<research_phase_description>
                      <!--TODO-->
										</research_phase_description>
									</research_phase>
									<study_duration>
                    <!--TODO-->
									</study_duration>
									<sequence>
                    <!--TODO-->
									</sequence>
									<completion_date/>
									<final_flag>
                    <!--TODO-->
									</final_flag>
									<interim_number>
                    <!--TODO-->
									</interim_number>
									<final_code>
                    <!--TODO-->
									</final_code>
									<x:for-each select="cro_code">
										<commercial_research_organisation>
											<x:for-each select="(../cro_code)[1]">
												<cro_code>
													<x:value-of select="."/>
												</cro_code>
											</x:for-each>
											<x:for-each select="(../cro_desc)[1]">
												<cro_description>
													<x:value-of select="."/>
												</cro_description>
											</x:for-each>
										</commercial_research_organisation>
									</x:for-each>
									<route>
										<route_code>
                      <!--TODO-->
										</route_code>
										<route_description>
                      <!--TODO-->
										</route_description>
									</route>
									<dosage>
										<dosage_code>
                      <!--TODO-->
										</dosage_code>
										<dosage_description>
                      <!--TODO-->
										</dosage_description>
									</dosage>
									<fund_source>
										<fund_source_code>
                      <!--TODO-->
										</fund_source_code>
										<fund_source_description>
                      <!--TODO-->
										</fund_source_description>
									</fund_source>
									<clinical_program>
										<clinical_program_code>
                      <!--TODO-->
										</clinical_program_code>
										<clinical_program_description>
                      <!--TODO-->
										</clinical_program_description>
									</clinical_program>
									<contact>
                    <!--TODO-->
									</contact>
									<indication>
										<indication_code>
                      <!--TODO-->
										</indication_code>
										<indication_description>
                      <!--TODO-->
										</indication_description>
									</indication>
									<control>
										<control_code>
                      <!--TODO-->
										</control_code>
									</control>
									<number_evaluation_patients>
                    <!--TODO-->
									</number_evaluation_patients>
									<managing_country>
										<country>
											<country_code>
                        <!--TODO-->
											</country_code>
											<country_description>
                        <!--TODO-->
											</country_description>
										</country>
									</managing_country>
									<remote_enrolment>
										<remote_enrolment_code>
                      <!--TODO-->
										</remote_enrolment_code>
										<remote_enrolment_description>
                      <!--TODO-->
										</remote_enrolment_description>
									</remote_enrolment>
									<cumlative_centre_enrol_flag>
                    <!--TODO-->
									</cumlative_centre_enrol_flag>
									<pmp_entity_code>
                    <!--TODO-->
									</pmp_entity_code>
									<first_patient_enroled_date>
                    <!--TODO-->
									</first_patient_enroled_date>
									<x:for-each select="protocol_office">
										<protocol_office>
											<x:for-each select="desc[1]">
												<protocol_office_description>
													<x:value-of select="."/>
												</protocol_office_description>
											</x:for-each>
											<x:for-each select=".././././././././protocol_office[1]">
												<compound_code>
													<x:value-of select="concat(../../compound_source,../../compound_no)"/>
												</compound_code>
											</x:for-each>
											<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
												<protocol_code>
													<x:value-of select="."/>
												</protocol_code>
											</x:for-each>
											<x:for-each select="code[1]">
												<office_code>
													<x:value-of select="."/>
												</office_code>
											</x:for-each>
											<x:for-each select="planned_no_centers[1]">
												<planned_number_centres>
													<x:value-of select="."/>
												</planned_number_centres>
											</x:for-each>
											<x:for-each select="planned_enrollment[1]">
												<planned_enrolment>
													<x:value-of select="."/>
												</planned_enrolment>
											</x:for-each>
											<x:for-each select="(projected_enrollment)[1]">
												<target_enrolment>
													<x:value-of select="."/>
												</target_enrolment>
											</x:for-each>
											<x:for-each select="protocol_country">
												<protocol_country>
													<x:for-each select=".././././././././protocol_country[1]">
														<compound_code>
															<x:value-of select="concat(../../../compound_source,../../../compound_no)"/>
														</compound_code>
													</x:for-each>
													<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
														<protocol_code>
															<x:value-of select="."/>
														</protocol_code>
													</x:for-each>
													<x:for-each select="desc[1]">
														<protocol_country_description>
															<x:value-of select="."/>
														</protocol_country_description>
													</x:for-each>
													<x:for-each select="code[1]">
														<protocol_country_code>
															<x:value-of select="."/>
														</protocol_country_code>
													</x:for-each>
													<x:for-each select="(projected_enrollment)[1]">
														<target_enrolment>
															<x:value-of select="."/>
														</target_enrolment>
													</x:for-each>
													<x:for-each select="protocol_center">
														<protocol_centre>
															<x:for-each select=".././././././././protocol_center[1]">
																<compound_code>
																	<x:value-of select="concat(../../../../compound_source,../../../../compound_no)"/>
																</compound_code>
															</x:for-each>
															<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
																<protocol_code>
																	<x:value-of select="."/>
																</protocol_code>
															</x:for-each>
															<x:for-each select="(ancestor-or-self::*/center_no)[1]">
																<centre_code>
																	<x:value-of select="."/>
																</centre_code>
															</x:for-each>
															<protocol_centre_status>
																<x:for-each select="status_code[1]">
																	<protocol_centre_status_code>
																		<x:value-of select="."/>
																	</protocol_centre_status_code>
																</x:for-each>
																<x:for-each select="status_desc[1]">
																	<protocol_centre_status_description>
																		<x:value-of select="."/>
																	</protocol_centre_status_description>
																</x:for-each>
															</protocol_centre_status>
															<x:for-each select="start_date[1]">
																<centre_initiation_date>
																	<x:choose>
																		<x:when test="../start_date">
																			<x:attribute name="actual">
																				<x:value-of select="../start_date"/>
																			</x:attribute>
																		</x:when>
																		<x:otherwise/>
																	</x:choose>
																</centre_initiation_date>
															</x:for-each>
															<x:for-each select="end_date[1]">
																<centre_completion_date>
																	<x:choose>
																		<x:when test="../end_date">
																			<x:attribute name="actual">
																				<x:value-of select="../end_date"/>
																			</x:attribute>
																		</x:when>
																		<x:otherwise/>
																	</x:choose>
																</centre_completion_date>
															</x:for-each>
															<x:for-each select="cro_code[1]">
																<commercial_research_organisation>
																	<x:for-each select="(../cro_code)[1]">
																		<cro_code>
																			<x:value-of select="."/>
																		</cro_code>
																	</x:for-each>
																	<x:for-each select="(../cro_desc)[1]">
																		<cro_description>
																			<x:value-of select="."/>
																		</cro_description>
																	</x:for-each>
																</commercial_research_organisation>
															</x:for-each>
															<x:for-each select="investigator_fname[1]">
																<principal_investigator>
																	<x:value-of select="concat(.,' ',../investigator_lname)"/>
																</principal_investigator>
															</x:for-each>
															<x:for-each select="cra_lname[1]">
																<clinical_research_associate>
																	<x:value-of select="concat(../cra_fname,' ',.)"/>
																</clinical_research_associate>
															</x:for-each>
															<personnel/>
															<data_entry>
																<site>
																	<x:for-each select="de_site_code[1]">
																		<site_code>
																			<x:value-of select="."/>
																		</site_code>
																	</x:for-each>
																	<x:for-each select="de_site_desc[1]">
																		<site_description>
																			<x:value-of select="."/>
																		</site_description>
																	</x:for-each>
																</site>
																<system>
																	<x:for-each select="de_system_code[1]">
																		<system_code>
																			<x:value-of select="."/>
																		</system_code>
																	</x:for-each>
																	<x:for-each select="de_system_desc[1]">
																		<system_description>
																			<x:value-of select="."/>
																		</system_description>
																	</x:for-each>
																</system>
															</data_entry>
															<x:for-each select="projected_enrollment[1]">
																<target_enrolment>
																	<x:value-of select="."/>
																</target_enrolment>
															</x:for-each>
															<x:for-each select="protocol_patient">
																<subject>
																	<x:for-each select=".././././././././protocol_patient[1]">
																		<compound_code>
																			<x:value-of select="concat(../../../../../compound_source,../../../../../compound_no)"/>
																		</compound_code>
																	</x:for-each>
																	<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
																		<protocol_code>
																			<x:value-of select="."/>
																		</protocol_code>
																	</x:for-each>
																	<x:for-each select="(ancestor-or-self::*/center_no)[1]">
																		<centre_code>
																			<x:value-of select="."/>
																		</centre_code>
																	</x:for-each>
																	<x:for-each select=".././././././././protocol_patient[1]">
																		<subject_code>
																			<x:value-of select="concat(../../../../protocol_no,'.',../center_no,'.',substring(patient_no,2,5))"/>
																		</subject_code>
																	</x:for-each>
																	<subject_status>
																		<x:for-each select="status_code[1]">
																			<subject_status_code>
																				<x:value-of select="."/>
																			</subject_status_code>
																		</x:for-each>
																		<x:for-each select="status_desc[1]">
																			<subject_status_description>
																				<x:value-of select="."/>
																			</subject_status_description>
																		</x:for-each>
																	</subject_status>
																	<x:for-each select="screened_date[1]">
																		<screen_date>
																			<x:value-of select="."/>
																		</screen_date>
																	</x:for-each>
																	<x:for-each select="enrolled_date[1]">
																		<enrol_date>
																			<x:value-of select="."/>
																		</enrol_date>
																	</x:for-each>
																</subject>
															</x:for-each>
															<centre_activity>
																<x:for-each select=".././././././././protocol_center[1]">
																	<compound_code>
																		<x:value-of select="concat(../../../../compound_source,../../../../compound_no)"/>
																	</compound_code>
																</x:for-each>
																<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
																	<protocol_code>
																		<x:value-of select="."/>
																	</protocol_code>
																</x:for-each>
																<x:for-each select="(ancestor-or-self::*/center_no)[1]">
																	<centre_code>
																		<x:value-of select="."/>
																	</centre_code>
																</x:for-each>
																<centre_activity_description>
                                  <!--TODO-->
																</centre_activity_description>
																<sequence>
                                  <!--TODO-->
																</sequence>
																<centre_activity_type>
																	<centre_activity_type_code>
                                    <!--TODO-->
																	</centre_activity_type_code>
																	<centre_activity_type_description>
                                    <!--TODO-->
																	</centre_activity_type_description>
																</centre_activity_type>
																<offset>
																	<unit_of_measure>
																		<unit_of_measure_code>
                                      <!--TODO-->
																		</unit_of_measure_code>
																		<unit_of_measure_description>
                                      <!--TODO-->
																		</unit_of_measure_description>
																	</unit_of_measure>
																	<value>
                                    <!--TODO-->
																	</value>
																</offset>
																<screen_or_enrol_mark>
																	<screen_or_enrol_mark_code>
                                    <!--TODO-->
																	</screen_or_enrol_mark_code>
																	<screen_or_enrol_mark_description>
                                    <!--TODO-->
																	</screen_or_enrol_mark_description>
																</screen_or_enrol_mark>
															</centre_activity>
														</protocol_centre>
													</x:for-each>
												</protocol_country>
											</x:for-each>
										</protocol_office>
									</x:for-each>
									<x:for-each select="protocol_center">
										<protocol_centre>
											<x:for-each select="(.)[1]">
												<compound_code>
													<x:value-of select="concat(ancestor-or-self::*/compound_source,ancestor-or-self::*/compound_no)"/>
												</compound_code>
											</x:for-each>
											<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
												<protocol_code>
													<x:value-of select="."/>
												</protocol_code>
											</x:for-each>
											<x:for-each select="(ancestor-or-self::*/center_no)[1]">
												<centre_code>
													<x:value-of select="."/>
												</centre_code>
											</x:for-each>
											<protocol_centre_status>
												<x:for-each select="(status_code)[1]">
													<protocol_centre_status_code>
														<x:value-of select="."/>
													</protocol_centre_status_code>
												</x:for-each>
												<x:for-each select="(status_desc)[1]">
													<protocol_centre_status_description>
														<x:value-of select="."/>
													</protocol_centre_status_description>
												</x:for-each>
											</protocol_centre_status>
											<x:for-each select="(start_date)[1]">
												<centre_initiation_date>
													<x:choose>
														<x:when test="../start_date">
															<x:attribute name="actual">
																<x:value-of select="../start_date"/>
															</x:attribute>
														</x:when>
														<x:otherwise/>
													</x:choose>
												</centre_initiation_date>
											</x:for-each>
											<x:for-each select="(end_date)[1]">
												<centre_completion_date>
													<x:choose>
														<x:when test="../end_date">
															<x:attribute name="actual">
																<x:value-of select="../end_date"/>
															</x:attribute>
														</x:when>
														<x:otherwise/>
													</x:choose>
												</centre_completion_date>
											</x:for-each>
											<x:for-each select="(cro_code)[1]">
												<commercial_research_organisation>
													<x:for-each select="(../cro_code)[1]">
														<cro_code>
															<x:value-of select="."/>
														</cro_code>
													</x:for-each>
													<x:for-each select="(../cro_desc)[1]">
														<cro_description>
															<x:value-of select="."/>
														</cro_description>
													</x:for-each>
												</commercial_research_organisation>
											</x:for-each>
											<x:for-each select="(investigator_fname)[1]">
												<principal_investigator>
													<x:value-of select="concat(../investigator_fname,' ',../investigator_lname)"/>
												</principal_investigator>
											</x:for-each>
											<x:for-each select="(cra_lname)[1]">
												<clinical_research_associate>
													<x:value-of select="concat(../cra_fname,' ',../cra_lname)"/>
												</clinical_research_associate>
											</x:for-each>
											<personnel/>
											<data_entry>
												<site>
													<x:for-each select="(de_site_code)[1]">
														<site_code>
															<x:value-of select="."/>
														</site_code>
													</x:for-each>
													<x:for-each select="(de_site_desc)[1]">
														<site_description>
															<x:value-of select="."/>
														</site_description>
													</x:for-each>
												</site>
												<system>
													<x:for-each select="(de_system_code)[1]">
														<system_code>
															<x:value-of select="."/>
														</system_code>
													</x:for-each>
													<x:for-each select="(de_system_desc)[1]">
														<system_description>
															<x:value-of select="."/>
														</system_description>
													</x:for-each>
												</system>
											</data_entry>
											<x:for-each select="(projected_enrollment)[1]">
												<target_enrolment>
													<x:value-of select="."/>
												</target_enrolment>
											</x:for-each>
											<x:for-each select="protocol_patient">
												<subject>
													<x:for-each select="(.)[1]">
														<compound_code>
															<x:value-of select="concat(ancestor-or-self::*/compound_source,ancestor-or-self::*/compound_no)"/>
														</compound_code>
													</x:for-each>
													<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
														<protocol_code>
															<x:value-of select="."/>
														</protocol_code>
													</x:for-each>
													<x:for-each select="(ancestor-or-self::*/center_no)[1]">
														<centre_code>
															<x:value-of select="."/>
														</centre_code>
													</x:for-each>
													<x:for-each select="(.)[1]">
														<subject_code>
															<x:value-of select="concat(ancestor-or-self::*/protocol_no,'.',ancestor-or-self::*/center_no,'.',substring(ancestor-or-self::*/patient_no,2,5))"/>
														</subject_code>
													</x:for-each>
													<subject_status>
														<x:for-each select="(status_code)[1]">
															<subject_status_code>
																<x:value-of select="."/>
															</subject_status_code>
														</x:for-each>
														<x:for-each select="(status_desc)[1]">
															<subject_status_description>
																<x:value-of select="."/>
															</subject_status_description>
														</x:for-each>
													</subject_status>
													<x:for-each select="(screened_date)[1]">
														<screen_date>
															<x:value-of select="."/>
														</screen_date>
													</x:for-each>
													<x:for-each select="(enrolled_date)[1]">
														<enrol_date>
															<x:value-of select="."/>
														</enrol_date>
													</x:for-each>
												</subject>
											</x:for-each>
											<centre_activity>
												<x:for-each select="(.)[1]">
													<compound_code>
														<x:value-of select="concat(ancestor-or-self::*/compound_source,ancestor-or-self::*/compound_no)"/>
													</compound_code>
												</x:for-each>
												<x:for-each select="(ancestor-or-self::*/protocol_no)[1]">
													<protocol_code>
														<x:value-of select="."/>
													</protocol_code>
												</x:for-each>
												<x:for-each select="(ancestor-or-self::*/center_no)[1]">
													<centre_code>
														<x:value-of select="."/>
													</centre_code>
												</x:for-each>
												<centre_activity_description>
                          <!--TODO-->
												</centre_activity_description>
												<sequence>
                          <!--TODO-->
												</sequence>
												<centre_activity_type>
													<centre_activity_type_code>
                            <!--TODO-->
													</centre_activity_type_code>
													<centre_activity_type_description>
                            <!--TODO-->
													</centre_activity_type_description>
												</centre_activity_type>
												<offset>
													<unit_of_measure>
														<unit_of_measure_code>
                              <!--TODO-->
														</unit_of_measure_code>
														<unit_of_measure_description>
                              <!--TODO-->
														</unit_of_measure_description>
													</unit_of_measure>
													<value>
                            <!--TODO-->
													</value>
												</offset>
												<screen_or_enrol_mark>
													<screen_or_enrol_mark_code>
                            <!--TODO-->
													</screen_or_enrol_mark_code>
													<screen_or_enrol_mark_description>
                            <!--TODO-->
													</screen_or_enrol_mark_description>
												</screen_or_enrol_mark>
											</centre_activity>
										</protocol_centre>
									</x:for-each>
									<therapeutic_area>
										<therapeutic_area_code>
                      <!--TODO-->
										</therapeutic_area_code>
									</therapeutic_area>
								</protocol>
							</x:for-each>
						</compound>
					</x:for-each>
				</path_root>
			</path_body>
		</path_env>
	</x:template>
</x:stylesheet><!-- Stylus Studio meta-information - (c)1998-2001 eXcelon Corp.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario2" userelativepaths="yes" url="101468_058_001_crams_patient_level_UKAPP.xml" htmlbaseurl="" processortype="xalan" commandline="" additionalpath="c:\bea3\jdk131\jre\bin" additionalclasspath="c:\bea3\jdk131\jre\lib\rt.jar;c:\download\xalan\xalan_j201\bin\xalan.jar;c:\download\xalan\xalan_j201\bin\xerces.jar;" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo  srcSchemaPath="source.dtd" srcSchemaRoot="source_feed" srcSchemaPathIsRelative="yes" destSchemaPath="target.dtd" destSchemaRoot="path_env" destSchemaPathIsRelative="yes" />
</metaInformation>
-->
