Whamcloud - gitweb
LUDOC-475 quota: notes about lfs commands
[doc/manual.git] / style / customstyle_fo.xsl
index 32b5104..a689a92 100644 (file)
 <xsl:param name="autotoc.label.in.hyperlink" select="1"></xsl:param>
 <xsl:param name="section.label.includes.component.label" select="1"></xsl:param>
 
-<!--  textdecoration_1 applies the style to the text to highlight an region
-               of the documentation refers to a lustre specific version.
+<!-- TODO: ideally generalize customstyle_common.xsl suffeciently
+     so that is can be included in this file. Currently, this file
+        duplicates customerstyle_common.xsl with some minor differences. -->
 
-               template_{1,2,3} all use the 'condition="{l23,l24}" attributes and add
-               decoration to the rendered version of the manual to show lustre version
-               specific features. -->
-
-<!-- textdecoration_1: a template to highlight regions of text. -->
+<!-- textdecoration_1: a template to highlight regions of text.-->
 <xsl:template name='textdecoration_1'>
        <xsl:param name='version'/>
-       <xsl:param name='chunkid'/>
-       <fo:block-container id="{$chunkid}"
-                       padding='5pt'
-                       border-color='gray'
-                       border-style='solid'
-                       border-width='1pt'>
+       <xsl:param name='content'/>
+       <xsl:param name='id'/>
+       <fo:block id="{id}">
+       <fo:block-container
+               padding='5pt'
+               border-color='gray'
+               border-style='solid'
+               border-width='1pt'>
                <fo:block-container float='left' text-indent='3px' start-indent='-20px'>
                        <fo:block background-color="gray">
                                <xsl:value-of select='$version'/>
                        </fo:block>
                </fo:block-container>
                <fo:block text-indent='0px' start-indent='0px'>
-                       <xsl:apply-templates/>
+                       <xsl:copy-of select="$content"/>
                </fo:block>
-       </fo:block-container>
+               </fo:block-container>
+       </fo:block>
 </xsl:template>
 
-
 <!-- mychapter definition This has been copied from xsl-ns-stylesheets/fo/component.xsl 
        and modified to provide highlight regions of text for an entire chapter. 
        This is consistent with the high-lighting provided by textdecoration_1 !-->
 <!-- conditional matching template: this calls text decoration
           template with the correct variables. -->
 <xsl:template match="*[@condition]">
+        <xsl:param name="content">
+                <xsl:apply-imports/>
+        </xsl:param>
     <xsl:variable name="id">
         <xsl:call-template name="object.id"/>
     </xsl:variable>
        <xsl:variable name="versionstr">
                <xsl:choose>
-                       <xsl:when test="@condition = 'l21'">Introduced in Lustre 2.1</xsl:when>
-                       <xsl:when test="@condition = 'l22'">Introduced in Lustre 2.2</xsl:when>
-                       <xsl:when test="@condition = 'l23'">Introduced in Lustre 2.3</xsl:when>
                        <xsl:when test="@condition = 'l24'">Introduced in Lustre 2.4</xsl:when>
                        <xsl:when test="@condition = 'l25'">Introduced in Lustre 2.5</xsl:when>
                        <xsl:when test="@condition = 'l26'">Introduced in Lustre 2.6</xsl:when>
                        <xsl:when test="@condition = 'l27'">Introduced in Lustre 2.7</xsl:when>
                        <xsl:when test="@condition = 'l28'">Introduced in Lustre 2.8</xsl:when>
                        <xsl:when test="@condition = 'l29'">Introduced in Lustre 2.9</xsl:when>
+                       <xsl:when test="@condition = 'l2A'">Introduced in Lustre 2.10</xsl:when>
+                       <xsl:when test="@condition = 'l2B'">Introduced in Lustre 2.11</xsl:when>
+                       <xsl:when test="@condition = 'l2C'">Introduced in Lustre 2.12</xsl:when>
+                       <xsl:when test="@condition = 'l2D'">Introduced in Lustre 2.13</xsl:when>
+                       <xsl:when test="@condition = 'l2E'">Introduced in Lustre 2.14</xsl:when>
+                       <xsl:when test="@condition = 'l2F'">Introduced in Lustre 2.15</xsl:when>
+                       <xsl:when test="@condition = 'l2G'">Introduced in Lustre 2.16</xsl:when>
                        <xsl:otherwise>Documentation Error: unrecognised condition attribute</xsl:otherwise>
                </xsl:choose>
        </xsl:variable>
                <xsl:otherwise>
             <xsl:call-template name='textdecoration_1'>
                 <xsl:with-param name='version' select="$versionstr"/>
+                               <xsl:with-param name='content' select="$content"/>
                 <xsl:with-param name='chunkid' select="$id"/>
             </xsl:call-template>
                </xsl:otherwise>
        </xsl:variable>
        <xsl:variable name="lustrecond">
                <xsl:choose>
-                       <xsl:when test="@condition='l21'">L 2.1</xsl:when>
-                       <xsl:when test="@condition='l22'">L 2.2</xsl:when>
                        <xsl:when test="@condition='l23'">L 2.3</xsl:when>
                        <xsl:when test="@condition='l24'">L 2.4</xsl:when>
                        <xsl:when test="@condition='l25'">L 2.5</xsl:when>
                        <xsl:when test="@condition='l27'">L 2.7</xsl:when>
                        <xsl:when test="@condition='l28'">L 2.8</xsl:when>
                        <xsl:when test="@condition='l29'">L 2.9</xsl:when>
+                       <xsl:when test="@condition='l2A'">L 2.10</xsl:when>
+                       <xsl:when test="@condition='l2B'">L 2.11</xsl:when>
+                       <xsl:when test="@condition='l2C'">L 2.12</xsl:when>
+                       <xsl:when test="@condition='l2D'">L 2.13</xsl:when>
                        <xsl:otherwise></xsl:otherwise>
                </xsl:choose>
        </xsl:variable>