.. / download
<?xml version='1.0'?>
<xsl:stylesheet version="1.1" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:fo="http://www.w3.org/1999/XSL/Format"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   <!-- 8/26/11 - kr - added reference to column-title attributes for column titles -->
   
    <!--MIL-STD-3031A, para 5.77.2.1 Use of technical information repository.
    The project shall decide whether or not to require the delivery of technical information repository
    data modules (as additional data).-->
    
    <xsl:template match="techRepository">
        <xsl:apply-templates/>
    </xsl:template>
    
    <xsl:template match="controlIndicatorRepository">
        <xsl:apply-templates/>
    </xsl:template>

    <xsl:template match="controlIndicatorGroup">
        <xsl:apply-templates select="figure"></xsl:apply-templates>
        <fo:block span="all">
            <xsl:if test="@id">
                <xsl:attribute name="id">
                    <xsl:value-of disable-output-escaping="no" select="@id"/>
                </xsl:attribute>
            </xsl:if>
            <fo:table-and-caption span="all">
                <fo:table-caption>
                    <fo:block font-size="10pt" font-weight="bold"
                        keep-with-previous.within-column="always"
                        keep-with-previous.within-page="always" space-after.maximum="10pt"
                        space-after.minimum="10pt" space-after.optimum="10pt"
                        space-before.maximum="12pt" space-before.minimum="8pt"
                        space-before.optimum="10pt" span="all" text-align="center">
                        <xsl:text disable-output-escaping="no">Table </xsl:text>
                        <xsl:call-template name="number-tables"/>
                        <xsl:text disable-output-escaping="no">  </xsl:text>
                        <xsl:value-of select="figure/title"/>
                    </fo:block>
                </fo:table-caption>
                <fo:table width="7.0in" border-bottom="solid" border-bottom-width=".5pt"
                    border-left="solid" border-left-width=".5pt" border-right="solid"
                    border-right-width=".5pt" border-top="solid" border-top-width=".5pt"
                    font-size="8pt" margin-bottom="8pt" margin-left="3pt"
                    margin-right="3pt" margin-top="8pt" padding-bottom="3pt" padding-left="3pt"
                    padding-right="3pt" relative-position="static" space-after.maximum="12pt"
                    space-after.minimum="12pt" space-after.optimum="12pt"
                    space-before.maximum="14pt" space-before.minimum="12pt"
                    space-before.optimum="12pt" span="all" table-layout="fixed"
                    table-omit-header-at-break="false" text-align="left"
                    white-space-treatment="preserve">
                    <fo:table-column column-number="1" column-width="10%"/>
                    <fo:table-column column-number="2" column-width="25%"/>
                    <fo:table-column column-number="3" column-width="65%"/>
                    <fo:table-header text-align="center">
                        <fo:table-row xsl:use-attribute-sets="column-title" border-bottom="solid" border-bottom-width=".5pt">
                            <fo:table-cell border-left="solid" border-left-width=".5pt" border-right="solid"
                                border-right-width=".5pt" padding-bottom="4pt" padding-top="4pt">
                                <fo:block>Key</fo:block>
                            </fo:table-cell>
                            <fo:table-cell border-left="solid" border-left-width=".5pt" border-right="solid"
                                border-right-width=".5pt" padding-bottom="4pt" padding-top="4pt">
                                <fo:block>Control/Indicator</fo:block>
                            </fo:table-cell>
                            <fo:table-cell border-left="solid" border-left-width=".5pt" border-right="solid"
                                border-right-width=".5pt" padding-bottom="4pt" padding-top="4pt">
                                <fo:block>Function</fo:block>
                            </fo:table-cell>
                        </fo:table-row>
                    </fo:table-header>                    
                    <fo:table-body>
                        <xsl:for-each select="child::controlIndicatorSpec">
                        <fo:table-row>
                            <fo:table-cell border-left="solid black" border-left-width=".5pt" padding-after="4pt"
                                padding-before="4pt">
                                <fo:block space-after="2mm" space-before="2mm" start-indent="2mm" end-indent="2mm">
                                    <xsl:value-of select="descendant::controlIndicatorKey"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border-left="solid black" border-left-width=".5pt" padding-after="4pt"
                                padding-before="4pt">
                                <fo:block space-after="2mm" space-before="2mm" start-indent="2mm" end-indent="2mm">
                                    <xsl:value-of select="descendant::controlIndicatorName"/>
                                </fo:block>
                            </fo:table-cell>
                            <fo:table-cell border-left="solid black" border-left-width=".5pt" padding-after="4pt"
                                padding-before="4pt">           
                                    <xsl:for-each select="descendant::controlIndicatorFunction">
                                        <fo:block space-after="2mm" space-before="2mm" start-indent="2mm" end-indent="2mm">
                                        <xsl:value-of select="self::controlIndicatorFunction"/>
                                        </fo:block>
                                    </xsl:for-each>
                            </fo:table-cell>
                        </fo:table-row>
                        </xsl:for-each> 
                    </fo:table-body>
                </fo:table>
            </fo:table-and-caption>
        </fo:block>
    </xsl:template>

    <xsl:template match="controlIndicatorSpec"/>
       
    <xsl:template match="controlIndicatorKey"/>
        
    <xsl:template match="controlIndicatorName"/>
        
    <xsl:template match="controlIndicatorDescr"/>
       
    <xsl:template match="controlIndicatorFunction"/>
       
</xsl:stylesheet>

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