Changeset 15c7d39 for stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/synop.xsl
- 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/multilib, 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/fo/synop.xsl
r09a35dd r15c7d39 9 9 10 10 <!-- ******************************************************************** 11 $Id $11 $Id: synop.xsl 8334 2009-03-15 14:26:23Z mzjn $ 12 12 ******************************************************************** 13 13 … … 163 163 164 164 <xsl:template match="funcprototype"> 165 166 <xsl:variable name="style"> 167 <xsl:call-template name="funcsynopsis.style"/> 168 </xsl:variable> 169 165 170 <fo:block font-family="{$monospace.font.family}" 166 171 space-before.minimum="0.8em" … … 168 173 space-before.maximum="1.2em"> 169 174 <xsl:apply-templates/> 170 <xsl:if test="$funcsynopsis.style='kr'"> 175 176 <xsl:if test="$style='kr'"> 171 177 <fo:block 172 178 space-before.minimum="0.8em" … … 176 182 </fo:block> 177 183 </xsl:if> 184 178 185 </fo:block> 179 186 </xsl:template> … … 199 206 200 207 <xsl:template match="void"> 208 209 <xsl:variable name="style"> 210 <xsl:call-template name="funcsynopsis.style"/> 211 </xsl:variable> 212 201 213 <xsl:choose> 202 <xsl:when test="$ funcsynopsis.style='ansi'">214 <xsl:when test="$style='ansi'"> 203 215 <xsl:text>(void);</xsl:text> 204 216 </xsl:when> … … 214 226 215 227 <xsl:template match="paramdef"> 228 229 <xsl:variable name="style"> 230 <xsl:call-template name="funcsynopsis.style"/> 231 </xsl:variable> 232 216 233 <xsl:variable name="paramnum"> 217 234 <xsl:number count="paramdef" format="1"/> … … 219 236 <xsl:if test="$paramnum=1">(</xsl:if> 220 237 <xsl:choose> 221 <xsl:when test="$ funcsynopsis.style='ansi'">238 <xsl:when test="$style='ansi'"> 222 239 <xsl:apply-templates/> 223 240 </xsl:when> … … 261 278 <xsl:apply-templates/> 262 279 <xsl:text>)</xsl:text> 280 </xsl:template> 281 282 <!-- Return value of PI or parameter --> 283 <xsl:template name="funcsynopsis.style"> 284 <xsl:variable name="pi.style"> 285 <xsl:call-template name="pi.dbfo_funcsynopsis-style"> 286 <xsl:with-param name="node" select="ancestor::funcsynopsis/descendant-or-self::*"/> 287 </xsl:call-template> 288 </xsl:variable> 289 290 <xsl:choose> 291 <xsl:when test="$pi.style != ''"> 292 <xsl:value-of select="$pi.style"/> 293 </xsl:when> 294 <xsl:otherwise> 295 <xsl:value-of select="$funcsynopsis.style"/> 296 </xsl:otherwise> 297 </xsl:choose> 263 298 </xsl:template> 264 299 … … 940 975 </xsl:template> 941 976 977 <!-- Used when not occurring as a child of classsynopsis --> 978 <xsl:template match="ooclass|oointerface|ooexception"> 979 <xsl:apply-templates/> 980 </xsl:template> 981 942 982 <!-- ==================================================================== --> 943 983
Note:
See TracChangeset
for help on using the changeset viewer.