Changeset 2611a3b for stylesheets
- Timestamp:
- 01/04/2005 02:18:22 PM (19 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:
- ecc9beb
- Parents:
- 746781c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/xhtml/lfs-mixed.xsl
r746781c r2611a3b 94 94 </a> 95 95 </xsl:template> 96 97 <!-- The <code> xhtml tag have look issues in some browsers, like Konqueror and. 98 isn't semantically correct (a filename isn't a code fragment) We will use <tt> for now. --> 99 <xsl:template name="inline.monoseq"> 100 <xsl:param name="content"> 101 <xsl:call-template name="anchor"/> 102 <xsl:call-template name="simple.xlink"> 103 <xsl:with-param name="content"> 104 <xsl:apply-templates/> 105 </xsl:with-param> 106 </xsl:call-template> 107 </xsl:param> 108 <tt class="{local-name(.)}"> 109 <xsl:if test="@dir"> 110 <xsl:attribute name="dir"> 111 <xsl:value-of select="@dir"/> 112 </xsl:attribute> 113 </xsl:if> 114 <xsl:copy-of select="$content"/> 115 </tt> 116 </xsl:template> 117 118 <xsl:template name="inline.boldmonoseq"> 119 <xsl:param name="content"> 120 <xsl:call-template name="anchor"/> 121 <xsl:call-template name="simple.xlink"> 122 <xsl:with-param name="content"> 123 <xsl:apply-templates/> 124 </xsl:with-param> 125 </xsl:call-template> 126 </xsl:param> 127 <!-- don't put <strong> inside figure, example, or table titles --> 128 <!-- or other titles that may already be represented with <strong>'s. --> 129 <xsl:choose> 130 <xsl:when test="local-name(..) = 'title' and (local-name(../..) = 'figure' 131 or local-name(../..) = 'example' or local-name(../..) = 'table' or local-name(../..) = 'formalpara')"> 132 <tt class="{local-name(.)}"> 133 <xsl:if test="@dir"> 134 <xsl:attribute name="dir"> 135 <xsl:value-of select="@dir"/> 136 </xsl:attribute> 137 </xsl:if> 138 <xsl:copy-of select="$content"/> 139 </tt> 140 </xsl:when> 141 <xsl:otherwise> 142 <strong class="{local-name(.)}"> 143 <tt> 144 <xsl:if test="@dir"> 145 <xsl:attribute name="dir"> 146 <xsl:value-of select="@dir"/> 147 </xsl:attribute> 148 </xsl:if> 149 <xsl:copy-of select="$content"/> 150 </tt> 151 </strong> 152 </xsl:otherwise> 153 </xsl:choose> 154 </xsl:template> 155 156 <xsl:template name="inline.italicmonoseq"> 157 <xsl:param name="content"> 158 <xsl:call-template name="anchor"/> 159 <xsl:call-template name="simple.xlink"> 160 <xsl:with-param name="content"> 161 <xsl:apply-templates/> 162 </xsl:with-param> 163 </xsl:call-template> 164 </xsl:param> 165 <em class="{local-name(.)}"> 166 <tt> 167 <xsl:if test="@dir"> 168 <xsl:attribute name="dir"> 169 <xsl:value-of select="@dir"/> 170 </xsl:attribute> 171 </xsl:if> 172 <xsl:copy-of select="$content"/> 173 </tt> 174 </em> 175 </xsl:template> 96 176 97 177
Note:
See TracChangeset
for help on using the changeset viewer.