Changeset e34c9dae
- Timestamp:
- 11/29/2022 06:17:49 PM (22 months ago)
- Branches:
- 11.3, 12.0, 12.1, 12.2, gimp3, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128, xry111/xf86-video-removal
- Children:
- 75fee1b
- Parents:
- 3f2db3a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/xhtml/lfs-sections.xsl
r3f2db3a6 re34c9dae 81 81 <!-- sect1: 82 82 When there is a role attibute, use it as the class value. 83 Process the SVN keywords found in sect1info as a footnote. 84 Removed unused code. --> 85 <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl --> 86 <xsl:template match="sect1"> 87 <div> 88 <xsl:choose> 89 <xsl:when test="@role"> 90 <xsl:attribute name="class"> 91 <xsl:value-of select="@role"/> 92 </xsl:attribute> 93 </xsl:when> 94 <xsl:otherwise> 95 <xsl:apply-templates select="." mode="class.attribute"/> 96 </xsl:otherwise> 97 </xsl:choose> 98 <xsl:call-template name="language.attribute"/> 99 <xsl:call-template name="sect1.titlepage"/> 100 <xsl:apply-templates/> 101 <xsl:apply-templates select="sect1info" mode="svn-keys"/> 102 </div> 103 </xsl:template> 104 105 <!-- sect2: 106 When there is a role attibute, use it as the class value. 107 Removed unused code. --> 108 <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl --> 109 <xsl:template match="sect2"> 110 <div> 111 <xsl:choose> 112 <xsl:when test="@role"> 113 <xsl:attribute name="class"> 114 <xsl:value-of select="@role"/> 115 </xsl:attribute> 116 </xsl:when> 117 <xsl:otherwise> 118 <xsl:attribute name="class"> 119 <xsl:value-of select="name(.)"/> 120 </xsl:attribute> 121 </xsl:otherwise> 122 </xsl:choose> 123 <xsl:call-template name="language.attribute"/> 124 <xsl:call-template name="sect2.titlepage"/> 125 <xsl:apply-templates/> 126 </div> 127 </xsl:template> 128 129 <!-- sect3: treat as sect2 (for Python and Perl modules 130 When there is a role attibute, use it as the class value. 131 Removed unused code. --> 132 <!-- The original template is in {docbook-xsl}/xhtml/sections.xsl --> 133 <xsl:template match="sect3"> 134 <div> 135 <xsl:choose> 136 <xsl:when test="@role"> 137 <xsl:attribute name="class"> 138 <xsl:value-of select="@role"/> 139 </xsl:attribute> 140 </xsl:when> 141 <xsl:otherwise> 142 <xsl:attribute name="class"> 143 <xsl:value-of select="name(.)"/> 144 </xsl:attribute> 145 </xsl:otherwise> 146 </xsl:choose> 147 <xsl:call-template name="language.attribute"/> 148 <xsl:call-template name="sect3.titlepage"/> 149 <xsl:apply-templates/> 150 </div> 151 </xsl:template> 152 153 <!-- sect1info mode svn-keys: 154 Self-made template to process SVN keywords found in sect1info. --> 155 <xsl:template match="sect1info" mode="svn-keys"> 156 <!-- <p class="updated">Last updated --><!-- by 157 <xsl:apply-templates select="othername" mode="svn-keys"/> --> 158 <!-- on 159 <xsl:apply-templates select="date" mode="svn-keys"/> 160 </p> --> 161 </xsl:template> 162 163 <!-- othername mode svn-keys: 164 Self-made template to process the $LastChangedBy SVN keyword. --> 165 <xsl:template match="othername" mode="svn-keys"> 166 <xsl:variable name="author"> 167 <xsl:value-of select="."/> 168 </xsl:variable> 169 <xsl:variable name="nameonly"> 170 <xsl:value-of select="substring($author,16)"/> 171 </xsl:variable> 172 <xsl:value-of select="substring-before($nameonly,'$')"/> 173 </xsl:template> 174 175 <!-- date mode svn-keys: 176 Self-made template to process the $Date SVN keyword. --> 177 <xsl:template match="date" mode="svn-keys"> 178 <xsl:variable name="date"> 179 <xsl:value-of select="."/> 180 </xsl:variable> 181 <xsl:value-of select="substring($date,7,26)"/> 182 </xsl:template> 183 184 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.