Changeset 5c560cb for BOOK/stylesheets
- Timestamp:
- Apr 23, 2011, 2:45:35 PM (14 years ago)
- Children:
- d10f81a
- Parents:
- 5f27dfa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/clfs-profile.xsl
r5f27dfa r5c560cb 72 72 <xsl:param name="bits" /> <!-- Which bit sizes to create a package for --> 73 73 <xsl:param name="multibuild" /> <!-- Are there multiple instances of this package? --> 74 74 75 <!-- Translate the package into a sect1 --> 76 <xsl:element name="sect1"> 77 78 <!-- Set the ID of the target Sect1 --> 79 <xsl:attribute name="id"> 80 <xsl:value-of select="concat($id, $idsuffix)" /> 81 </xsl:attribute> 82 83 <!-- New Line --> 84 <xsl:text> 85 </xsl:text> 86 87 <!-- Set the Target Filename --> 88 <xsl:processing-instruction name="dbhtml"> 89 <xsl:text>filename="</xsl:text> 90 <xsl:value-of select="concat($id, $idsuffix)" /> 91 <xsl:text>.html"</xsl:text> 92 </xsl:processing-instruction> 93 94 <!-- New Line x2 --> 95 <xsl:text> 96 97 </xsl:text> 98 99 <!-- Determine if the title is going to have a suffix or not --> 100 <xsl:variable name="titlesuffix"> 101 <xsl:if test="contains($clfs.multilib, ',') and ($multibuild = 'true')"> 102 <xsl:choose> 103 <xsl:when test="$bits = '32'"> 104 <xsl:text>32Bit</xsl:text> 105 </xsl:when> 106 <xsl:when test="$bits = 'n32'"> 107 <xsl:text>N32</xsl:text> 108 </xsl:when> 109 <xsl:when test="$bits = '64'"> 110 <xsl:text>64Bit</xsl:text> 111 </xsl:when> 112 </xsl:choose> 113 </xsl:if> 114 </xsl:variable> 115 116 <!-- title: Write out a new title tag --> 117 <xsl:element name="title"> 118 <xsl:value-of select="c:title" /> 119 <xsl:text>-</xsl:text> 120 <xsl:value-of select="c:version" /> 121 <xsl:if test="string-length($titlesuffix) > 0"> 122 <xsl:text> - </xsl:text> 123 <xsl:value-of select="$titlesuffix"/> 124 </xsl:if> 125 </xsl:element><!-- title --> 126 127 <!-- New Line x2 --> 128 <xsl:text> 129 130 </xsl:text> 131 132 <!-- indexterm: Add the Intex Entry for this package --> 133 <xsl:element name="indexterm"> 134 <xsl:attribute name="zone"> 135 <xsl:value-of select="concat($id, $idsuffix)" /> 136 </xsl:attribute> 137 <xsl:text> 138 </xsl:text> 139 <xsl:element name="primary"> 140 <xsl:attribute name="sortas"> 141 <xsl:text>a-</xsl:text> 142 <xsl:value-of select="c:title" /> 143 </xsl:attribute> 144 <xsl:value-of select="c:title" /> 145 </xsl:element> 146 <xsl:if test="string-length($titlesuffix) > 0"> 147 <xsl:text> 148 </xsl:text> 149 <xsl:element name="secondary"> 150 <xsl:value-of select="$titlesuffix" /> 151 </xsl:element> 152 </xsl:if> 153 <xsl:text> 154 </xsl:text> 155 </xsl:element><!-- indexterm --> 156 157 <!-- New Line x2 --> 158 <xsl:text> 159 160 </xsl:text> 161 162 <!-- sect2[role="installation"]: Add the sect2 for the package header --> 163 <xsl:element name="sect2"> 164 <xsl:attribute name="role"> 165 <xsl:text>installation</xsl:text> 166 </xsl:attribute> 167 <xsl:text> 168 </xsl:text> 169 <xsl:element name="title" /> 170 <xsl:text> 171 </xsl:text> 172 <xsl:element name="para"> 173 <xsl:copy-of select="c:description/@*|c:description/node()" /> 174 </xsl:element> 175 <xsl:text> 176 </xsl:text> 177 </xsl:element> 178 179 <!-- New Line x2 --> 180 <xsl:text> 181 182 </xsl:text> 183 184 </xsl:element><!-- Sect1 --> 185 186 <!-- 75 187 <xsl:for-each select="sect1"> 76 188 … … 146 258 147 259 </xsl:for-each> 260 --> 148 261 149 262 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.