Changeset b1a51ac1 for stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/synop.xsl
- Timestamp:
- 12/10/2013 11:37:38 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 112db9d
- Parents:
- f2a5108
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/synop.xsl
rf2a5108 rb1a51ac1 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.