/ .. / / -> download
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="@crewMemberType">
    <xsl:choose>
        <xsl:when test=".='cm01'"><xsl:text>All</xsl:text></xsl:when>
        <xsl:when test=".='cm02'"><xsl:text>Pilot</xsl:text></xsl:when>
        <xsl:when test=".='cm03'"><xsl:text>Co-pilot</xsl:text></xsl:when>
        <xsl:when test=".='cm04'"><xsl:text>Navigator</xsl:text></xsl:when>
        <xsl:when test=".='cm05'"><xsl:text>Engineer</xsl:text></xsl:when>
        <xsl:when test=".='cm06'"><xsl:text>Ground crew</xsl:text></xsl:when>
        <xsl:when test=".='cm07'"><xsl:text>Load master</xsl:text></xsl:when>
        <xsl:when test=".='cm08'"><xsl:text>Cabin supervisor</xsl:text></xsl:when>
        <xsl:when test=". ='cm09'"><xsl:text>Invalid crewMemberType</xsl:text></xsl:when>
        <!-- I tried doing . >= 'cm09' and . <= 'cm50' and that just doesn't work so I guess every single value has to be put in here. -->
        <xsl:when test=".='cm51'"><xsl:text>Loader</xsl:text></xsl:when>
        <xsl:when test=".='cm52'"><xsl:text>Driver</xsl:text></xsl:when>
        <xsl:when test=".='cm53'"><xsl:text>Gunner</xsl:text></xsl:when>
        <xsl:when test=".='cm54'"><xsl:text>Commander</xsl:text></xsl:when>
        <xsl:when test=".='cm55'"><xsl:text>Crew chief</xsl:text></xsl:when>
        <xsl:when test=".='cm56'"><xsl:text>Technician</xsl:text></xsl:when>
        <xsl:when test=".='cm57'"><xsl:text>Installer</xsl:text></xsl:when>
        <xsl:when test=".='cm58'"><xsl:text>Maintainer</xsl:text></xsl:when>
        <xsl:when test=".='cm59'"><xsl:text>Officer</xsl:text></xsl:when>
        <xsl:when test=".='cm60'"><xsl:text>Operator</xsl:text></xsl:when>
        <xsl:when test=".='cm61'"><xsl:text>Crew member</xsl:text></xsl:when>
        <xsl:when test=".='cm62'"><xsl:text>Specialist</xsl:text></xsl:when>
        <xsl:when test=".='cm63'"><xsl:text>Repairer</xsl:text></xsl:when>
        <xsl:when test=".='cm64'"><xsl:text>Mechanic</xsl:text></xsl:when>
        <xsl:when test=".='cm65'"><xsl:text>Attendant</xsl:text></xsl:when>
        <xsl:when test=".='cm66'"><xsl:text>Handler</xsl:text></xsl:when>
        <xsl:when test=".='cm67'"><xsl:text>Machinist</xsl:text></xsl:when>
        <xsl:when test=".='cm68'"><xsl:text>Supervisor</xsl:text></xsl:when>
        <xsl:when test=".='cm69'"><xsl:text>Electrician</xsl:text></xsl:when>
        <xsl:when test=".='cm70'"><xsl:text>Chief</xsl:text></xsl:when>
        <xsl:otherwise><xsl:text>crewMemberType not defined</xsl:text></xsl:otherwise>
     </xsl:choose>
</xsl:template>

<!-- Need to add a template for every other project configurable attribute -->

<xsl:template match="@accessPointTypeValue">
    <xsl:choose>
        <xsl:when test=".='accpnl01'"><xsl:text>Access is a door</xsl:text></xsl:when>
        <xsl:when test=".='accpnl02'"><xsl:text>Access is a panel</xsl:text></xsl:when>
        <xsl:when test=".='accpnl03'"><xsl:text>Access is an electrical panel</xsl:text></xsl:when>
        <!-- accpnl04 – accpnl50 Not available for projects -->
        <xsl:when test=".='accpnl51'"><xsl:text>Access is a cover</xsl:text></xsl:when>
        <xsl:when test=".='accpnl52'"><xsl:text>Access is a plate</xsl:text></xsl:when>
        <xsl:when test=".='accpnl53'"><xsl:text>Access is a screen</xsl:text></xsl:when>
        <xsl:when test=".='accpnl54'"><xsl:text>Access is an opening</xsl:text></xsl:when>
        <!-- accpnl55 – accpnl65 Reserved for Army
        		 accpnl66 – accpnl99 Available for projects -->
        <xsl:otherwise><xsl:text>accessPointTypeValue not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@acronymType">
    <xsl:choose>
        <xsl:when test=".='at01'"><xsl:text>Acronym</xsl:text></xsl:when>
        <xsl:when test=".='at02'"><xsl:text>Term</xsl:text></xsl:when>
        <xsl:when test=".='at03'"><xsl:text>Symbol</xsl:text></xsl:when>
        <xsl:when test=".='at04'"><xsl:text>Spec</xsl:text></xsl:when>
        <!-- at05 – at50 Not available for projects
        		 at51 – at55 Reserved for Army
        		 at56 – at99 Available for projects -->
        <xsl:otherwise><xsl:text>acronymType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@cancelCaption">
    <xsl:choose>
        <xsl:when test=".='ca01'"><xsl:text>Sets the caption to "CANCEL"</xsl:text></xsl:when>
        <xsl:when test=".='ca02'"><xsl:text>Sets the caption to "ABORT"</xsl:text></xsl:when>
        <!-- ca03	Not available for projects -->
        <xsl:when test=".='ca04'"><xsl:text>Sets the caption to "END"</xsl:text></xsl:when>
        <xsl:when test=".='ca05'"><xsl:text>Sets the caption to "QUIT"</xsl:text></xsl:when>
        <!-- ca06 – ca50 Not available for projects
        		 ca51 – ca99 Reserved for Army -->
        <xsl:otherwise><xsl:text>cancelCaption not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@caveat">
    <xsl:choose>
        <!-- cv01 – cv50 Not available for projects -->
        <xsl:when test=".='cv51'"><xsl:text>For Official Use Only</xsl:text></xsl:when>
        <!-- cv52 – cv55 Reserved for Army
        		 cv56 – cv99 Available for projects -->
        <xsl:otherwise><xsl:text>caveat not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@checkListCategory">
    <xsl:choose>
        <xsl:when test=".='clc01'"><xsl:text>Preventive maintenance inspection form</xsl:text></xsl:when>
        <xsl:when test=".='clc02'"><xsl:text>Preventive Maintenance Checks and Services (PMCS)</xsl:text></xsl:when>
        <xsl:when test=".='clc03'"><xsl:text>Schematics</xsl:text></xsl:when>
        <!-- clc04 – clc50 Not available for projects -->
        <xsl:when test=".='clc51'"><xsl:text>Checking unpacked equipment</xsl:text></xsl:when>
        <xsl:when test=".='clc52'"><xsl:text>Preventive Maintenance Checklist (PMC)</xsl:text></xsl:when>
        <!-- clc53 – clc55 Reserved for Army
        		 clc56 – clc99 Available for projects -->
        <xsl:otherwise><xsl:text>checkListCategory not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@color">
    <xsl:choose>
        <xsl:when test=".='co00'"><xsl:text>None</xsl:text></xsl:when>
        <xsl:when test=".='co01'"><xsl:text>Green</xsl:text></xsl:when>
        <xsl:when test=".='co02'"><xsl:text>Amber</xsl:text></xsl:when>
        <xsl:when test=".='co03'"><xsl:text>Yellow</xsl:text></xsl:when>
        <xsl:when test=".='co04'"><xsl:text>Red</xsl:text></xsl:when>
        <!-- co05	Not available for projects
        		 co06	Not available for projects -->
        <xsl:when test=".='co07'"><xsl:text>White</xsl:text></xsl:when>
        <xsl:when test=".='co08'"><xsl:text>Grey</xsl:text></xsl:when>
        <xsl:when test=".='co09'"><xsl:text>Clear</xsl:text></xsl:when>
        <!-- co10 – co50 Not available for projects
        		 co51 – co55 Reserved for Army
        		 co56 – co99 Available for projects -->
        <xsl:otherwise><xsl:text>color not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@commentPriorityCode">
    <xsl:choose>
        <xsl:when test=".='cp01'"><xsl:text>Routine</xsl:text></xsl:when>
        <xsl:when test=".='cp02'"><xsl:text>Emergency</xsl:text></xsl:when>
        <xsl:when test=".='cp03'"><xsl:text>Safety critical</xsl:text></xsl:when>
        <!-- cp04 – cp50 Not available for projects
        		 cp51 – cp55 Reserved for Army
        		 cp56 – cp99 Available for projects -->
        <xsl:otherwise><xsl:text>commentPriorityCode not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<!-- commercialClassification
Not displayed to the user -->

<xsl:template match="@crewStepCondition">
    <xsl:variable name="test">
        <xsl:value-of select="."/>
    </xsl:variable>
   <xsl:if test="contains($test, 'csc01')"><xsl:text>O</xsl:text></xsl:if>
    <xsl:if test="contains($test, 'csc02')"><xsl:text>★</xsl:text></xsl:if>
    <xsl:if test="contains($test, 'csc03')"><xsl:text>*</xsl:text></xsl:if>
    <xsl:if test="contains($test, 'csc04')"><xsl:text>N</xsl:text></xsl:if>
    <xsl:if test="contains($test, 'csc05')"><xsl:text>T</xsl:text></xsl:if>
    <!-- csc06 – csc50 Not available for projects -->
    <xsl:if test="contains($test, 'csc52')"><xsl:text>F</xsl:text></xsl:if>
    <xsl:if test="contains($test, 'csc53')"><xsl:text>**</xsl:text></xsl:if>
    <!-- csc54 – csc60 Reserved for Army
        	 csc61 – csc99 Available for projects -->
</xsl:template>

<xsl:template match="@descrForItemCode">
    <xsl:choose>
        <xsl:when test=".='dic01'"><xsl:text>Support Equipment</xsl:text></xsl:when>
        <!-- dic02	Not available for projects
        		 dic03	Not available for projects
        		 dic04	Not available for projects
        		 dic05 – dic21 Not available for projects -->
        <xsl:when test=".='dic22'"><xsl:text>Special Tool</xsl:text></xsl:when>
        <xsl:when test=".='dic23'"><xsl:text>Part</xsl:text></xsl:when>
        <xsl:when test=".='dic24'"><xsl:text>Basic Issue Item (BII)</xsl:text></xsl:when>
        <xsl:when test=".='dic25'"><xsl:text>Components of End Item (COEI)</xsl:text></xsl:when>
        <xsl:when test=".='dic26'"><xsl:text>Tool</xsl:text></xsl:when>
        <xsl:when test=".='dic27'"><xsl:text>Additional Authorization List (AAL) item</xsl:text></xsl:when>
        <!-- dic28 – dic50 Not available for projects
        		 dic51 – dic55 Reserved for Army
        		 dic56 – dic99 Available for projects -->
        <xsl:otherwise><xsl:text>descrForItemCode not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@drillType">
    <xsl:choose>
        <xsl:when test=".='dt00'"><xsl:text>None</xsl:text></xsl:when>
        <xsl:when test=".='dt01'"><xsl:text>Green</xsl:text></xsl:when>
        <xsl:when test=".='dt02'"><xsl:text>Amber</xsl:text></xsl:when>
        <xsl:when test=".='dt03'"><xsl:text>Yellow</xsl:text></xsl:when>
        <xsl:when test=".='dt04'"><xsl:text>Red</xsl:text></xsl:when>
        <xsl:when test=".='dt05'"><xsl:text>Orange</xsl:text></xsl:when>
        <xsl:when test=".='dt06'"><xsl:text>Blue</xsl:text></xsl:when>
        <!-- dt07-dt50 Not available for projects
        		 dt51-dt55 Reserved for Army
        		 dt56-dt99 Available for projects -->
        <xsl:otherwise><xsl:text>drillType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@emphasisType">
    <xsl:choose>
        <xsl:when test=".='em01'"><xsl:text>Bold</xsl:text></xsl:when>
        <xsl:when test=".='em02'"><xsl:text>Italic</xsl:text></xsl:when>
        <xsl:when test=".='em03'"><xsl:text>Underline</xsl:text></xsl:when>
        <xsl:when test=".='em04'"><xsl:text>Overline</xsl:text></xsl:when>
        <xsl:when test=".='em05'"><xsl:text>Strikethrough</xsl:text></xsl:when>
        <!-- em06 – em50 Not available for projects -->
        <xsl:when test=".='em51'"><xsl:text>Small capitals</xsl:text></xsl:when>
        <xsl:when test=".='em52'"><xsl:text>Two line</xsl:text></xsl:when>
        <xsl:when test=".='em53'"><xsl:text>All capitals</xsl:text></xsl:when>
        <xsl:when test=".='em54'"><xsl:text>Reverse</xsl:text></xsl:when>
        <xsl:when test=".='em55'"><xsl:text>Bold and italic</xsl:text></xsl:when>
        <!-- em56 – em99 Reserved for Army -->
        <xsl:otherwise><xsl:text>emphasisType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@function">
    <xsl:choose>
        <xsl:when test=".='ft00'"><xsl:text>None</xsl:text></xsl:when>
        <xsl:when test=".='ft01'"><xsl:text>Inspect</xsl:text></xsl:when>
        <xsl:when test=".='ft02'"><xsl:text>Test</xsl:text></xsl:when>
        <xsl:when test=".='ft03'"><xsl:text>Service</xsl:text></xsl:when>
        <xsl:when test=".='ft04'"><xsl:text>Adjust</xsl:text></xsl:when>
        <xsl:when test=".='ft05'"><xsl:text>Align</xsl:text></xsl:when>
        <xsl:when test=".='ft06'"><xsl:text>Calibrate</xsl:text></xsl:when>
        <xsl:when test=".='ft07'"><xsl:text>Remove/Install</xsl:text></xsl:when>
        <xsl:when test=".='ft08'"><xsl:text>Replace</xsl:text></xsl:when>
        <xsl:when test=".='ft09'"><xsl:text>Repair</xsl:text></xsl:when>
        <xsl:when test=".='ft10'"><xsl:text>Overhaul</xsl:text></xsl:when>
        <xsl:when test=".='ft11'"><xsl:text>Rebuild</xsl:text></xsl:when>
        <!-- ft12 – ft50 Not available for projects -->
        <xsl:when test=".='ft51'"><xsl:text>Paint</xsl:text></xsl:when>
        <xsl:when test=".='ft52'"><xsl:text>Demilitarize</xsl:text></xsl:when>
        <xsl:when test=".='ft53'"><xsl:text>Remove</xsl:text></xsl:when>
        <xsl:when test=".='ft54'"><xsl:text>Install</xsl:text></xsl:when>
        <xsl:when test=".='ft55'"><xsl:text>Prepare for Use</xsl:text></xsl:when>
        <xsl:when test=".='ft56'"><xsl:text>Disassemble</xsl:text></xsl:when>
        <xsl:when test=".='ft57'"><xsl:text>Clean</xsl:text></xsl:when>
        <xsl:when test=".='ft58'"><xsl:text>Non-Destructive Inspection</xsl:text></xsl:when>
        <xsl:when test=".='ft59'"><xsl:text>Lubricate</xsl:text></xsl:when>
        <xsl:when test=".='ft60'"><xsl:text>Assemble</xsl:text></xsl:when>
        <xsl:when test=".='ft61'"><xsl:text>Radio Interference Suppression</xsl:text></xsl:when>
        <xsl:when test=".='ft62'"><xsl:text>Place In Service</xsl:text></xsl:when>
        <xsl:when test=".='ft63'"><xsl:text>Preparation for Storage or Shipment</xsl:text></xsl:when>
        <xsl:when test=".='ft64'"><xsl:text>Mark</xsl:text></xsl:when>
        <xsl:when test=".='ft65'"><xsl:text>Arm</xsl:text></xsl:when>
        <xsl:when test=".='ft66'"><xsl:text>Pack</xsl:text></xsl:when>
        <xsl:when test=".='ft67'"><xsl:text>Load</xsl:text></xsl:when>
        <xsl:when test=".='ft68'"><xsl:text>Unpack</xsl:text></xsl:when>
        <xsl:when test=".='ft69'"><xsl:text>Unload</xsl:text></xsl:when>
        <xsl:when test=".='ft70'"><xsl:text>Preserve</xsl:text></xsl:when>
        <xsl:when test=".='ft71'"><xsl:text>Tow</xsl:text></xsl:when>
        <xsl:when test=".='ft72'"><xsl:text>Jack</xsl:text></xsl:when>
        <xsl:when test=".='ft73'"><xsl:text>Park</xsl:text></xsl:when>
        <xsl:when test=".='ft74'"><xsl:text>Moor</xsl:text></xsl:when>
        <xsl:when test=".='ft75'"><xsl:text>Cover</xsl:text></xsl:when>
        <xsl:when test=".='ft76'"><xsl:text>Hoist</xsl:text></xsl:when>
        <xsl:when test=".='ft77'"><xsl:text>Sling</xsl:text></xsl:when>
        <xsl:when test=".='ft78'"><xsl:text>External Power</xsl:text></xsl:when>
        <xsl:when test=".='ft79'"><xsl:text>Software Maintenance</xsl:text></xsl:when>
        <xsl:when test=".='ft80'"><xsl:text>Other maintenance tasks</xsl:text></xsl:when>
        <!-- ft81-ft99 Reserved for Army -->
        <xsl:otherwise><xsl:text>function not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@installationLocationType">
    <xsl:choose>
        <xsl:when test=".='instloctyp01'"><xsl:text>Zone</xsl:text></xsl:when>
        <xsl:when test=".='instloctyp02'"><xsl:text>Section</xsl:text></xsl:when>
        <xsl:when test=".='instloctyp03'"><xsl:text>Station</xsl:text></xsl:when>
        <xsl:when test=".='instloctyp04'"><xsl:text>Water line</xsl:text></xsl:when>
        <xsl:when test=".='instloctyp05'"><xsl:text>Buttock line</xsl:text></xsl:when>
        <!-- instloctyp06 – instloctyp50 Not available for projects
        		 instloctyp51 – instloctyp55 Reserved for Army
        		 instloctyp56 – instloctyp99 Available for projects -->
        <xsl:otherwise><xsl:text>installationLocationType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@itemCharacteristics">
    <xsl:choose>
        <xsl:when test=".='ic01'"><xsl:text>Used to indicate steps related to hardness critical process</xsl:text></xsl:when>
        <xsl:when test=".='ic02'"><xsl:text>Used to indicate steps related to electrostatic discharge</xsl:text></xsl:when>
        <xsl:when test=".='ic03'"><xsl:text>Used to indicate steps with a quality assurance effect</xsl:text></xsl:when>
        <!-- ic04 – ic50 Not available for projects
        		 ic51 – ic55 Reserved for Army
        		 ic56 – ic99 Available for projects -->
        <xsl:otherwise><xsl:text>itemCharacteristics not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@itemOriginator">
    <xsl:choose>
        <xsl:when test=".='orig01'"><xsl:text>Manufacturer</xsl:text></xsl:when>
        <xsl:when test=".='orig02'"><xsl:text>Vendor</xsl:text></xsl:when>
        <xsl:when test=".='orig03'"><xsl:text>Partner</xsl:text></xsl:when>
        <!-- orig04 – orig50 Not available for projects
        		 orig51 – orig55 Reserved for Army
        		 orig56 – orig99 Available for projects -->
        <xsl:otherwise><xsl:text>itemOriginator not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<!-- limitUnitType
The attribute limitUnitType shall not be used. -->

<xsl:template match="@listItemPrefix">
    <xsl:choose>
        <xsl:when test=".='pf01'"><xsl:text>Simple (No prefix, only indent)</xsl:text></xsl:when>
        <xsl:when test=".='pf02'"><xsl:text>Unorder [-], [??], [-]</xsl:text></xsl:when>
        <xsl:when test=".='pf03'"><xsl:text>Dash [-] (short dash)</xsl:text></xsl:when>
        <xsl:when test=".='pf04'"><xsl:text>Disc [??] (filled circle in circle)</xsl:text></xsl:when>
        <xsl:when test=".='pf05'"><xsl:text>Circle [??] (outline)</xsl:text></xsl:when>
        <xsl:when test=".='pf06'"><xsl:text>Square [??] (outline)</xsl:text></xsl:when>
        <xsl:when test=".='pf07'"><xsl:text>Bullet [??] (outline)</xsl:text></xsl:when>
        <!-- pf08 – pf50 Not available for projects
        		 pf51 – pf55 Reserved for Army
        		 pf56 – pf99 Available for projects -->
        <xsl:otherwise><xsl:text>listItemPrefix not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@lowestLevel">
    <xsl:choose>
        <xsl:when test=".='la01'"><xsl:text>None</xsl:text></xsl:when>
        <xsl:when test=".='la02'"><xsl:text>Field (Service) level</xsl:text></xsl:when>
        <xsl:when test=".='la03'"><xsl:text>Field/ Aviation Support Battalion (ASB) maintenance can remove, replace, and use the item.</xsl:text></xsl:when>
        <xsl:when test=".='la04'"><xsl:text>Below depot sustainment maintenance can remove, replace, and use the item.</xsl:text></xsl:when>
        <xsl:when test=".='la05'"><xsl:text>Specialized Repair Activity (SRA)/Theater Aviation Support Maintenance Group (TASMG) can remove, replace, and use the item.</xsl:text></xsl:when>
        <xsl:when test=".='la06'"><xsl:text>Afloat and ashore intermediate maintenance can remove, replace, and use the item.</xsl:text></xsl:when>
        <xsl:when test=".='la07'"><xsl:text>Contractor facility can remove, replace, and use the item.</xsl:text></xsl:when>
        <xsl:when test=".='la08'"><xsl:text>Item is not authorized to be removed, replaced, or used at any maintenance level</xsl:text></xsl:when>
        <xsl:when test=".='la09'"><xsl:text>Depot can remove, replace, and use the item.</xsl:text></xsl:when>
        <!-- la10 – la50 Not available for projects -->
        <xsl:when test=".='la51'"><xsl:text>Army Maintenance Company</xsl:text></xsl:when>
        <!-- la52 – la60 Reserved for Army
        		 la61 – la99 Available for projects -->
        <xsl:otherwise><xsl:text>lowestLevel not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@maintLevelcode">
    <xsl:choose>
        <!-- ml01 – ml50 Not available for projects -->
        <xsl:when test=".='ml51'"><xsl:text>Crew (C) (standard)</xsl:text></xsl:when>
        <xsl:when test=".='ml52'"><xsl:text>Maintainer (F) (standard)</xsl:text></xsl:when>
        <xsl:when test=".='ml53'"><xsl:text>SRA (L) (standard)</xsl:text></xsl:when>
        <xsl:when test=".='ml54'"><xsl:text>Below depot (H) (standard)</xsl:text></xsl:when>
        <xsl:when test=".='ml55'"><xsl:text>Depot (D) (standard)</xsl:text></xsl:when>
        <xsl:when test=".='ml56'"><xsl:text>AMC (O) (aviation)</xsl:text></xsl:when>
        <xsl:when test=".='ml57'"><xsl:text>ASB (F) (aviation)</xsl:text></xsl:when>
        <xsl:when test=".='ml58'"><xsl:text>TASMG (L) (aviation)</xsl:text></xsl:when>
        <xsl:when test=".='ml59'"><xsl:text>Depot (D) (aviation)</xsl:text></xsl:when>
        <!-- ml60 – ml99 Reserved for Army -->
        <xsl:otherwise><xsl:text>maintLevelcode not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@partCharacteristic">
    <xsl:choose>
        <xsl:when test=".='pc01'"><xsl:text>Used to indicate a hardness critical item</xsl:text></xsl:when>
        <xsl:when test=".='pc02'"><xsl:text>Not available for projects</xsl:text></xsl:when>
        <xsl:when test=".='pc03'"><xsl:text>Used to indicate mandatory replacement parts</xsl:text></xsl:when>
        <xsl:when test=".='pc04'"><xsl:text>Used to indicate critical safety items</xsl:text></xsl:when>
        <xsl:when test=".='pc05'"><xsl:text>Used to indicate test equipment</xsl:text></xsl:when>
        <xsl:when test=".='pc06'"><xsl:text>Used to indicate parts with electrostatic discharge sensitivity</xsl:text></xsl:when>
        <!-- pc07 – pc50 Not available for projects
        		 pc51 – pc55 Reserved for Army
        		 pc56 – pc99 Available for projects -->
        <xsl:otherwise><xsl:text>partCharacteristic not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

    <!--MIL-STD-3031A, para 5.48.1.23 Publication module entry type – attribute pmEntryType.
    Attribute values shall be used as defined in the following table.-->
    <xsl:template match="@pmEntryType">
    <xsl:choose>
        <!-- pmt01 – pmt50 Not available for projects -->
        <xsl:when test=".='pmt51'"><xsl:text>Front matter</xsl:text></xsl:when>
        <xsl:when test=".='pmt52'"><xsl:text>Chapter</xsl:text></xsl:when>
        <xsl:when test=".='pmt53'"><xsl:text>Section</xsl:text></xsl:when>
        <xsl:when test=".='pmt54'"><xsl:text>Sub-section</xsl:text></xsl:when>
        <xsl:when test=".='pmt55'"><xsl:text>Appendix</xsl:text></xsl:when>
        <xsl:when test=".='pmt56'"><xsl:text>Checklist</xsl:text></xsl:when>
        <xsl:when test=".='pmt57'"><xsl:text>Rear Matter</xsl:text></xsl:when>
        <xsl:when test=".='pmt58'"><xsl:text>Emergency procedures for aircrew</xsl:text></xsl:when>
        <!-- pmt59 – pmt70 Reserved for Army
        		 pmt71 – pmt99 Available for projects -->
        <xsl:otherwise><xsl:text>pmEntryType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@quantityType">
    <xsl:choose>
        <xsl:when test=".='qty01'"><xsl:text>Length</xsl:text></xsl:when>
        <xsl:when test=".='qty02'"><xsl:text>Price</xsl:text></xsl:when>
        <xsl:when test=".='qty03'"><xsl:text>Temperature</xsl:text></xsl:when>
        <xsl:when test=".='qty04'"><xsl:text>Time</xsl:text></xsl:when>
        <xsl:when test=".='qty05'"><xsl:text>Torque value</xsl:text></xsl:when>
        <xsl:when test=".='qty06'"><xsl:text>Voltage</xsl:text></xsl:when>
        <xsl:when test=".='qty07'"><xsl:text>Volume</xsl:text></xsl:when>
        <xsl:when test=".='qty08'"><xsl:text>Mass</xsl:text></xsl:when>
        <!-- qty09 – qty50 Not available for projects -->
        <xsl:when test=".='qty51'"><xsl:text>Weight</xsl:text></xsl:when>
        <xsl:when test=".='qty52'"><xsl:text>Height</xsl:text></xsl:when>
        <xsl:when test=".='qty53'"><xsl:text>Pressure</xsl:text></xsl:when>
        <xsl:when test=".='qty54'"><xsl:text>Dimension</xsl:text></xsl:when>
        <xsl:when test=".='qty55'"><xsl:text>Clearance</xsl:text></xsl:when>
        <!-- qty56 – qty60 Reserved for Army
        		 qty61 – qty99 Available for projects -->
        <xsl:otherwise><xsl:text>quantityType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@reqCondCategory">
    <xsl:choose>
        <xsl:when test=".='rcc01'"><xsl:text>Normal</xsl:text></xsl:when>
        <xsl:when test=".='rcc02'"><xsl:text>Special environmental conditions such as reduced lighting, ventilation, and temperature.</xsl:text></xsl:when>
        <!-- rcc03 – rcc50 Not available for projects
        		 rcc51 – rcc55 Reserved for Army
        		 rcc56 – rcc99 Available for projects -->
        <xsl:otherwise><xsl:text>reqCondCategory not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@reqTechInfoCategory">
    <xsl:choose>
        <xsl:when test=".='ti01'"><xsl:text>Publication module</xsl:text></xsl:when>
        <xsl:when test=".='ti02'"><xsl:text>Data module</xsl:text></xsl:when>
        <xsl:when test=".='ti03'"><xsl:text>Drawing</xsl:text></xsl:when>
        <xsl:when test=".='ti04'"><xsl:text>Electrical diagram</xsl:text></xsl:when>
        <xsl:when test=".='ti05'"><xsl:text>Schematic diagram</xsl:text></xsl:when>
        <xsl:when test=".='ti06'"><xsl:text>Safety sheet</xsl:text></xsl:when>
        <!-- ti07 – ti50 Not available for projects
        		 ti51 – ti55 Reserved for Army
        		 ti56 – ti99 Available for projects -->
        <xsl:otherwise><xsl:text>reqTechInfoCategory not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@resetCaption">
    <xsl:choose>
        <xsl:when test=".='re01'"><xsl:text>Sets the caption to "RESET"</xsl:text></xsl:when>
        <xsl:when test=".='re02'"><xsl:text>Sets the caption to "CLEAR"</xsl:text></xsl:when>
        <!-- re03 – re50 Not available for projects
        		 re51 – re99 Reserved for Army -->
        <xsl:otherwise><xsl:text>resetCaption not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@responseType">
    <xsl:choose>
        <xsl:when test=".='rt01'"><xsl:text>Accepted</xsl:text></xsl:when>
        <xsl:when test=".='rt02'"><xsl:text>Pending</xsl:text></xsl:when>
        <xsl:when test=".='rt03'"><xsl:text>Partly rejected</xsl:text></xsl:when>
        <xsl:when test=".='rt04'"><xsl:text>Rejected</xsl:text></xsl:when>
        <!-- rt05 – rt50 Not available for projects
        		 rt51 – rt55 Reserved for Army
        		 rt56 – rt99 Available for projects -->
        <xsl:otherwise><xsl:text>responseType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@securityClassification">

            <xsl:choose>
                <xsl:when test=".='01'"><xsl:text>Unclassified</xsl:text></xsl:when>
        		<!-- 02 Not available for projects -->
                <xsl:when test=".='02'"><xsl:text>Invalid Classification</xsl:text></xsl:when>
                <xsl:when test=".='03'"><xsl:text>Confidential</xsl:text></xsl:when>
                <xsl:when test=".='04'"><xsl:text>Secret</xsl:text></xsl:when>
                <xsl:when test=".='05'"><xsl:text>Top Secret</xsl:text></xsl:when>
                <!-- 06 - 10 Not available for projects
                		 11 - 50 Not available for projects
                		 51 – 99 Not available for projects -->
                <xsl:otherwise><xsl:text>securityClassification not defined</xsl:text></xsl:otherwise>
            </xsl:choose>
 
</xsl:template>

<xsl:template match="@significantParaDataType">
    <xsl:choose>
        <xsl:when test=".='psd01'"><xsl:text>Ammunition</xsl:text></xsl:when>
        <xsl:when test=".='psd02'"><xsl:text>Instruction disposition</xsl:text></xsl:when>
        <xsl:when test=".='psd03'"><xsl:text>Lubricant</xsl:text></xsl:when>
        <xsl:when test=".='psd04'"><xsl:text>Maintenance level</xsl:text></xsl:when>
        <xsl:when test=".='psd05'"><xsl:text>Manufacturer code</xsl:text></xsl:when>
        <xsl:when test=".='psd06'"><xsl:text>Manufacturers recommendation</xsl:text></xsl:when>
        <xsl:when test=".='psd07'"><xsl:text>Modification code</xsl:text></xsl:when>
        <xsl:when test=".='psd08'"><xsl:text>Qualification code</xsl:text></xsl:when>
        <xsl:when test=".='psd09'"><xsl:text>Training level</xsl:text></xsl:when>
        <xsl:when test=".='psd10'"><xsl:text>Control or indicator value</xsl:text></xsl:when>
        <!-- psd11 – psd50 Not available for projects -->
        <xsl:when test=".='psd51'"><xsl:text>Immediate emergency procedure checklist item</xsl:text></xsl:when>
        <xsl:when test=".='psd52'"><xsl:text>Placard</xsl:text></xsl:when>
        <xsl:when test=".='psd53'"><xsl:text>Test point</xsl:text></xsl:when>
        <xsl:when test=".='psd54'"><xsl:text>Critical safety item</xsl:text></xsl:when>
        <xsl:when test=".='psd55'"><xsl:text>Designator symbol</xsl:text></xsl:when>
        <xsl:when test=".='psd56'"><xsl:text>Graphical User Interface (GUI) item</xsl:text></xsl:when>
        <!-- psd57 – psd65 Reserved for Army
        		 psd66 – psd99 Available for projects -->
        <xsl:otherwise><xsl:text>significantParaDataType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@skillLevelCode">
    <xsl:choose>
        <xsl:when test=".='sk01'"><xsl:text>Basic</xsl:text></xsl:when>
        <xsl:when test=".='sk02'"><xsl:text>Intermediate</xsl:text></xsl:when>
        <xsl:when test=".='sk03'"><xsl:text>Advanced</xsl:text></xsl:when>
        <!-- sk04 – sk50 Not available for projects -->
        <xsl:when test=".='sk51'"><xsl:text>Skill level 1</xsl:text></xsl:when>
        <xsl:when test=".='sk52'"><xsl:text>Skill level 2</xsl:text></xsl:when>
        <xsl:when test=".='sk53'"><xsl:text>Skill level 3</xsl:text></xsl:when>
        <xsl:when test=".='sk54'"><xsl:text>Skill level 4</xsl:text></xsl:when>
        <xsl:when test=".='sk55'"><xsl:text>Skill level 5</xsl:text></xsl:when>
        <!-- sk56 – sk99 Reserved for Army -->
        <xsl:otherwise><xsl:text>skillLevelCode not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>


<xsl:template match="@skillType">
    <xsl:choose>
        <xsl:when test=".='st01'"><xsl:text>Airframe</xsl:text></xsl:when>
        <xsl:when test=".='st02'"><xsl:text>Electrical</xsl:text></xsl:when>
        <xsl:when test=".='st03'"><xsl:text>Avionic</xsl:text></xsl:when>
        <xsl:when test=".='st04'"><xsl:text>Engine</xsl:text></xsl:when>
        <!-- st05 – st50 Not available for projects -->
        <xsl:when test=".='st51'"><xsl:text>Structural</xsl:text></xsl:when>
        <xsl:when test=".='st52'"><xsl:text>Armament</xsl:text></xsl:when>
        <xsl:when test=".='st53'"><xsl:text>Mechanical</xsl:text></xsl:when>
        <!-- st54 – st60 Reserved for Army
        		 st61 – st99 Available for projects -->
        <xsl:otherwise><xsl:text>skillType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<!-- sourceCriticality
The attribute sourceCriticality shall not be used. -->

<!-- sourceTypeCode
The attribute sourceTypeCode shall not be used. -->

<xsl:template match="@submitCaption">
    <xsl:choose>
        <xsl:when test=".='ok01'"><xsl:text>Sets the caption to "OK"</xsl:text></xsl:when>
        <xsl:when test=".='ok02'"><xsl:text>Sets the caption to "SUBMIT"</xsl:text></xsl:when>
        <!-- ok03 Not available for projects -->
        <xsl:when test=".='ok04'"><xsl:text>Sets the caption to "CONTINUE"</xsl:text></xsl:when>
        <xsl:when test=".='ok05'"><xsl:text>Sets the caption to "EXIT"</xsl:text></xsl:when>
        <!-- ok06 – ok50 Not available for projects
        		 ok51 – ok99 Reserved for Army -->
        <xsl:otherwise><xsl:text>submitCaption not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<!-- supervisorLevelCode
The attribute supervisorLevelCode shall not be used. -->

<!-- taskCode
The attribute taskCode shall not be used. -->

<xsl:template match="@thresholdUnitOfMeasure">
    <xsl:choose>
        <xsl:when test=".='th01'"><xsl:text>Flight hours</xsl:text></xsl:when>
        <xsl:when test=".='th02'"><xsl:text>Flight cycles</xsl:text></xsl:when>
        <xsl:when test=".='th03'"><xsl:text>Months</xsl:text></xsl:when>
        <xsl:when test=".='th04'"><xsl:text>Weeks</xsl:text></xsl:when>
        <xsl:when test=".='th05'"><xsl:text>Years</xsl:text></xsl:when>
        <xsl:when test=".='th06'"><xsl:text>Days</xsl:text></xsl:when>
        <xsl:when test=".='th07'"><xsl:text>Supersonic cycles</xsl:text></xsl:when>
        <xsl:when test=".='th08'"><xsl:text>Pressure cycles</xsl:text></xsl:when>
        <xsl:when test=".='th09'"><xsl:text>Engine cycles</xsl:text></xsl:when>
        <xsl:when test=".='th10'"><xsl:text>Engine change</xsl:text></xsl:when>
        <xsl:when test=".='th11'"><xsl:text>Shop visits</xsl:text></xsl:when>
        <xsl:when test=".='th12'"><xsl:text>Auxiliary Power Unit (APU) charge</xsl:text></xsl:when>
        <xsl:when test=".='th13'"><xsl:text>Landing gear change</xsl:text></xsl:when>
        <xsl:when test=".='th14'"><xsl:text>Wheel change</xsl:text></xsl:when>
        <xsl:when test=".='th15'"><xsl:text>Engine start</xsl:text></xsl:when>
        <xsl:when test=".='th16'"><xsl:text>APU hours</xsl:text></xsl:when>
        <xsl:when test=".='th17'"><xsl:text>Engine hours</xsl:text></xsl:when>
        <xsl:when test=".='th18'"><xsl:text>Elapsed hours</xsl:text></xsl:when>
        <xsl:when test=".='th19'"><xsl:text>Landings</xsl:text></xsl:when>
        <xsl:when test=".='th20'"><xsl:text>Operating cycles</xsl:text></xsl:when>
        <xsl:when test=".='th21'"><xsl:text>Operating hours</xsl:text></xsl:when>
        <xsl:when test=".='th22'"><xsl:text>Supersonic hours</xsl:text></xsl:when>
        <xsl:when test=".='th23'"><xsl:text>A check</xsl:text></xsl:when>
        <xsl:when test=".='th24'"><xsl:text>B check</xsl:text></xsl:when>
        <xsl:when test=".='th25'"><xsl:text>C check</xsl:text></xsl:when>
        <xsl:when test=".='th26'"><xsl:text>D check</xsl:text></xsl:when>
        <xsl:when test=".='th27'"><xsl:text>Daily</xsl:text></xsl:when>
        <xsl:when test=".='th28'"><xsl:text>E check</xsl:text></xsl:when>
        <xsl:when test=".='th29'"><xsl:text>Overnight</xsl:text></xsl:when>
        <xsl:when test=".='th30'"><xsl:text>Preflight</xsl:text></xsl:when>
        <xsl:when test=".='th31'"><xsl:text>Routine check</xsl:text></xsl:when>
        <xsl:when test=".='th32'"><xsl:text>Structural "C" check</xsl:text></xsl:when>
        <xsl:when test=".='th33'"><xsl:text>Service check</xsl:text></xsl:when>
        <xsl:when test=".='th34'"><xsl:text>Transit</xsl:text></xsl:when>
        <!-- th35 – th50 Not available for projects -->
        <xsl:when test=".='th51'"><xsl:text>Rounds</xsl:text></xsl:when>
        <xsl:when test=".='th52'"><xsl:text>Underway/Steaming Hours</xsl:text></xsl:when>
        <xsl:when test=".='th53'"><xsl:text>Arrestments</xsl:text></xsl:when>
        <xsl:when test=".='th54'"><xsl:text>Catapults</xsl:text></xsl:when>
        <xsl:when test=".='th55'"><xsl:text>Message units</xsl:text></xsl:when>
        <xsl:when test=".='th56'"><xsl:text>Cycles</xsl:text></xsl:when>
        <xsl:when test=".='th57'"><xsl:text>Minutes</xsl:text></xsl:when>
        <xsl:when test=".='th58'"><xsl:text>Hours</xsl:text></xsl:when>
        <xsl:when test=".='th59'"><xsl:text>Kilometers</xsl:text></xsl:when>
        <xsl:when test=".='th60'"><xsl:text>Miles</xsl:text></xsl:when>
        <xsl:when test=".='th61'"><xsl:text>Starts</xsl:text></xsl:when>
        <xsl:when test=".='th62'"><xsl:text>Intermediate</xsl:text></xsl:when>
        <xsl:when test=".='th63'"><xsl:text>Periodic</xsl:text></xsl:when>
        <xsl:when test=".='th64'"><xsl:text>Before</xsl:text></xsl:when>
        <xsl:when test=".='th65'"><xsl:text>During</xsl:text></xsl:when>
        <xsl:when test=".='th66'"><xsl:text>After</xsl:text></xsl:when>
        <xsl:when test=".='th67'"><xsl:text>Weekly</xsl:text></xsl:when>
        <xsl:when test=".='th68'"><xsl:text>Monthly</xsl:text></xsl:when>
        <xsl:when test=".='th69'"><xsl:text>Quarterly</xsl:text></xsl:when>
        <xsl:when test=".='th70'"><xsl:text>Semiannually</xsl:text></xsl:when>
        <xsl:when test=".='th71'"><xsl:text>Annually</xsl:text></xsl:when>
        <xsl:when test=".='th72'"><xsl:text>Man-hour/day</xsl:text></xsl:when>
        <xsl:when test=".='th73'"><xsl:text>Phased</xsl:text></xsl:when>
        <xsl:when test=".='th74'"><xsl:text>Other</xsl:text></xsl:when>
        <!-- th75 – th79 Reserved for Army
        		 th80 – th99 Available for projects -->
        <xsl:otherwise><xsl:text>thresholdUnitOfMeasure not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@updateReasonType">
    <xsl:choose>
        <xsl:when test=".='urt01'"><xsl:text>Editorial change (authored/technical content changed, but technically changes are deemed insignificant)</xsl:text></xsl:when>
        <xsl:when test=".='urt02'"><xsl:text>Technical change (authored/technical content has changed, changes are significant and should be reviewed)</xsl:text></xsl:when>
        <xsl:when test=".='urt03'"><xsl:text>Markup change (changes are solely related to XML markup)</xsl:text></xsl:when>
        <xsl:when test=".='urt04'"><xsl:text>Applicability change (only the applicability has changed)</xsl:text></xsl:when>
        <xsl:when test=".='urt05'"><xsl:text>Unique identifier of the referencing structure has changed</xsl:text></xsl:when>
        <!-- urt06 – urt50 Not available for projects
        		 urt51 – urt55 Reserved for Army
        		 urt56 – urt99 Available for projects -->
        <xsl:otherwise><xsl:text>updateReasonType not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="@verbatimStyle">
    <xsl:choose>
        <xsl:when test=".='vs01'"><xsl:text>Generic verbatim</xsl:text></xsl:when>
        <xsl:when test=".='vs02'"><xsl:text>Filename</xsl:text></xsl:when>
        <!-- vs03 – vs10 Not available for projects -->
        <xsl:when test=".='vs11'"><xsl:text>XML/SGML markup</xsl:text></xsl:when>
        <xsl:when test=".='vs12'"><xsl:text>XML/SGML element name</xsl:text></xsl:when>
        <xsl:when test=".='vs13'"><xsl:text>XML/SGML attribute name</xsl:text></xsl:when>
        <xsl:when test=".='vs14'"><xsl:text>XML/SGML attribute value</xsl:text></xsl:when>
        <xsl:when test=".='vs15'"><xsl:text>XML/SGML entity name</xsl:text></xsl:when>
        <xsl:when test=".='vs16'"><xsl:text>XML/SGML processing instruction</xsl:text></xsl:when>
        <!-- vs17 – vs20 Not available for projects
        		 vs21 Not available for projects -->
        <xsl:when test=".='vs22'"><xsl:text>User input</xsl:text></xsl:when>
        <xsl:when test=".='vs23'"><xsl:text>Computer output</xsl:text></xsl:when>
        <xsl:when test=".='vs24'"><xsl:text>Program listing</xsl:text></xsl:when>
        <xsl:when test=".='vs25'"><xsl:text>Program variable name</xsl:text></xsl:when>
        <!-- vs26 Not available for projects -->
        <xsl:when test=".='vs27'"><xsl:text>Constant</xsl:text></xsl:when>
        <xsl:when test=".='vs28'"><xsl:text>Class name</xsl:text></xsl:when>
        <xsl:when test=".='vs29'"><xsl:text>Parameter name</xsl:text></xsl:when>
        <!-- vs30 – vs50 Not available for projects
        		 vs51 – vs55 Reserved for Army
        		 vs56 – vs99 Available for projects -->
        <xsl:otherwise><xsl:text>verbatimStyle not defined</xsl:text></xsl:otherwise>
    </xsl:choose>
</xsl:template>
</xsl:stylesheet>


/ gopher://khzae.net/0/s1000d/links/projects/3031/sample/PhunGun/CSDB/FO-3031-A00-S1000DGUN-ATTRIBUTES_001-00_EN-US.xsl
Styles: Light Dark Classic