| 1 |
<?xml version='1.0'?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
<!DOCTYPE xsl:transform [ |
| 8 |
|
| 9 |
<!ENTITY rbl " "> |
| 10 |
<!ENTITY quotedblleft "“"> |
| 11 |
<!ENTITY quotedblright "”"> |
| 12 |
<!ENTITY bullet "•"> |
| 13 |
]> |
| 14 |
|
| 15 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 16 |
xmlns:fo="http://www.w3.org/1999/XSL/Format" |
| 17 |
version='1.0'> |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
<xsl:template match="*[contains(@class,' topic/xtitlealts ')]"> |
| 29 |
<fo:block background-color="#f0f0d0"> |
| 30 |
<xsl:attribute name="border-style">solid</xsl:attribute> |
| 31 |
<xsl:attribute name="border-color">black</xsl:attribute> |
| 32 |
<xsl:attribute name="border-width">thin</xsl:attribute> |
| 33 |
<xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute> |
| 34 |
<xsl:attribute name="start-indent"><xsl:value-of select="$basic-start-indent"/></xsl:attribute> |
| 35 |
<xsl:apply-templates/> |
| 36 |
</fo:block> |
| 37 |
</xsl:template> |
| 38 |
|
| 39 |
<xsl:template match="*[contains(@class,' topic/navtitle ')]"> |
| 40 |
<fo:block> |
| 41 |
<fo:inline font-weight="bold">Navigation title: </fo:inline> |
| 42 |
<xsl:apply-templates/> |
| 43 |
</fo:block> |
| 44 |
</xsl:template> |
| 45 |
|
| 46 |
<xsl:template match="*[contains(@class,' topic/searchtitle ')]"> |
| 47 |
<fo:block> |
| 48 |
<fo:inline font-weight="bold">Search title: </fo:inline> |
| 49 |
<xsl:apply-templates/> |
| 50 |
</fo:block> |
| 51 |
</xsl:template> |
| 52 |
|
| 53 |
|
| 54 |
<xsl:template match="*[contains(@class,' topic/abstract ')]" mode="outofline"> |
| 55 |
<fo:block xsl:use-attribute-sets="p" start-indent="{$basic-start-indent}"> |
| 56 |
<xsl:apply-templates/> |
| 57 |
</fo:block> |
| 58 |
</xsl:template> |
| 59 |
|
| 60 |
|
| 61 |
<xsl:template match="*[contains(@class,' topic/abstract ')]"> |
| 62 |
<xsl:if test="not(following-sibling::*[contains(@class,' topic/body ')])"> |
| 63 |
<xsl:apply-templates select="." mode="outofline"/> |
| 64 |
</xsl:if> |
| 65 |
</xsl:template> |
| 66 |
|
| 67 |
|
| 68 |
<xsl:template match="*[contains(@class,' topic/shortdesc ')]" mode="outofline"> |
| 69 |
<fo:block xsl:use-attribute-sets="p" start-indent="{$basic-start-indent}"> |
| 70 |
<xsl:apply-templates/> |
| 71 |
</fo:block> |
| 72 |
</xsl:template> |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
<xsl:template match="*[contains(@class,' topic/shortdesc ')]"> |
| 77 |
<xsl:choose> |
| 78 |
<xsl:when test="parent::*[contains(@class, ' topic/abstract ')]"> |
| 79 |
<xsl:apply-templates select="." mode="outofline"/> |
| 80 |
</xsl:when> |
| 81 |
<xsl:when test="not(following-sibling::*[contains(@class,' topic/body ')])"> |
| 82 |
<xsl:apply-templates select="." mode="outofline"/> |
| 83 |
</xsl:when> |
| 84 |
<xsl:otherwise></xsl:otherwise> |
| 85 |
</xsl:choose> |
| 86 |
</xsl:template> |
| 87 |
|
| 88 |
<xsl:template match="*[contains(@class,' topic/xshortdesc ')]"> |
| 89 |
<fo:block start-indent="{$basic-start-indent}" background-color="#F0C0F0"> |
| 90 |
<fo:block background-color="red">The <shortdesc> element is also reflected following the prolog.</fo:block> |
| 91 |
<xsl:apply-templates/> |
| 92 |
</fo:block> |
| 93 |
</xsl:template> |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
<xsl:template match="*[contains(@class,' topic/body ')]" name="topbody" priority="3"> |
| 100 |
<fo:block start-indent="{$basic-start-indent}"> |
| 101 |
<xsl:attribute name="font-size">10pt</xsl:attribute> |
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
<xsl:apply-templates select="preceding-sibling::*[contains(@class,' topic/abstract ')]" mode="outofline"/> |
| 107 |
|
| 108 |
<xsl:apply-templates select="preceding-sibling::*[contains(@class,' topic/shortdesc ')]" mode="outofline"/> |
| 109 |
<xsl:apply-templates/> |
| 110 |
</fo:block> |
| 111 |
</xsl:template> |
| 112 |
|
| 113 |
|
| 114 |
<xsl:template match="*[contains(@class,' topic/body ')]"> |
| 115 |
<fo:block start-indent="{$basic-start-indent}"> |
| 116 |
<xsl:attribute name="font-size">10pt</xsl:attribute> |
| 117 |
|
| 118 |
|
| 119 |
<xsl:apply-templates select="preceding-sibling::*[contains(@class,' topic/abstract ')]" mode="outofline"/> |
| 120 |
|
| 121 |
<xsl:apply-templates select="preceding-sibling::*[contains(@class,' topic/shortdesc ')]" mode="outofline"/> |
| 122 |
<xsl:apply-templates/> |
| 123 |
</fo:block> |
| 124 |
</xsl:template> |
| 125 |
|
| 126 |
<xsl:template match="*[contains(@class,' topic/section ')]"> |
| 127 |
<fo:block line-height="12pt"> |
| 128 |
<xsl:attribute name="space-before">0.6em</xsl:attribute> |
| 129 |
<xsl:attribute name="font-size">10pt</xsl:attribute> |
| 130 |
|
| 131 |
<xsl:call-template name="gen-toc-id"/> |
| 132 |
|
| 133 |
<xsl:apply-templates/> |
| 134 |
</fo:block> |
| 135 |
</xsl:template> |
| 136 |
|
| 137 |
|
| 138 |
<xsl:template match="*[contains(@class,' topic/example ')]"> |
| 139 |
<fo:block line-height="12pt"> |
| 140 |
<xsl:attribute name="space-before">0.6em</xsl:attribute> |
| 141 |
<xsl:attribute name="font-size">10pt</xsl:attribute> |
| 142 |
|
| 143 |
<xsl:call-template name="gen-toc-id"/> |
| 144 |
|
| 145 |
<xsl:apply-templates/> |
| 146 |
</fo:block> |
| 147 |
</xsl:template> |
| 148 |
|
| 149 |
|
| 150 |
<xsl:template match="*[contains(@class,' topic/p ')]"> |
| 151 |
|
| 152 |
<xsl:choose> |
| 153 |
<xsl:when test="descendant::*[contains(@class,' topic/pre ')]"> |
| 154 |
<xsl:call-template name="divlikepara"/> |
| 155 |
</xsl:when> |
| 156 |
<xsl:when test="descendant::*[contains(@class,' topic/ul ')]"> |
| 157 |
<xsl:call-template name="divlikepara"/> |
| 158 |
</xsl:when> |
| 159 |
<xsl:when test="descendant::*[contains(@class,' topic/ol ')]"> |
| 160 |
<xsl:call-template name="divlikepara"/> |
| 161 |
</xsl:when> |
| 162 |
<xsl:when test="descendant::*[contains(@class,' topic/lq ')]"> |
| 163 |
<xsl:call-template name="divlikepara"/> |
| 164 |
</xsl:when> |
| 165 |
<xsl:when test="descendant::*[contains(@class,' topic/dl ')]"> |
| 166 |
<xsl:call-template name="divlikepara"/> |
| 167 |
</xsl:when> |
| 168 |
<xsl:when test="descendant::*[contains(@class,' topic/note ')]"> |
| 169 |
<xsl:call-template name="divlikepara"/> |
| 170 |
</xsl:when> |
| 171 |
<xsl:when test="descendant::*[contains(@class,' topic/lines ')]"> |
| 172 |
<xsl:call-template name="divlikepara"/> |
| 173 |
</xsl:when> |
| 174 |
<xsl:when test="descendant::*[contains(@class,' topic/fig ')]"> |
| 175 |
<xsl:call-template name="divlikepara"/> |
| 176 |
</xsl:when> |
| 177 |
<xsl:when test="descendant::*[contains(@class,' topic/table ')]"> |
| 178 |
<xsl:call-template name="divlikepara"/> |
| 179 |
</xsl:when> |
| 180 |
<xsl:when test="descendant::*[contains(@class,' topic/simpletable ')]"> |
| 181 |
<xsl:call-template name="divlikepara"/> |
| 182 |
</xsl:when> |
| 183 |
<xsl:otherwise> |
| 184 |
<fo:block xsl:use-attribute-sets="p"> |
| 185 |
<xsl:if test="string(@id)"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></xsl:if> |
| 186 |
<xsl:apply-templates/> |
| 187 |
</fo:block> |
| 188 |
</xsl:otherwise> |
| 189 |
</xsl:choose> |
| 190 |
</xsl:template> |
| 191 |
|
| 192 |
<xsl:template name="divlikepara"> |
| 193 |
<fo:block xsl:use-attribute-sets="divlike.p"> |
| 194 |
<xsl:apply-templates/> |
| 195 |
</fo:block> |
| 196 |
</xsl:template> |
| 197 |
|
| 198 |
<xsl:template match="*[contains(@class,' topic/note ')]"> |
| 199 |
<fo:block> |
| 200 |
|
| 201 |
|
| 202 |
<fo:inline border-left-width="0pt" border-right-width="0pt" font-weight="bold"> |
| 203 |
|
| 204 |
<xsl:choose> |
| 205 |
<xsl:when test="@type='note'"> |
| 206 |
<xsl:call-template name="getString"> |
| 207 |
<xsl:with-param name="stringName" select="'Note'"/> |
| 208 |
</xsl:call-template> |
| 209 |
</xsl:when> |
| 210 |
<xsl:when test="@type='tip'"> |
| 211 |
<xsl:call-template name="proc-ing"/> |
| 212 |
<xsl:call-template name="getString"> |
| 213 |
<xsl:with-param name="stringName" select="'Tip'"/> |
| 214 |
</xsl:call-template> |
| 215 |
</xsl:when> |
| 216 |
<xsl:when test="@type='fastpath'"> |
| 217 |
<xsl:call-template name="getString"> |
| 218 |
<xsl:with-param name="stringName" select="'Fastpath'"/> |
| 219 |
</xsl:call-template> |
| 220 |
</xsl:when> |
| 221 |
<xsl:when test="@type='restriction'"> |
| 222 |
<xsl:call-template name="getString"> |
| 223 |
<xsl:with-param name="stringName" select="'Restriction'"/> |
| 224 |
</xsl:call-template> |
| 225 |
</xsl:when> |
| 226 |
<xsl:when test="@type='important'">> |
| 227 |
<xsl:call-template name="getString"> |
| 228 |
<xsl:with-param name="stringName" select="'Important'"/> |
| 229 |
</xsl:call-template> |
| 230 |
</xsl:when> |
| 231 |
<xsl:when test="@type='remember'"> |
| 232 |
<xsl:call-template name="getString"> |
| 233 |
<xsl:with-param name="stringName" select="'Remember'"/> |
| 234 |
</xsl:call-template> |
| 235 |
</xsl:when> |
| 236 |
<xsl:when test="@type='attention'"> |
| 237 |
<xsl:call-template name="getString"> |
| 238 |
<xsl:with-param name="stringName" select="'Attention'"/> |
| 239 |
</xsl:call-template> |
| 240 |
</xsl:when> |
| 241 |
<xsl:when test="@type='caution'"> |
| 242 |
<xsl:call-template name="getString"> |
| 243 |
<xsl:with-param name="stringName" select="'Caution'"/> |
| 244 |
</xsl:call-template> |
| 245 |
</xsl:when> |
| 246 |
<xsl:when test="@type='danger'"> |
| 247 |
<xsl:call-template name="getString"> |
| 248 |
<xsl:with-param name="stringName" select="'Danger'"/> |
| 249 |
</xsl:call-template> |
| 250 |
</xsl:when> |
| 251 |
<xsl:when test="@type='other'"> |
| 252 |
<xsl:choose> |
| 253 |
<xsl:when test="@othertype"> |
| 254 |
|
| 255 |
<xsl:value-of select="@othertype"/> |
| 256 |
</xsl:when> |
| 257 |
<xsl:otherwise> |
| 258 |
[<xsl:value-of select="@type"/>] |
| 259 |
</xsl:otherwise> |
| 260 |
</xsl:choose> |
| 261 |
</xsl:when> |
| 262 |
<xsl:otherwise> |
| 263 |
<xsl:text>Note</xsl:text> |
| 264 |
</xsl:otherwise> |
| 265 |
</xsl:choose><xsl:text>: </xsl:text> |
| 266 |
</fo:inline><xsl:text> </xsl:text> |
| 267 |
<xsl:apply-templates/> |
| 268 |
</fo:block> |
| 269 |
</xsl:template> |
| 270 |
|
| 271 |
|
| 272 |
<xsl:template match="*[contains(@class,' topic/desc ')]"> |
| 273 |
<fo:inline border-left-width="0pt" border-right-width="0pt"> |
| 274 |
<xsl:apply-templates/> |
| 275 |
</fo:inline> |
| 276 |
</xsl:template> |
| 277 |
|
| 278 |
|
| 279 |
<xsl:template match="*[contains(@class,' topic/lq ')]"> |
| 280 |
<fo:block xsl:use-attribute-sets="lq"> |
| 281 |
|
| 282 |
|
| 283 |
<xsl:apply-templates/> |
| 284 |
<xsl:choose> |
| 285 |
<xsl:when test="@href"> |
| 286 |
<fo:block text-align="right"><xsl:value-of select="@href"/>, |
| 287 |
<xsl:value-of select="@reftitle"/></fo:block> |
| 288 |
</xsl:when> |
| 289 |
<xsl:when test="@reftitle"> |
| 290 |
<fo:block text-align="right"><xsl:value-of select="@reftitle"/></fo:block> |
| 291 |
</xsl:when> |
| 292 |
<xsl:otherwise></xsl:otherwise> |
| 293 |
</xsl:choose> |
| 294 |
</fo:block> |
| 295 |
</xsl:template> |
| 296 |
|
| 297 |
|
| 298 |
<xsl:template match="*[contains(@class,' topic/q ')]"> |
| 299 |
<fo:inline border-left-width="0pt" border-right-width="0pt"> |
| 300 |
"edblleft;<xsl:apply-templates />"edblright; |
| 301 |
</fo:inline> |
| 302 |
</xsl:template> |
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
<xsl:template match="*[contains(@class,' topic/fig ')]"> |
| 310 |
<fo:block xsl:use-attribute-sets="fig"> |
| 311 |
|
| 312 |
|
| 313 |
<xsl:if test="@id"> |
| 314 |
<xsl:apply-templates select="@id"/> |
| 315 |
</xsl:if> |
| 316 |
<xsl:call-template name="setframe"/> |
| 317 |
<xsl:if test="@expanse = 'page'"> |
| 318 |
<xsl:attribute name="start-indent">-<xsl:value-of select="$basic-start-indent"/></xsl:attribute> |
| 319 |
</xsl:if> |
| 320 |
|
| 321 |
<xsl:apply-templates/> |
| 322 |
</fo:block> |
| 323 |
</xsl:template> |
| 324 |
|
| 325 |
|
| 326 |
<xsl:template match="*[contains(@class,' topic/figgroup ')]"> |
| 327 |
<fo:inline border-left-width="0pt" border-right-width="0pt"> |
| 328 |
|
| 329 |
|
| 330 |
<xsl:apply-templates/> |
| 331 |
</fo:inline> |
| 332 |
</xsl:template> |
| 333 |
|
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
<xsl:template match="*[contains(@class,' topic/pre ')]"> |
| 338 |
<xsl:call-template name="gen-att-label"/> |
| 339 |
<fo:block xsl:use-attribute-sets="pre"> |
| 340 |
|
| 341 |
|
| 342 |
<xsl:call-template name="setscale"/> |
| 343 |
<xsl:call-template name="setframe"/> |
| 344 |
<xsl:apply-templates/> |
| 345 |
</fo:block> |
| 346 |
</xsl:template> |
| 347 |
|
| 348 |
<xsl:template match="*[contains(@class,' topic/lines ')]"> |
| 349 |
<xsl:call-template name="gen-att-label"/> |
| 350 |
<fo:block xsl:use-attribute-sets="lines"> |
| 351 |
|
| 352 |
|
| 353 |
<xsl:call-template name="setscale"/> |
| 354 |
<xsl:call-template name="setframe"/> |
| 355 |
<xsl:apply-templates/> |
| 356 |
</fo:block> |
| 357 |
</xsl:template> |
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
<xsl:template match="*[contains(@class,' topic/term ')]"> |
| 364 |
<fo:inline border-left-width="0pt" border-right-width="0pt"> |
| 365 |
|
| 366 |
|
| 367 |
<xsl:apply-templates/> |
| 368 |
</fo:inline> |
| 369 |
</xsl:template> |
| 370 |
|
| 371 |
|
| 372 |
<xsl:template match="*[contains(@class,' topic/ph ')]"> |
| 373 |
<fo:inline border-left-width="0pt" border-right-width="0pt"> |
| 374 |
|
| 375 |
|
| 376 |
|
| 377 |
<xsl:apply-templates/> |
| 378 |
</fo:inline> |
| 379 |
</xsl:template> |
| 380 |
|
| 381 |
|
| 382 |
|
| 383 |
<xsl:template match="*[contains(@class,' topic/tm ')]"> |
| 384 |
<fo:inline border-left-width="0pt" border-right-width="0pt"> |
| 385 |
|
| 386 |
|
| 387 |
<xsl:apply-templates/> |
| 388 |
<fo:inline baseline-shift="super" font-size="75%"> |
| 389 |
<xsl:choose> |
| 390 |
<xsl:when test="@tmtype='tm'">(TM)</xsl:when> |
| 391 |
<xsl:when test="@tmtype='reg'">(R)</xsl:when> |
| 392 |
<xsl:when test="@tmtype='service'">(SM)</xsl:when> |
| 393 |
<xsl:otherwise> |
| 394 |
<xsl:text>Error in tm type.</xsl:text> |
| 395 |
</xsl:otherwise> |
| 396 |
</xsl:choose> |
| 397 |
</fo:inline> |
| 398 |
</fo:inline> |
| 399 |
</xsl:template> |
| 400 |
|
| 401 |
|
| 402 |
<xsl:template match="*[contains(@class,' topic/boolean ')]"> |
| 403 |
<fo:inline border-left-width="0pt" border-right-width="0pt" color="green"> |
| 404 |
|
| 405 |
|
| 406 |
<xsl:value-of select="name()"/><xsl:text>: </xsl:text><xsl:value-of select="@state"/> |
| 407 |
</fo:inline> |
| 408 |
</xsl:template> |
| 409 |
|
| 410 |
|
| 411 |
<xsl:template match="*[contains(@class,' topic/state ')]"> |
| 412 |
<fo:inline border-left-width="0pt" border-right-width="0pt" color="red"> |
| 413 |
|
| 414 |
|
| 415 |
<xsl:value-of select="name()"/><xsl:text>: </xsl:text><xsl:value-of select="@name"/><xsl:text>=</xsl:text><xsl:value-of select="@value"/> |
| 416 |
</fo:inline> |
| 417 |
</xsl:template> |
| 418 |
|
| 419 |
|
| 420 |
|
| 421 |
<xsl:template match="*[contains(@class,' topic/image ')]"> |
| 422 |
|
| 423 |
<xsl:choose> |
| 424 |
<xsl:when test="parent::fig[contains(@frame,'top')]"> |
| 425 |
|
| 426 |
</xsl:when> |
| 427 |
<xsl:otherwise> |
| 428 |
<xsl:if test="not(@placement='inline')"> |
| 429 |
|
| 430 |
<fo:block>&rbl;</fo:block> |
| 431 |
</xsl:if> |
| 432 |
</xsl:otherwise> |
| 433 |
</xsl:choose> |
| 434 |
|
| 435 |
<xsl:choose> |
| 436 |
<xsl:when test="@placement='break'"> |
| 437 |
<fo:block> |
| 438 |
<xsl:choose> |
| 439 |
<xsl:when test="@align='left'"><xsl:attribute name="text-align">left</xsl:attribute></xsl:when> |
| 440 |
<xsl:when test="@align='right'"><xsl:attribute name="text-align">right</xsl:attribute></xsl:when> |
| 441 |
<xsl:when test="@align='center'"><xsl:attribute name="text-align">center</xsl:attribute></xsl:when> |
| 442 |
<xsl:when test="@align='justify'"><xsl:attribute name="text-align">justify</xsl:attribute></xsl:when> |
| 443 |
<xsl:otherwise/> |
| 444 |
</xsl:choose> |
| 445 |
|
| 446 |
<xsl:call-template name="insert-graphic"/> |
| 447 |
</fo:block> |
| 448 |
</xsl:when> |
| 449 |
<xsl:otherwise> |
| 450 |
|
| 451 |
<xsl:call-template name="insert-graphic"/> |
| 452 |
</xsl:otherwise> |
| 453 |
</xsl:choose> |
| 454 |
|
| 455 |
|
| 456 |
<xsl:choose> |
| 457 |
<xsl:when test="parent::fig[contains(@frame,'bot')]"> |
| 458 |
|
| 459 |
</xsl:when> |
| 460 |
<xsl:otherwise> |
| 461 |
<xsl:if test="not(@placement='inline')"> |
| 462 |
|
| 463 |
<fo:block> </fo:block> |
| 464 |
</xsl:if> |
| 465 |
</xsl:otherwise> |
| 466 |
</xsl:choose> |
| 467 |
|
| 468 |
<xsl:if test="$ARTLBL='yes'"> |
| 469 |
<fo:block font-weight="bold">[<xsl:value-of select="$IP"/> <xsl:value-of select="@href"/>]</fo:block> |
| 470 |
</xsl:if> |
| 471 |
</xsl:template> |
| 472 |
|
| 473 |
<xsl:template name="insert-graphic"> |
| 474 |
<fo:external-graphic> |
| 475 |
<xsl:attribute name="src">url(<xsl:call-template name="get-image-uri"/>)</xsl:attribute> |
| 476 |
<xsl:choose> |
| 477 |
<xsl:when test="@scale"><xsl:attribute name="content-width"><xsl:value-of select="concat(@scale,'%')"/></xsl:attribute></xsl:when> |
| 478 |
<xsl:otherwise></xsl:otherwise> |
| 479 |
</xsl:choose> |
| 480 |
</fo:external-graphic> |
| 481 |
</xsl:template> |
| 482 |
|
| 483 |
|
| 484 |
<xsl:template name="get-image-uri"> |
| 485 |
<xsl:param name="href" select="@href" /> |
| 486 |
|
| 487 |
|
| 488 |
|
| 489 |
|
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
|
| 496 |
|
| 497 |
<xsl:value-of select="$href"/> |
| 498 |
|
| 499 |
</xsl:template> |
| 500 |
|
| 501 |
<xsl:template name="topic-image"> |
| 502 |
|
| 503 |
<xsl:element name="img"> |
| 504 |
|
| 505 |
<xsl:attribute name="src"> |
| 506 |
<xsl:value-of select="$IP"/> |
| 507 |
<xsl:choose> |
| 508 |
<xsl:when test="@objname"> |
| 509 |
|
| 510 |
</xsl:when> |
| 511 |
<xsl:when test="@href"> |
| 512 |
<xsl:value-of select="@href"/> |
| 513 |
</xsl:when> |
| 514 |
<xsl:otherwise> |
| 515 |
|
| 516 |
</xsl:otherwise> |
| 517 |
</xsl:choose> |
| 518 |
</xsl:attribute> |
| 519 |
<xsl:if test="@height"><xsl:attribute name="height"><xsl:value-of select="@height"/></xsl:attribute></xsl:if> |
| 520 |
<xsl:if test="@width"><xsl:attribute name="width"><xsl:value-of select="@width"/></xsl:attribute></xsl:if> |
| 521 |
<xsl:choose> |
| 522 |
<xsl:when test="@alt"> |
| 523 |
<xsl:attribute name="alt"><xsl:value-of select="@alt"/></xsl:attribute> |
| 524 |
</xsl:when> |
| 525 |
<xsl:otherwise> |
| 526 |
<xsl:attribute name="alt"><xsl:value-of select="*[contains(@class,' topic/textalt')]"/></xsl:attribute> |
| 527 |
</xsl:otherwise> |
| 528 |
</xsl:choose> |
| 529 |
</xsl:element> |
| 530 |
</xsl:template> |
| 531 |
|
| 532 |
|
| 533 |
<xsl:template match="*[contains(@class,' topic/object ')]"> |
| 534 |
<fo:block> |
| 535 |
|
| 536 |
</fo:block> |
| 537 |
</xsl:template> |
| 538 |
|
| 539 |
|
| 540 |
<xsl:template match="*[contains(@class,' topic/param ')]"> |
| 541 |
<fo:block> |
| 542 |
|
| 543 |
</fo:block> |
| 544 |
</xsl:template> |
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
|
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
<xsl:template match="*[contains(@class,' topic/draft-comment ')]"> |
| 558 |
<xsl:if test="$DRAFT='yes'"> |
| 559 |
<fo:block background-color="#FF99FF" color="#CC3333"> |
| 560 |
<xsl:attribute name="border-style">solid</xsl:attribute> |
| 561 |
<xsl:attribute name="border-color">black</xsl:attribute> |
| 562 |
<xsl:attribute name="border-width">thin</xsl:attribute> |
| 563 |
<fo:block font-weight="bold"> |
| 564 |
Disposition: <xsl:value-of select="@disposition"/> / |
| 565 |
Status: <xsl:value-of select="@status"/> |
| 566 |
</fo:block> |
| 567 |
<xsl:apply-templates/> |
| 568 |
</fo:block> |
| 569 |
</xsl:if> |
| 570 |
</xsl:template> |
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
<xsl:template match="*[contains(@class,' topic/required-cleanup ')]"> |
| 575 |
<xsl:if test="$DRAFT='yes'"> |
| 576 |
<fo:inline background="yellow" color="#CC3333"> |
| 577 |
<xsl:attribute name="border-style">solid</xsl:attribute> |
| 578 |
<xsl:attribute name="border-color">black</xsl:attribute> |
| 579 |
<xsl:attribute name="border-width">thin</xsl:attribute> |
| 580 |
|
| 581 |
<fo:inline font-weight="bold">Required Cleanup <xsl:if test="string(@remap)">(<xsl:value-of select="@remap"/>) </xsl:if><xsl:text>: </xsl:text></fo:inline> |
| 582 |
<xsl:apply-templates /> |
| 583 |
</fo:inline> |
| 584 |
</xsl:if> |
| 585 |
</xsl:template> |
| 586 |
|
| 587 |
|
| 588 |
<xsl:template match="*[contains(@class,' topic/fn ')]"> |
| 589 |
<fo:block font-size="8pt" color="purple"> |
| 590 |
<xsl:if test="@id"> |
| 591 |
<fo:inline font-style="italic"> |
| 592 |
<xsl:text>[Footnote: </xsl:text> |
| 593 |
<xsl:value-of select="@id"/> |
| 594 |
<xsl:text>]</xsl:text> |
| 595 |
</fo:inline> |
| 596 |
</xsl:if> |
| 597 |
<xsl:if test="@callout"> |
| 598 |
<fo:inline baseline-shift="super" font-size="75%"> |
| 599 |
<xsl:value-of select="@callout"/> |
| 600 |
|
| 601 |
</fo:inline> |
| 602 |
</xsl:if> |
| 603 |
<xsl:apply-templates/> |
| 604 |
</fo:block> |
| 605 |
</xsl:template> |
| 606 |
|
| 607 |
<xsl:template match="footnotex"> |
| 608 |
<fo:footnote> |
| 609 |
<fo:inline baseline-shift="super" font-size="7pt" font-family="Helvetica"> |
| 610 |
<xsl:number count="//fn" format="1" /> |
| 611 |
</fo:inline> |
| 612 |
<fo:footnote-body> |
| 613 |
|
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
<fo:block xsl:use-attribute-sets="footnote"> |
| 618 |
<fo:inline baseline-shift="super" font-size="75%"> |
| 619 |
<xsl:number level="multiple" count="//fn" format="1 "/> |
| 620 |
</fo:inline> |
| 621 |
<xsl:apply-templates /> |
| 622 |
</fo:block> |
| 623 |
</fo:footnote-body> |
| 624 |
</fo:footnote> |
| 625 |
</xsl:template> |
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
<xsl:template match="*[contains(@class,' topic/keywords ')]/*[contains(@class,' topic/keyword ')]" priority="2"> |
| 633 |
<fo:inline> |
| 634 |
<xsl:text> [</xsl:text><xsl:apply-templates /><xsl:text>] </xsl:text> |
| 635 |
</fo:inline> |
| 636 |
</xsl:template> |
| 637 |
|
| 638 |
<xsl:template match="*[contains(@class,' topic/keyword ')]"> |
| 639 |
<fo:inline border-left-width="0pt" border-right-width="0pt"> |
| 640 |
|
| 641 |
|
| 642 |
<xsl:apply-templates /> |
| 643 |
</fo:inline> |
| 644 |
</xsl:template> |
| 645 |
|
| 646 |
|
| 647 |
<xsl:template match="*[contains(@class,' topic/cite ')]"> |
| 648 |
<fo:inline font-style="italic"> |
| 649 |
|
| 650 |
|
| 651 |
<xsl:apply-templates /> |
| 652 |
</fo:inline> |
| 653 |
</xsl:template> |
| 654 |
|
| 655 |
|
| 656 |
<xsl:template match="*[contains(@class,' topic/indextermref ')]"> |
| 657 |
<fo:inline font-style="italic"> |
| 658 |
|
| 659 |
|
| 660 |
<xsl:apply-templates /> |
| 661 |
</fo:inline> |
| 662 |
</xsl:template> |
| 663 |
|
| 664 |
|
| 665 |
<xsl:template match="*[contains(@class,' topic/indexterm ')]" priority="3"/> |
| 666 |
<xsl:template name="nulled-indexterm"> |
| 667 |
<fo:inline margin="1pt" background-color="#ffddff"> |
| 668 |
|
| 669 |
[ <xsl:apply-templates/> ] |
| 670 |
</fo:inline> |
| 671 |
</xsl:template> |
| 672 |
|
| 673 |
|
| 674 |
<xsl:template match="*[contains(@class,' topic/data ')]"/> |
| 675 |
|
| 676 |
|
| 677 |
|
| 678 |
<xsl:template match="*[contains(@class,' topic/foreign ') or contains(@class,' topic/unknown ')]"/> |
| 679 |
|
| 680 |
|
| 681 |
|
| 682 |
|
| 683 |
|
| 684 |
</xsl:stylesheet> |