Changeset d10f81a
- Timestamp:
- Apr 23, 2011, 3:29:49 PM (14 years ago)
- Children:
- 9db1668
- Parents:
- 5c560cb
- Location:
- BOOK
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/stylesheets/clfs-profile.xsl
r5c560cb rd10f81a 182 182 </xsl:text> 183 183 184 <!-- c:install -> sect2: For each c:install build a sect2 section --> 185 <xsl:for-each select="c:install"> 186 <xsl:element name="sect2"> 187 <xsl:text> 188 </xsl:text> 189 <xsl:element name="title"> 190 <xsl:text>Installing</xsl:text> 191 </xsl:element> 192 <xsl:text> 193 194 </xsl:text> 195 <xsl:choose> 196 <xsl:when test="$bits = '32'"> 197 <xsl:apply-templates select="@*|node()" mode="filter-bits-32" /> 198 </xsl:when> 199 <xsl:when test="$bits = 'n32'"> 200 <xsl:apply-templates select="@*|node()" mode="filter-bits-n32" /> 201 </xsl:when> 202 <xsl:when test="$bits = '64'"> 203 <xsl:apply-templates select="@*|node()" mode="filter-bits-64" /> 204 </xsl:when> 205 </xsl:choose> 206 <xsl:text> 207 </xsl:text> 208 </xsl:element> 209 </xsl:for-each><!-- c:install -> sect2 --> 210 211 <!-- New Line x2 --> 212 <xsl:text> 213 214 </xsl:text> 215 184 216 </xsl:element><!-- Sect1 --> 185 186 <!-- 187 <xsl:for-each select="sect1"> 188 189 <xsl:copy> 190 191 <xsl:attribute name="id"> 192 <xsl:value-of select="concat($id, $idsuffix)" /> 193 </xsl:attribute> 194 195 <xsl:processing-instruction name="dbhtml"> 196 <xsl:text>filename="</xsl:text> 197 <xsl:value-of select="concat($id, $idsuffix)" /> 198 <xsl:text>.html"</xsl:text> 199 </xsl:processing-instruction> 200 201 <xsl:variable name="titlesuffix"> 202 <xsl:if test="contains($clfs.multilib, ',') and ($multibuild = 'true')"> 203 <xsl:choose> 204 <xsl:when test="$bits = '32'"> 205 <xsl:text>32Bit</xsl:text> 206 </xsl:when> 207 <xsl:when test="$bits = 'n32'"> 208 <xsl:text>N32</xsl:text> 209 </xsl:when> 210 <xsl:when test="$bits = '64'"> 211 <xsl:text>64Bit</xsl:text> 212 </xsl:when> 213 </xsl:choose> 214 </xsl:if> 215 </xsl:variable> 216 217 <xsl:for-each select="title"> 218 <xsl:element name="title"> 219 <xsl:copy-of select="@*|node()" /> 220 <xsl:if test="string-length($titlesuffix) > 0"> 221 <xsl:text> - </xsl:text> 222 <xsl:value-of select="$titlesuffix"/> 217 218 </xsl:template><!-- package-stub --> 219 220 <!-- Apply the profile to the 32bit package --> 221 222 <xsl:template match="c:para" mode="filter-bits-32"> 223 <xsl:variable name="ismultilib"> 224 <xsl:choose> 225 <xsl:when test="contains($clfs.multilib, ',')"> 226 <xsl:text>true</xsl:text> 227 </xsl:when> 228 <xsl:otherwise> 229 <xsl:text>false</xsl:text> 230 </xsl:otherwise> 231 </xsl:choose> 232 </xsl:variable> 233 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 234 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 235 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 236 <xsl:element name="para"> 237 <xsl:apply-templates select="@*|node()" mode="filter-bits-32" /> 238 </xsl:element> 239 </xsl:if> 240 </xsl:if> 241 </xsl:if> 242 </xsl:template> 243 244 <xsl:template match="c:install/c:command" mode="filter-bits-32"> 245 <xsl:variable name="ismultilib"> 246 <xsl:choose> 247 <xsl:when test="contains($clfs.multilib, ',')"> 248 <xsl:text>true</xsl:text> 249 </xsl:when> 250 <xsl:otherwise> 251 <xsl:text>false</xsl:text> 252 </xsl:otherwise> 253 </xsl:choose> 254 </xsl:variable> 255 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 256 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 257 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 258 <xsl:element name="userinput"> 259 <xsl:if test="@c:nodump = 'true'"> 260 <xsl:attribute name="role"> 261 <xsl:text>nodump</xsl:text> 262 </xsl:attribute> 223 263 </xsl:if> 224 </xsl:element> 225 </xsl:for-each> 226 227 <xsl:element name="indexterm"> 228 <xsl:attribute name="zone"> 229 <xsl:value-of select="concat($id, $idsuffix)" /> 230 </xsl:attribute> 231 <xsl:element name="primary"> 232 <xsl:attribute name="sortas"> 233 <xsl:text>a-</xsl:text> 234 <xsl:value-of select="title" /> 235 </xsl:attribute> 236 <xsl:value-of select="title" /> 237 </xsl:element> 238 <xsl:if test="string-length($titlesuffix) > 0"> 239 <xsl:element name="secondary"> 240 <xsl:value-of select="$titlesuffix" /> 264 <xsl:element name="screen"> 265 <xsl:apply-templates select="@*|node()" mode="filter-bits-32" /> 241 266 </xsl:element> 242 </xsl:if> 243 </xsl:element> 244 245 <xsl:choose> 246 <xsl:when test="$bits = '32'"> 247 <xsl:apply-templates select="@*|node()[not(self::title)]" mode="filter-bits-32" /> 248 </xsl:when> 249 <xsl:when test="$bits = 'n32'"> 250 <xsl:apply-templates select="@*|node()[not(self::title)]" mode="filter-bits-n32" /> 251 </xsl:when> 252 <xsl:when test="$bits = '64'"> 253 <xsl:apply-templates select="@*|node()[not(self::title)]" mode="filter-bits-64" /> 254 </xsl:when> 255 </xsl:choose> 256 257 </xsl:copy> 258 259 </xsl:for-each> 260 --> 261 262 </xsl:template> 263 264 <!-- Apply the profile to the 32bit package --> 265 266 <xsl:template match="@*|node()" mode="filter-bits-32"> 267 </xsl:element> 268 </xsl:if> 269 </xsl:if> 270 </xsl:if> 271 </xsl:template> 272 273 <xsl:template match="c:literal" mode="filter-bits-32"> 267 274 <xsl:variable name="ismultilib"> 268 275 <xsl:choose> … … 278 285 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 279 286 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',32,')"> 280 <xsl: copy>287 <xsl:element name="literal"> 281 288 <xsl:apply-templates select="@*|node()" mode="filter-bits-32" /> 282 </xsl: copy>289 </xsl:element> 283 290 </xsl:if> 284 291 </xsl:if> … … 291 298 292 299 <!-- Apply the profile to the n32 package --> 293 294 <xsl:template match=" @*|node()" mode="filter-bits-n32">300 301 <xsl:template match="c:para" mode="filter-bits-n32"> 295 302 <xsl:variable name="ismultilib"> 296 303 <xsl:choose> … … 306 313 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 307 314 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 308 <xsl: copy>315 <xsl:element name="para"> 309 316 <xsl:apply-templates select="@*|node()" mode="filter-bits-n32" /> 310 </xsl:copy> 317 </xsl:element> 318 </xsl:if> 319 </xsl:if> 320 </xsl:if> 321 </xsl:template> 322 323 <xsl:template match="c:install/c:command" mode="filter-bits-n32"> 324 <xsl:variable name="ismultilib"> 325 <xsl:choose> 326 <xsl:when test="contains($clfs.multilib, ',')"> 327 <xsl:text>true</xsl:text> 328 </xsl:when> 329 <xsl:otherwise> 330 <xsl:text>false</xsl:text> 331 </xsl:otherwise> 332 </xsl:choose> 333 </xsl:variable> 334 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 335 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 336 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 337 <xsl:element name="userinput"> 338 <xsl:if test="@c:nodump = 'true'"> 339 <xsl:attribute name="role"> 340 <xsl:text>nodump</xsl:text> 341 </xsl:attribute> 342 </xsl:if> 343 <xsl:element name="screen"> 344 <xsl:apply-templates select="@*|node()" mode="filter-bits-n32" /> 345 </xsl:element> 346 </xsl:element> 347 </xsl:if> 348 </xsl:if> 349 </xsl:if> 350 </xsl:template> 351 352 <xsl:template match="c:literal" mode="filter-bits-n32"> 353 <xsl:variable name="ismultilib"> 354 <xsl:choose> 355 <xsl:when test="contains($clfs.multilib, ',')"> 356 <xsl:text>true</xsl:text> 357 </xsl:when> 358 <xsl:otherwise> 359 <xsl:text>false</xsl:text> 360 </xsl:otherwise> 361 </xsl:choose> 362 </xsl:variable> 363 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 364 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 365 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',n32,')"> 366 <xsl:element name="literal"> 367 <xsl:apply-templates select="@*|node()" mode="filter-bits-n32" /> 368 </xsl:element> 311 369 </xsl:if> 312 370 </xsl:if> … … 319 377 320 378 <!-- Apply the profile to the 64bit package --> 321 322 <xsl:template match=" @*|node()" mode="filter-bits-64">379 380 <xsl:template match="c:para" mode="filter-bits-64"> 323 381 <xsl:variable name="ismultilib"> 324 382 <xsl:choose> … … 334 392 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 335 393 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 336 <xsl: copy>394 <xsl:element name="para"> 337 395 <xsl:apply-templates select="@*|node()" mode="filter-bits-64" /> 338 </xsl:copy> 396 </xsl:element> 397 </xsl:if> 398 </xsl:if> 399 </xsl:if> 400 </xsl:template> 401 402 <xsl:template match="c:install/c:command" mode="filter-bits-64"> 403 <xsl:variable name="ismultilib"> 404 <xsl:choose> 405 <xsl:when test="contains($clfs.multilib, ',')"> 406 <xsl:text>true</xsl:text> 407 </xsl:when> 408 <xsl:otherwise> 409 <xsl:text>false</xsl:text> 410 </xsl:otherwise> 411 </xsl:choose> 412 </xsl:variable> 413 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 414 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 415 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 416 <xsl:element name="userinput"> 417 <xsl:if test="@c:nodump = 'true'"> 418 <xsl:attribute name="role"> 419 <xsl:text>nodump</xsl:text> 420 </xsl:attribute> 421 </xsl:if> 422 <xsl:element name="screen"> 423 <xsl:apply-templates select="@*|node()" mode="filter-bits-64" /> 424 </xsl:element> 425 </xsl:element> 426 </xsl:if> 427 </xsl:if> 428 </xsl:if> 429 </xsl:template> 430 431 <xsl:template match="c:literal" mode="filter-bits-64"> 432 <xsl:variable name="ismultilib"> 433 <xsl:choose> 434 <xsl:when test="contains($clfs.multilib, ',')"> 435 <xsl:text>true</xsl:text> 436 </xsl:when> 437 <xsl:otherwise> 438 <xsl:text>false</xsl:text> 439 </xsl:otherwise> 440 </xsl:choose> 441 </xsl:variable> 442 <xsl:if test="(string-length(@c:arch) = 0) or contains(concat(',',@c:arch,','), concat(',', $clfs.arch, ','))"> 443 <xsl:if test="(string-length(@c:multilib) = 0) or contains(concat(',',@c:multilib,','), concat(',', $ismultilib, ','))"> 444 <xsl:if test="(string-length(@c:bits) = 0) or contains(concat(',',@c:bits,','), ',64,')"> 445 <xsl:element name="literal"> 446 <xsl:apply-templates select="@*|node()" mode="filter-bits-64" /> 447 </xsl:element> 339 448 </xsl:if> 340 449 </xsl:if> -
BOOK/testpart.xml
r5c560cb rd10f81a 63 63 </c:package> 64 64 65 66 65 <c:package id="ch-system-test" c:multibuild="true"> 67 66 <c:title>TestPackage</c:title>
Note:
See TracChangeset
for help on using the changeset viewer.