- Timestamp:
- 10/08/2013 08:03:29 PM (11 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 58675ce
- Parents:
- 09a35dd
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/chunk-code.xsl
r09a35dd r15c7d39 5 5 6 6 <!-- ******************************************************************** 7 $Id $7 $Id: chunk-code.xsl 9328 2012-05-03 16:28:23Z bobstayton $ 8 8 ******************************************************************** 9 9 … … 50 50 <xsl:call-template name="dbhtml-dir"/> 51 51 </xsl:if> 52 53 <xsl:value-of select="$chunked.filename.prefix"/> 52 54 53 55 <xsl:value-of select="$fn"/> … … 250 252 </xsl:when> 251 253 <xsl:otherwise> 254 <xsl:if test="/set"> 255 <!-- in a set, make sure we inherit the right book info... --> 256 <xsl:apply-templates mode="recursive-chunk-filename" select="parent::*"> 257 <xsl:with-param name="recursive" select="true()"/> 258 </xsl:apply-templates> 259 </xsl:if> 252 260 </xsl:otherwise> 253 261 </xsl:choose> … … 355 363 </xsl:when> 356 364 365 <xsl:when test="self::topic"> 366 <xsl:choose> 367 <xsl:when test="/set"> 368 <!-- in a set, make sure we inherit the right book info... --> 369 <xsl:apply-templates mode="recursive-chunk-filename" select="parent::*"> 370 <xsl:with-param name="recursive" select="true()"/> 371 </xsl:apply-templates> 372 </xsl:when> 373 <xsl:otherwise> 374 </xsl:otherwise> 375 </xsl:choose> 376 377 <xsl:text>to</xsl:text> 378 <xsl:number level="any" format="01" from="book"/> 379 <xsl:if test="not($recursive)"> 380 <xsl:value-of select="$html.ext"/> 381 </xsl:if> 382 </xsl:when> 383 357 384 <xsl:otherwise> 358 385 <xsl:text>chunk-filename-error-</xsl:text> … … 395 422 </xsl:template> 396 423 424 <!-- Leave legalnotice chunk out of the list for Next and Prev --> 425 <xsl:template match="legalnotice" mode="find.chunks"/> 426 397 427 <xsl:template match="/"> 398 428 <!-- * Get a title for current doc so that we let the user --> … … 405 435 toss the namespace and continue. Use the docbook5 namespaced 406 436 stylesheets for DocBook5 if you don't want to use this feature.--> 407 <!-- include extra test for Xalan quirk --> 408 <xsl:when test="(function-available('exsl:node-set') or contains(system-property('xsl:vendor'), 'Apache Software Foundation')) and (*/self::ng:* or */self::db:*)"> 409 <xsl:call-template name="log.message"> 410 <xsl:with-param name="level">Note</xsl:with-param> 411 <xsl:with-param name="source" select="$doc.title"/> 412 <xsl:with-param name="context-desc"> 413 <xsl:text>namesp. cut</xsl:text> 414 </xsl:with-param> 415 <xsl:with-param name="message"> 416 <xsl:text>stripped namespace before processing</xsl:text> 417 </xsl:with-param> 418 </xsl:call-template> 419 <xsl:variable name="nons"> 420 <xsl:apply-templates mode="stripNS"/> 421 </xsl:variable> 437 <xsl:when test="$exsl.node.set.available != 0 and (*/self::ng:* or */self::db:*)"> 438 422 439 <xsl:call-template name="log.message"> 423 440 <xsl:with-param name="level">Note</xsl:with-param> … … 430 447 </xsl:with-param> 431 448 </xsl:call-template> 432 <xsl:apply-templates select="exsl:node-set($nons)"/> 449 450 <xsl:apply-templates select="exsl:node-set($no.namespace)"/> 433 451 </xsl:when> 434 452 <!-- Can't process unless namespace removed --> … … 491 509 <xsl:template match="*" mode="process.root"> 492 510 <xsl:apply-templates select="."/> 511 <xsl:call-template name="generate.css.files"/> 493 512 </xsl:template> 494 513 495 514 <!-- ====================================================================== --> 496 515 497 <xsl:template match="set|book|part|preface|chapter|appendix |article | reference|refentry |book/glossary|article/glossary|part/glossary |book/bibliography|article/bibliography|part/bibliography |colophon">516 <xsl:template match="set|book|part|preface|chapter|appendix |article |topic |reference|refentry |book/glossary|article/glossary|part/glossary |book/bibliography|article/bibliography|part/bibliography |colophon"> 498 517 <xsl:choose> 499 518 <xsl:when test="$onechunk != 0 and parent::*"> … … 559 578 560 579 <!-- ==================================================================== --> 561 <xsl:template match="set|book|part|preface|chapter|appendix |article | reference|refentry |sect1|sect2|sect3|sect4|sect5 |section |book/glossary|article/glossary|part/glossary |book/bibliography|article/bibliography|part/bibliography |colophon" mode="enumerate-files">580 <xsl:template match="set|book|part|preface|chapter|appendix |article |topic |reference|refentry |sect1|sect2|sect3|sect4|sect5 |section |book/glossary|article/glossary|part/glossary |book/bibliography|article/bibliography|part/bibliography |colophon" mode="enumerate-files"> 562 581 <xsl:variable name="ischunk"><xsl:call-template name="chunk"/></xsl:variable> 563 582 <xsl:if test="$ischunk='1'"> … … 565 584 <xsl:with-param name="base.dir"> 566 585 <xsl:if test="$manifest.in.base.dir = 0"> 567 <xsl:value-of select="$ base.dir"/>586 <xsl:value-of select="$chunk.base.dir"/> 568 587 </xsl:if> 569 588 </xsl:with-param> … … 585 604 <xsl:with-param name="base.dir"> 586 605 <xsl:if test="$manifest.in.base.dir = 0"> 587 <xsl:value-of select="$ base.dir"/>606 <xsl:value-of select="$chunk.base.dir"/> 588 607 </xsl:if> 589 608 </xsl:with-param> … … 605 624 <xsl:with-param name="base.dir"> 606 625 <xsl:if test="$manifest.in.base.dir = 0"> 607 <xsl:value-of select="$ base.dir"/>626 <xsl:value-of select="$chunk.base.dir"/> 608 627 </xsl:if> 609 628 </xsl:with-param>
Note:
See TracChangeset
for help on using the changeset viewer.