Changeset 15c7d39 for stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/callout.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, 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/mips64el, 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/callout.xsl
r09a35dd r15c7d39 9 9 10 10 <!-- ******************************************************************** 11 $Id $11 $Id: callout.xsl 9668 2012-11-28 00:47:59Z bobstayton $ 12 12 ******************************************************************** 13 13 … … 85 85 86 86 <xsl:template match="co"> 87 <fo:inline> 88 <xsl:call-template name="anchor"/> 89 <xsl:apply-templates select="." mode="callout-bug"/> 90 </fo:inline> 87 <xsl:param name="coref"/> 88 <!-- link to the callout? --> 89 <xsl:variable name="linkend"> 90 <xsl:choose> 91 <!-- if more than one target, choose the first --> 92 <xsl:when test="contains(normalize-space(@linkends), ' ')"> 93 <xsl:value-of select="substring-before(normalize-space(@linkends), ' ')"/> 94 </xsl:when> 95 <xsl:when test="string-length(normalize-space(@linkends)) != 0"> 96 <xsl:value-of select="normalize-space(@linkends)"/> 97 </xsl:when> 98 <xsl:otherwise> 99 </xsl:otherwise> 100 </xsl:choose> 101 </xsl:variable> 102 103 <xsl:choose> 104 <xsl:when test="string-length($linkend) != 0"> 105 <fo:basic-link internal-destination="{$linkend}"> 106 <xsl:choose> 107 <xsl:when test="$coref"> 108 <xsl:call-template name="anchor"> 109 <xsl:with-param name="node" select="$coref"/> 110 <xsl:with-param name="conditional" select="0"/> 111 </xsl:call-template> 112 </xsl:when> 113 <xsl:otherwise> 114 <xsl:call-template name="anchor"> 115 <xsl:with-param name="conditional" select="0"/> 116 </xsl:call-template> 117 </xsl:otherwise> 118 </xsl:choose> 119 <xsl:apply-templates select="." mode="callout-bug"/> 120 </fo:basic-link> 121 </xsl:when> 122 <xsl:otherwise> 123 <fo:inline> 124 <xsl:choose> 125 <xsl:when test="$coref"> 126 <xsl:call-template name="anchor"> 127 <xsl:with-param name="node" select="$coref"/> 128 <xsl:with-param name="conditional" select="0"/> 129 </xsl:call-template> 130 </xsl:when> 131 <xsl:otherwise> 132 <xsl:call-template name="anchor"> 133 <xsl:with-param name="conditional" select="0"/> 134 </xsl:call-template> 135 </xsl:otherwise> 136 </xsl:choose> 137 <xsl:apply-templates select="." mode="callout-bug"/> 138 </fo:inline> 139 </xsl:otherwise> 140 </xsl:choose> 91 141 </xsl:template> 92 142 93 143 <xsl:template match="coref"> 94 <!-- t ricky; this relies on the fact that we can process the "co" that's -->144 <!-- this relies on the fact that we can process the "co" that's --> 95 145 <!-- "over there" as if it were "right here" --> 96 146 … … 110 160 </xsl:when> 111 161 <xsl:otherwise> 112 < fo:inline>113 <xsl:call-template name="anchor"/>114 <xsl: apply-templates select="$co" mode="callout-bug"/>115 </ fo:inline>162 <!-- process it as if it were the co itself --> 163 <xsl:apply-templates select="$co"> 164 <xsl:with-param name="coref" select="."/> 165 </xsl:apply-templates> 116 166 </xsl:otherwise> 117 167 </xsl:choose> … … 144 194 <xsl:attribute name="src"> 145 195 <xsl:choose> 146 <xsl:when test="$passivetex.extensions != 0 147 or $fop.extensions != 0 196 <xsl:when test="$fop.extensions != 0 148 197 or $arbortext.extensions != 0"> 149 198 <xsl:value-of select="$filename"/> … … 175 224 <xsl:when test="$conum = 9">❾</xsl:when> 176 225 <xsl:when test="$conum = 10">❿</xsl:when> 226 <xsl:when test="$conum = 11">⓫</xsl:when> 227 <xsl:when test="$conum = 12">⓬</xsl:when> 228 <xsl:when test="$conum = 13">⓭</xsl:when> 229 <xsl:when test="$conum = 14">⓮</xsl:when> 230 <xsl:when test="$conum = 15">⓯</xsl:when> 231 <xsl:when test="$conum = 16">⓰</xsl:when> 232 <xsl:when test="$conum = 17">⓱</xsl:when> 233 <xsl:when test="$conum = 18">⓲</xsl:when> 234 <xsl:when test="$conum = 19">⓳</xsl:when> 235 <xsl:when test="$conum = 20">⓴</xsl:when> 236 </xsl:choose> 237 </xsl:when> 238 <xsl:when test="$callout.unicode.start.character = 9312"> 239 <xsl:choose> 240 <xsl:when test="$conum = 1">①</xsl:when> 241 <xsl:when test="$conum = 2">②</xsl:when> 242 <xsl:when test="$conum = 3">③</xsl:when> 243 <xsl:when test="$conum = 4">④</xsl:when> 244 <xsl:when test="$conum = 5">⑤</xsl:when> 245 <xsl:when test="$conum = 6">⑥</xsl:when> 246 <xsl:when test="$conum = 7">⑦</xsl:when> 247 <xsl:when test="$conum = 8">⑧</xsl:when> 248 <xsl:when test="$conum = 9">⑨</xsl:when> 249 <xsl:when test="$conum = 10">⑩</xsl:when> 250 <xsl:when test="$conum = 11">⑪</xsl:when> 251 <xsl:when test="$conum = 12">⑫</xsl:when> 252 <xsl:when test="$conum = 13">⑬</xsl:when> 253 <xsl:when test="$conum = 14">⑭</xsl:when> 254 <xsl:when test="$conum = 15">⑮</xsl:when> 255 <xsl:when test="$conum = 16">⑯</xsl:when> 256 <xsl:when test="$conum = 17">⑰</xsl:when> 257 <xsl:when test="$conum = 18">⑱</xsl:when> 258 <xsl:when test="$conum = 19">⑲</xsl:when> 259 <xsl:when test="$conum = 20">⑳</xsl:when> 177 260 </xsl:choose> 178 261 </xsl:when>
Note:
See TracChangeset
for help on using the changeset viewer.