<?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:variable name="NativePressureUnits">psi</xsl:variable>
	<xsl:variable name="TheSchema" select="document('AltusA10UV-Config-r100.xsd')"/>
	<xsl:variable name="LanguageSubfolder" select="Locale:LanguageSubfolder()"/>
	<xsl:variable name="ResourceFile" select="concat($LanguageSubfolder,'\\AltusA10UV-Resource-r100.xml')"/>
	<xsl:variable name="TheResources" select="document(string($ResourceFile))"/>
	
	<!-- Customize text for booleans -->
	<xsl:template match="ShutterIdleEnabled">
		<xsl:variable name="varname">
			<xsl:value-of select="name()"/>
		</xsl:variable>
		<xsl:call-template name="Emit-Field-Value-Prompt">
			<xsl:with-param name="InputVar" select="$varname"/>
			<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='xsd:boolean']/Prompt[@id='Elevator']/@value"/>
			</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	
	<xsl:template match="ColumnHeaterPresent">
		<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="/AltusA10UVConfig/ColumnHeaterPresent = 'true' ">Present</xsl:when>
					<xsl:otherwise>Not Present</xsl:otherwise>
				</xsl:choose>
			</xsl:with-param>
			<xsl:with-param name="InputPrompt">None</xsl:with-param>
			<xsl:with-param name="InputUnits">None</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<!-- Omit the system name -->
	<xsl:template match="SystemName"/>
	<xsl:template match="/*">
		<xsl:element name="AltusA10UVConfig">
      <xsl:apply-templates select="FirmwareVersion"/>
      <xsl:apply-templates select="IcsVersion"/>
      <xsl:apply-templates select="SerialNumber"/>
      <xsl:apply-templates select="LampSerialNumber"/>
    </xsl:element>
	</xsl:template>
</xsl:stylesheet>
