<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:Locale="urn:Locale-namespace">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:include href="DefaultPrint-r102.xsl"/>
	<xsl:include href="Locale.xsl"></xsl:include>
	<xsl:param name="printtype">Full</xsl:param>
	<xsl:variable name="NativePressureUnits">psi</xsl:variable>
	<xsl:variable name="TheSchema" select="document('AcquityELSD-Method-r100.xsd')"></xsl:variable>
	<xsl:variable name="LanguageSubfolder" select="Locale:LanguageSubfolder()"/>
	<xsl:variable name="ResourceFile" select="concat($LanguageSubfolder,'\\AcquityELSD-Resource-r100.xml')"/>
	<xsl:variable name="TheResources" select="document(string($ResourceFile))"></xsl:variable>
	
	<!-- Don't emit event table if brief or summary report is requested -->
	<xsl:template match="EventTable">
		<xsl:if test="$printtype = 'Full' or $printtype = 'Plain Text'">
			<xsl:call-template name="Emit"/>
		</xsl:if>
	</xsl:template>

	<!-- Customize text for boolean On/Off at end of FieldList -->
	<xsl:template match="LampOn">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOn_1B']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOff_0B']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tLamp']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for Off at end of FieldList -->
	<xsl:template match="GasPressure">
		<xsl:variable name="gasValue" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'Off'">
						<xsl:value-of  select="$TheResources//Enum[@id='GasPressureOff_-1']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$gasValue"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tGasPressure']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for boolean On/Off at end of FieldList -->
	<xsl:template match="GasPressureEnable">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOn_1B']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOff_0B']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tGasPressureEnable']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Not used  -->
	<xsl:template match="SignalOutputPolarity"/>
	<!-- Customize text for output source at end of FieldList -->
	<xsl:template match="TemperatureOutputOffset">
		<xsl:variable name="temperatureOutputOffset" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
			<xsl:value-of select="$temperatureOutputOffset"/>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tTemperatureOutputOffset']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for boolean Yes/No before end of FieldList -->
	<xsl:template match="SignalMbfEnable">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOn_1B']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOff_0B']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tSignalMbfEnable']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for boolean On/Off before end of FieldList -->
	<xsl:template match="SignalEnable">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOn_1B']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOff_0B']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tSignalEnable']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for Off at end of FieldList -->
	<xsl:template match="NebulizerSetPoint">
		<xsl:variable name="nebulizerSetPoint" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'Off'">
						<xsl:value-of  select="$TheResources//Enum[@id='HeaterOff_-1']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$nebulizerSetPoint"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tNebulizerSetpoint']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for Nebulizer Mode before end of FieldList -->
	<xsl:template match="NebulizerMode">
		<xsl:variable name="nebulizerMode" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'HeaterCoolerOn_0'">
						<xsl:value-of  select="$TheResources//Enum[@id='HeaterCoolerOn_0']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'HeaterCoolerOff_1'">
						<xsl:value-of  select="$TheResources//Enum[@id='HeaterCoolerOff_1']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'HeaterCoolerCooling_2'">
						<xsl:value-of  select="$TheResources//Enum[@id='HeaterCoolerCooling_2']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$nebulizerMode"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tNebulizerMode']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for boolean On/Off before end of FieldList -->
	<xsl:template match="NebulizerEnable">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOn_1B']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOff_0B']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tNebulizerEnable']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for Off at end of FieldList -->
	<xsl:template match="DriftTubeSetPoint">
		<xsl:variable name="driftTubeSetPoint" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'Off'">
						<xsl:value-of  select="$TheResources//Enum[@id='HeaterOff_-1']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$driftTubeSetPoint"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tDriftTubeSetpoint']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="DriftTubeLimit">
		<xsl:variable name="driftTubeLimit" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
			<xsl:value-of select="$driftTubeLimit"/>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tDriftTubeLimit']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for boolean On/Off before end of FieldList -->
	<xsl:template match="DriftTubeEnable">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOn_1B']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOff_0B']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tDriftTubeEnable']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	
	
	<!-- Customize text for Off at end of FieldList -->
	<xsl:template match="ColumnSetpoint">
		<xsl:variable name="columnSetPoint" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'Off'">
						<xsl:value-of  select="$TheResources//Enum[@id='HeaterOff_-1']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$columnSetPoint"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tColumnSetpoint']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="ColumnLimit">
		<xsl:variable name="columnLimit" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
			<xsl:value-of select="$columnLimit"/>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tColumnLimit']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for boolean Yes/No before end of FieldList -->
	<xsl:template match="ColumnEnable">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOn_1B']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanOff_0B']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tColumnEnable']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for Auxilary Switch before end of FieldList -->
	<xsl:template match="AuxilarySwitch">
		<xsl:variable name="auxilarySwitch" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'AuxilarySwitch_0'">
						<xsl:value-of  select="$TheResources//Enum[@id='AuxilarySwitch_0']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'AuxilarySwitch_1'">
						<xsl:value-of  select="$TheResources//Enum[@id='AuxilarySwitch_1']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'AuxilarySwitch_4'">
						<xsl:value-of  select="$TheResources//Enum[@id='AuxilarySwitch_4']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$auxilarySwitch"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tAuxilarySwitch']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for boolean Yes/No before end of FieldList -->
	<xsl:template match="AutozeroOnInject">
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'true'">
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanYes_1A']/@value"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of  select="$TheResources//Enum[@id='BooleanNo_0A']/@value"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tAutozeroOnInject']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>	
	<!-- Customize text for Autozero On Gain Change before end of FieldList -->
	<xsl:template match="AutozeroOnGainChange">
		<xsl:variable name="autozeroOnGainChange" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'AutozeroOnGainChange_0'">
						<xsl:value-of  select="$TheResources//Enum[@id='AutozeroOnGainChange_0']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'AutozeroOnGainChange_1'">
						<xsl:value-of  select="$TheResources//Enum[@id='AutozeroOnGainChange_1']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'AutozeroOnGainChange_2'">
						<xsl:value-of  select="$TheResources//Enum[@id='AutozeroOnGainChange_2']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$autozeroOnGainChange"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tAutozeroOnGainChange']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Customize text for Threshold Event before end of FieldList -->
	<xsl:template match="ThresholdEvent">
		<xsl:variable name="thresholdEvent" select="."/>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="name()"/>
			<xsl:with-param name="InputType">String</xsl:with-param>
			<xsl:with-param name="InputPrecision">0</xsl:with-param>
			<xsl:with-param name="InputValue">
				<xsl:choose>
					<xsl:when test=". = 'ThresholdEventOff_0'">
						<xsl:value-of  select="$TheResources//Enum[@id='ThresholdEventOff_0']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'ThresholdEventOn_1'">
						<xsl:value-of  select="$TheResources//Enum[@id='ThresholdEventOn_1']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'ThresholdEventPulse_2'">
						<xsl:value-of  select="$TheResources//Enum[@id='ThresholdEventPulse_2']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'ThresholdEventRectWave_3'">
						<xsl:value-of  select="$TheResources//Enum[@id='ThresholdEventRectWave_3']/@value"/>
					</xsl:when>
					<xsl:when test=". = 'ThresholdEventNoChange_4'">
						<xsl:value-of  select="$TheResources//Enum[@id='ThresholdEventNoChange_4']/@value"/>
					</xsl:when>
					<xsl:otherwise><xsl:value-of select="$thresholdEvent"/></xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">
				<xsl:value-of  select="$TheResources//Type[@name='tThresholdEvent']/@prompt"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Omit the column heater and instrument type -->
	<xsl:template match="ColumnHeaterHardwarePresent"/>
	<xsl:template match="InstrumentType"/>
	<xsl:template match="AcquityELSDMethod">
		<xsl:element name="AcquityELSDMethod">
			<xsl:apply-templates/>
		</xsl:element>
	</xsl:template>


</xsl:stylesheet>
	
