Changeset f7bd105 for stylesheets/xhtml/lfs-titles.xsl
- Timestamp:
- 12/19/2004 09:17:48 PM (20 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, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- faf3398
- Parents:
- 6d3af72
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/xhtml/lfs-titles.xsl
r6d3af72 rf7bd105 8 8 <div class="titlepage"> 9 9 <h1 class="{name(.)}"> 10 <xsl:apply-templates select="." mode="label.markup"/> 11 <xsl:text>. </xsl:text> 10 12 <xsl:value-of select="title"/> 11 13 </h1> … … 16 18 <div class="titlepage"> 17 19 <h1 class="{name(.)}"> 20 <xsl:apply-templates select="." mode="label.markup"/> 21 <xsl:text>. </xsl:text> 18 22 <xsl:value-of select="title"/> 19 23 </h1> … … 24 28 <div class="titlepage"> 25 29 <h1 class="{name(.)}"> 30 <xsl:value-of select="title"/> 31 </h1> 32 </div> 33 </xsl:template> 34 35 <xsl:template name="appendix.titlepage"> 36 <div class="titlepage"> 37 <h1 class="{name(.)}"> 38 <xsl:apply-templates select="." mode="label.markup"/> 39 <xsl:text>. </xsl:text> 26 40 <xsl:value-of select="title"/> 27 41 </h1> … … 38 52 </xsl:if> 39 53 <h2 class="{name(.)}"> 54 <xsl:apply-templates select="." mode="label.markup"/> 55 <xsl:text>. </xsl:text> 40 56 <xsl:value-of select="title"/> 41 57 </h2> … … 45 61 <div class="titlepage"> 46 62 <h1 class="{name(.)}"> 63 <xsl:apply-templates select="." mode="label.markup"/> 64 <xsl:text>. </xsl:text> 47 65 <xsl:value-of select="title"/> 48 66 </h1> … … 61 79 </xsl:if> 62 80 <h2 class="{name(.)}"> 81 <xsl:apply-templates select="." mode="label.markup"/> 82 <xsl:text>. </xsl:text> 63 83 <xsl:value-of select="title"/> 64 84 </h2> … … 76 96 </xsl:template> 77 97 98 <!-- Added the role param for proper punctuation in xref calls. --> 99 <xsl:template match="*" mode="insert.title.markup"> 100 <xsl:param name="purpose"/> 101 <xsl:param name="xrefstyle"/> 102 <xsl:param name="title"/> 103 <xsl:param name="role"/> 104 <xsl:choose> 105 <xsl:when test="$purpose = 'xref' and titleabbrev"> 106 <xsl:apply-templates select="." mode="titleabbrev.markup"/> 107 </xsl:when> 108 <xsl:otherwise> 109 <xsl:copy-of select="$title"/> 110 <xsl:value-of select="$role"/> 111 </xsl:otherwise> 112 </xsl:choose> 113 </xsl:template> 114 78 115 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.