| 1 |
<?xml version="1.0"?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
xmlns:rng="http://relaxng.org/ns/structure/1.0" |
| 4 |
xmlns:cvs="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.CVS" |
| 5 |
exclude-result-prefixes="cvs rng" |
| 6 |
version="1.0"> |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> |
| 13 |
<xsl:include href="html-titlepage.xsl"/> |
| 14 |
<xsl:include href="dbv5.xsl"/> |
| 15 |
|
| 16 |
<xsl:param name="docbookng" select="0"/> |
| 17 |
<xsl:param name="ng-release" select="'Bourbon'"/> |
| 18 |
|
| 19 |
<xsl:param name="output.media" select="'online'"/> |
| 20 |
<xsl:param name="output.type" select="'expanded'"/> |
| 21 |
<xsl:param name="html.stylesheet">defguide.css</xsl:param> |
| 22 |
<xsl:param name="toc.section.depth" select="1"/> |
| 23 |
<xsl:param name="callout.graphics.path" select="'figures/callouts/'"/> |
| 24 |
<xsl:param name="refentry.generate.name" select="0"/> |
| 25 |
<xsl:param name="refentry.generate.title" select="0"/> |
| 26 |
<xsl:param name="refentry.separator" select="0"/> |
| 27 |
<xsl:param name="table.borders.with.css" select="1"/> |
| 28 |
|
| 29 |
<xsl:param name="generate.toc"> |
| 30 |
/appendix nop |
| 31 |
/article nop |
| 32 |
book toc,figure,table,example,equation |
| 33 |
/chapter nop |
| 34 |
part toc |
| 35 |
/preface nop |
| 36 |
qandadiv nop |
| 37 |
qandaset nop |
| 38 |
reference nop |
| 39 |
/section nop |
| 40 |
set nop |
| 41 |
</xsl:param> |
| 42 |
|
| 43 |
<xsl:param name="local.l10n.xml" select="document('')"/> |
| 44 |
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> |
| 45 |
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en"> |
| 46 |
<l:context name="title-numbered"> |
| 47 |
<l:template name="appendix" text="%t"/> |
| 48 |
<l:template name="chapter" text="%t"/> |
| 49 |
</l:context> |
| 50 |
</l:l10n> |
| 51 |
</l:i18n> |
| 52 |
|
| 53 |
<xsl:template match="processing-instruction('lb')"> |
| 54 |
<br/> |
| 55 |
</xsl:template> |
| 56 |
|
| 57 |
<xsl:template match="processing-instruction('lb')" mode="no.anchor.mode"> |
| 58 |
<xsl:text> </xsl:text> |
| 59 |
</xsl:template> |
| 60 |
|
| 61 |
<xsl:template name="user.header.content"> |
| 62 |
<xsl:param name="node" select="."/> |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
</xsl:template> |
| 77 |
|
| 78 |
<xsl:template name="user.footer.navigation"> |
| 79 |
<xsl:param name="node" select="."/> |
| 80 |
<div class="copyrightfooter"> |
| 81 |
<p> |
| 82 |
<xsl:choose> |
| 83 |
<xsl:when test="$output.type = 'unexpanded'"> |
| 84 |
<a href="dbcpyright-x.html">Copyright</a> |
| 85 |
</xsl:when> |
| 86 |
<xsl:otherwise> |
| 87 |
<a href="dbcpyright.html">Copyright</a> |
| 88 |
</xsl:otherwise> |
| 89 |
</xsl:choose> |
| 90 |
<xsl:text> © 1999, 2000, 2001, 2002, 2003 </xsl:text> |
| 91 |
<a href="http://www.oreilly.com/">O'Reilly & Associates, Inc.</a> |
| 92 |
<xsl:text> All rights reserved.</xsl:text> |
| 93 |
</p> |
| 94 |
</div> |
| 95 |
</xsl:template> |
| 96 |
|
| 97 |
<xsl:template name="revision.graphic"> |
| 98 |
<xsl:param name="large" select="'0'"/> |
| 99 |
<xsl:param name="align" select="''"/> |
| 100 |
|
| 101 |
<xsl:if test="@revision"> |
| 102 |
<xsl:choose> |
| 103 |
<xsl:when test="@revision='5.0'"> |
| 104 |
<img src="figures/rev_5.0.png" alt="[5.0]"> |
| 105 |
<xsl:if test="$align != ''"> |
| 106 |
<xsl:attribute name="align"> |
| 107 |
<xsl:value-of select="$align"/> |
| 108 |
</xsl:attribute> |
| 109 |
</xsl:if> |
| 110 |
</img> |
| 111 |
</xsl:when> |
| 112 |
<xsl:when test="@revision='4.5'"> |
| 113 |
<img src="figures/rev_4.5.png" alt="[4.5]"> |
| 114 |
<xsl:if test="$align != ''"> |
| 115 |
<xsl:attribute name="align"> |
| 116 |
<xsl:value-of select="$align"/> |
| 117 |
</xsl:attribute> |
| 118 |
</xsl:if> |
| 119 |
</img> |
| 120 |
</xsl:when> |
| 121 |
<xsl:when test="@revision='4.4'"> |
| 122 |
<img src="figures/rev_4.4.png" alt="[4.4]"> |
| 123 |
<xsl:if test="$align != ''"> |
| 124 |
<xsl:attribute name="align"> |
| 125 |
<xsl:value-of select="$align"/> |
| 126 |
</xsl:attribute> |
| 127 |
</xsl:if> |
| 128 |
</img> |
| 129 |
</xsl:when> |
| 130 |
<xsl:when test="@revision='4.3'"> |
| 131 |
<img src="figures/rev_4.3.png" alt="[4.3]"> |
| 132 |
<xsl:if test="$align != ''"> |
| 133 |
<xsl:attribute name="align"> |
| 134 |
<xsl:value-of select="$align"/> |
| 135 |
</xsl:attribute> |
| 136 |
</xsl:if> |
| 137 |
</img> |
| 138 |
</xsl:when> |
| 139 |
<xsl:when test="@revision='4.2'"> |
| 140 |
<img src="figures/rev_4.2.png" alt="[4.2]"> |
| 141 |
<xsl:if test="$align != ''"> |
| 142 |
<xsl:attribute name="align"> |
| 143 |
<xsl:value-of select="$align"/> |
| 144 |
</xsl:attribute> |
| 145 |
</xsl:if> |
| 146 |
</img> |
| 147 |
</xsl:when> |
| 148 |
<xsl:when test="@revision='4.0'"> |
| 149 |
<img src="figures/rev_4.0.png" alt="[4.0]"> |
| 150 |
<xsl:if test="$align != ''"> |
| 151 |
<xsl:attribute name="align"> |
| 152 |
<xsl:value-of select="$align"/> |
| 153 |
</xsl:attribute> |
| 154 |
</xsl:if> |
| 155 |
</img> |
| 156 |
</xsl:when> |
| 157 |
<xsl:when test="@revision='3.1'"> |
| 158 |
|
| 159 |
</xsl:when> |
| 160 |
<xsl:when test="@revision='EBNF'"> |
| 161 |
<img src="figures/rev_ebnf.png" alt="[EBNF]"> |
| 162 |
<xsl:if test="$align != ''"> |
| 163 |
<xsl:attribute name="align"> |
| 164 |
<xsl:value-of select="$align"/> |
| 165 |
</xsl:attribute> |
| 166 |
</xsl:if> |
| 167 |
</img> |
| 168 |
</xsl:when> |
| 169 |
<xsl:when test="@revision='SVG'"> |
| 170 |
<img src="figures/rev_svg.png" alt="[SVG]"> |
| 171 |
<xsl:if test="$align != ''"> |
| 172 |
<xsl:attribute name="align"> |
| 173 |
<xsl:value-of select="$align"/> |
| 174 |
</xsl:attribute> |
| 175 |
</xsl:if> |
| 176 |
</img> |
| 177 |
</xsl:when> |
| 178 |
<xsl:when test="@revision='MathML'"> |
| 179 |
<img src="figures/rev_mathml.png" alt="[MathML]"> |
| 180 |
<xsl:if test="$align != ''"> |
| 181 |
<xsl:attribute name="align"> |
| 182 |
<xsl:value-of select="$align"/> |
| 183 |
</xsl:attribute> |
| 184 |
</xsl:if> |
| 185 |
</img> |
| 186 |
</xsl:when> |
| 187 |
<xsl:when test="@revision='HTMLForms'"> |
| 188 |
<img src="figures/rev_htmlforms.png" alt="[HTML Forms]"> |
| 189 |
<xsl:if test="$align != ''"> |
| 190 |
<xsl:attribute name="align"> |
| 191 |
<xsl:value-of select="$align"/> |
| 192 |
</xsl:attribute> |
| 193 |
</xsl:if> |
| 194 |
</img> |
| 195 |
</xsl:when> |
| 196 |
<xsl:otherwise> |
| 197 |
<xsl:message> |
| 198 |
<xsl:text>Unexpected revision '</xsl:text> |
| 199 |
<xsl:value-of select="@revision"/> |
| 200 |
<xsl:text>' on </xsl:text> |
| 201 |
<xsl:value-of select="local-name(.)"/> |
| 202 |
</xsl:message> |
| 203 |
</xsl:otherwise> |
| 204 |
</xsl:choose> |
| 205 |
</xsl:if> |
| 206 |
</xsl:template> |
| 207 |
|
| 208 |
<xsl:template match="X.refentry"> |
| 209 |
<xsl:variable name="refmeta" select=".//refmeta"/> |
| 210 |
<xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/> |
| 211 |
<xsl:variable name="refnamediv" select=".//refnamediv"/> |
| 212 |
<xsl:variable name="refname" select="$refnamediv//refname"/> |
| 213 |
<xsl:variable name="title"> |
| 214 |
<xsl:choose> |
| 215 |
<xsl:when test="$refentrytitle"> |
| 216 |
<xsl:apply-templates select="$refentrytitle[1]" mode="title"/> |
| 217 |
</xsl:when> |
| 218 |
<xsl:when test="$refname"> |
| 219 |
<xsl:apply-templates select="$refname[1]" mode="title"/> |
| 220 |
</xsl:when> |
| 221 |
<xsl:otherwise></xsl:otherwise> |
| 222 |
</xsl:choose> |
| 223 |
</xsl:variable> |
| 224 |
|
| 225 |
<div class="{name(.)}"> |
| 226 |
<h1 class="title"> |
| 227 |
<a> |
| 228 |
<xsl:attribute name="name"> |
| 229 |
<xsl:call-template name="object.id"/> |
| 230 |
</xsl:attribute> |
| 231 |
</a> |
| 232 |
<xsl:call-template name="revision.graphic"> |
| 233 |
<xsl:with-param name="large" select="'1'"/> |
| 234 |
<xsl:with-param name="align" select="'right'"/> |
| 235 |
</xsl:call-template> |
| 236 |
<xsl:copy-of select="$title"/> |
| 237 |
</h1> |
| 238 |
<xsl:apply-templates/> |
| 239 |
<xsl:call-template name="process.footnotes"/> |
| 240 |
</div> |
| 241 |
</xsl:template> |
| 242 |
|
| 243 |
<xsl:template name="refentry.title"> |
| 244 |
<xsl:param name="node" select="."/> |
| 245 |
<xsl:variable name="refmeta" select="$node//refmeta"/> |
| 246 |
<xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/> |
| 247 |
<xsl:variable name="refnamediv" select="$node//refnamediv"/> |
| 248 |
<xsl:variable name="refname" select="$refnamediv//refname"/> |
| 249 |
<xsl:variable name="title"> |
| 250 |
<xsl:choose> |
| 251 |
<xsl:when test="$refentrytitle"> |
| 252 |
<xsl:apply-templates select="$refentrytitle[1]" mode="title"/> |
| 253 |
</xsl:when> |
| 254 |
<xsl:when test="$refname"> |
| 255 |
<xsl:apply-templates select="$refname[1]" mode="title"/> |
| 256 |
</xsl:when> |
| 257 |
<xsl:otherwise></xsl:otherwise> |
| 258 |
</xsl:choose> |
| 259 |
</xsl:variable> |
| 260 |
|
| 261 |
<h1 class="title"> |
| 262 |
<xsl:call-template name="revision.graphic"> |
| 263 |
<xsl:with-param name="large" select="'1'"/> |
| 264 |
<xsl:with-param name="align" select="'right'"/> |
| 265 |
</xsl:call-template> |
| 266 |
<xsl:copy-of select="$title"/> |
| 267 |
</h1> |
| 268 |
</xsl:template> |
| 269 |
|
| 270 |
<xsl:template match="para"> |
| 271 |
<xsl:if test="not(@condition) |
| 272 |
or (@condition = $output.media)"> |
| 273 |
<p> |
| 274 |
<xsl:if test="@id"> |
| 275 |
<a name="{@id}"/> |
| 276 |
</xsl:if> |
| 277 |
<xsl:call-template name="revision.graphic"/> |
| 278 |
<xsl:apply-templates/> |
| 279 |
</p> |
| 280 |
</xsl:if> |
| 281 |
</xsl:template> |
| 282 |
|
| 283 |
<xsl:template match="footnote/para[1]"> |
| 284 |
<xsl:apply-imports/> |
| 285 |
</xsl:template> |
| 286 |
|
| 287 |
<xsl:template match="phrase"> |
| 288 |
<xsl:if test="not(@condition) |
| 289 |
or (@condition = $output.media)"> |
| 290 |
<xsl:apply-imports/> |
| 291 |
</xsl:if> |
| 292 |
</xsl:template> |
| 293 |
|
| 294 |
<xsl:template match="ulink"> |
| 295 |
<xsl:choose> |
| 296 |
<xsl:when test="not(@condition) |
| 297 |
or (@condition = $output.media)"> |
| 298 |
<xsl:apply-imports/> |
| 299 |
</xsl:when> |
| 300 |
<xsl:otherwise> |
| 301 |
<xsl:apply-templates/> |
| 302 |
</xsl:otherwise> |
| 303 |
</xsl:choose> |
| 304 |
</xsl:template> |
| 305 |
|
| 306 |
<xsl:template match="anchor[@role='HACK-ex.out.start']"> |
| 307 |
<xsl:text disable-output-escaping="yes"><</xsl:text> |
| 308 |
<xsl:text>div class="example-output"</xsl:text> |
| 309 |
<xsl:text disable-output-escaping="yes">></xsl:text> |
| 310 |
</xsl:template> |
| 311 |
|
| 312 |
<xsl:template match="anchor[@role='HACK-ex.out.end']"> |
| 313 |
<xsl:text disable-output-escaping="yes"></div></xsl:text> |
| 314 |
</xsl:template> |
| 315 |
|
| 316 |
<xsl:template match="title" mode="book.titlepage.recto.mode"> |
| 317 |
<h1> |
| 318 |
<xsl:apply-templates/> |
| 319 |
<xsl:apply-templates select="../subtitle[1]" |
| 320 |
mode="book.titlepage.recto.mode"/> |
| 321 |
</h1> |
| 322 |
</xsl:template> |
| 323 |
|
| 324 |
<xsl:template match="subtitle" mode="book.titlepage.recto.mode"> |
| 325 |
<xsl:text>: </xsl:text> |
| 326 |
<xsl:apply-templates/> |
| 327 |
</xsl:template> |
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
<xsl:template match="informaltable"> |
| 332 |
<xsl:choose> |
| 333 |
<xsl:when test="@role='elemsynop'"> |
| 334 |
<xsl:apply-templates select=".//row" mode="elemsynop"/> |
| 335 |
|
| 336 |
<xsl:if test="$docbookng != 0"> |
| 337 |
<xsl:variable name="element" select="ancestor::refentry/refnamediv/refname"/> |
| 338 |
|
| 339 |
<div class="docbookng-synopsis"> |
| 340 |
<h3>DocBook NG “<xsl:value-of select="$ng-release"/>” Content Model</h3> |
| 341 |
<xsl:choose> |
| 342 |
<xsl:when test="$db5doc//rng:define[rng:element[@name=$element]]"> |
| 343 |
<xsl:call-template name="rng-element"> |
| 344 |
<xsl:with-param name="element" select="$element"/> |
| 345 |
</xsl:call-template> |
| 346 |
</xsl:when> |
| 347 |
<xsl:otherwise> |
| 348 |
<xsl:message>Not in NG: <xsl:value-of select="$element"/></xsl:message> |
| 349 |
<p>This element does not occur.</p> |
| 350 |
</xsl:otherwise> |
| 351 |
</xsl:choose> |
| 352 |
</div> |
| 353 |
</xsl:if> |
| 354 |
</xsl:when> |
| 355 |
<xsl:otherwise> |
| 356 |
<xsl:apply-imports/> |
| 357 |
</xsl:otherwise> |
| 358 |
</xsl:choose> |
| 359 |
|
| 360 |
</xsl:template> |
| 361 |
|
| 362 |
<xsl:template match="row" mode="elemsynop"> |
| 363 |
<xsl:variable name="entry" select="entry[1]"/> |
| 364 |
<xsl:variable name="entry2" select="entry[2]"/> |
| 365 |
|
| 366 |
<xsl:choose> |
| 367 |
<xsl:when test="@role = 'cmtitle'"> |
| 368 |
<h3> |
| 369 |
<xsl:apply-templates select="$entry/*"/> |
| 370 |
</h3> |
| 371 |
</xsl:when> |
| 372 |
<xsl:when test="@role = 'cmsynop'"> |
| 373 |
<xsl:apply-templates select="$entry/*"/> |
| 374 |
</xsl:when> |
| 375 |
<xsl:when test="@role = 'incltitle'"> |
| 376 |
<h3> |
| 377 |
<xsl:apply-templates select="$entry/*"/> |
| 378 |
</h3> |
| 379 |
</xsl:when> |
| 380 |
<xsl:when test="@role = 'inclsynop'"> |
| 381 |
<xsl:apply-templates select="$entry/*"/> |
| 382 |
</xsl:when> |
| 383 |
<xsl:when test="@role = 'excltitle'"> |
| 384 |
<h3> |
| 385 |
<xsl:apply-templates select="$entry/*"/> |
| 386 |
</h3> |
| 387 |
</xsl:when> |
| 388 |
<xsl:when test="@role = 'exclsynop'"> |
| 389 |
<xsl:apply-templates select="$entry/*"/> |
| 390 |
</xsl:when> |
| 391 |
<xsl:when test="@role = 'attrtitle'"> |
| 392 |
<h3> |
| 393 |
<xsl:apply-templates select="$entry/*"/> |
| 394 |
</h3> |
| 395 |
<p> |
| 396 |
<xsl:apply-templates select="$entry2/*"/> |
| 397 |
</p> |
| 398 |
</xsl:when> |
| 399 |
<xsl:when test="@role = 'attrheader'"> |
| 400 |
<xsl:variable name="attrrows" select="../row[@role='attr']"/> |
| 401 |
<table border="0" width="100%" cellpadding="2" |
| 402 |
style="border-collapse: collapse; border-left: 0.5pt solid black; border-right: 0.5pt solid black; border-bottom: 0.5pt solid black;" |
| 403 |
summary="Attributes"> |
| 404 |
<thead> |
| 405 |
<tr> |
| 406 |
<xsl:apply-templates select="entry[1]"> |
| 407 |
<xsl:with-param name="spans"> |
| 408 |
<xsl:call-template name="blank.spans"> |
| 409 |
<xsl:with-param name="cols" select="3"/> |
| 410 |
</xsl:call-template> |
| 411 |
</xsl:with-param> |
| 412 |
</xsl:apply-templates> |
| 413 |
</tr> |
| 414 |
</thead> |
| 415 |
<tbody> |
| 416 |
<xsl:for-each select="$attrrows"> |
| 417 |
<tr> |
| 418 |
<xsl:apply-templates select="entry[1]"> |
| 419 |
<xsl:with-param name="spans"> |
| 420 |
<xsl:call-template name="blank.spans"> |
| 421 |
<xsl:with-param name="cols" select="3"/> |
| 422 |
</xsl:call-template> |
| 423 |
</xsl:with-param> |
| 424 |
</xsl:apply-templates> |
| 425 |
</tr> |
| 426 |
</xsl:for-each> |
| 427 |
</tbody> |
| 428 |
</table> |
| 429 |
</xsl:when> |
| 430 |
<xsl:when test="@role = 'attr'"> |
| 431 |
|
| 432 |
</xsl:when> |
| 433 |
<xsl:when test="@role = 'tmtitle'"> |
| 434 |
<h3> |
| 435 |
<xsl:apply-templates select="$entry/*"/> |
| 436 |
</h3> |
| 437 |
</xsl:when> |
| 438 |
<xsl:when test="@role = 'tmsynop'"> |
| 439 |
<xsl:apply-templates select="$entry/*"/> |
| 440 |
</xsl:when> |
| 441 |
<xsl:when test="@role = 'petitle'"> |
| 442 |
<xsl:if test="$output.type = 'unexpanded'"> |
| 443 |
<xsl:variable name="attrrows" select="../row[@role='pe']"/> |
| 444 |
<h3> |
| 445 |
<xsl:apply-templates select="$entry/*"/> |
| 446 |
</h3> |
| 447 |
|
| 448 |
<p> |
| 449 |
<xsl:text>The following parameter entities contain </xsl:text> |
| 450 |
<xsl:value-of select="ancestor::refentry/refnamediv/refname"/> |
| 451 |
<xsl:text>:</xsl:text> |
| 452 |
</p> |
| 453 |
|
| 454 |
<table border="1" width="100%" summary="Attributes"> |
| 455 |
<tr> |
| 456 |
<xsl:apply-templates select="entry[1]"> |
| 457 |
<xsl:with-param name="spans"> |
| 458 |
<xsl:call-template name="blank.spans"> |
| 459 |
<xsl:with-param name="cols" select="3"/> |
| 460 |
</xsl:call-template> |
| 461 |
</xsl:with-param> |
| 462 |
</xsl:apply-templates> |
| 463 |
</tr> |
| 464 |
<xsl:for-each select="$attrrows"> |
| 465 |
<tr> |
| 466 |
<xsl:apply-templates select="entry[1]"> |
| 467 |
<xsl:with-param name="spans"> |
| 468 |
<xsl:call-template name="blank.spans"> |
| 469 |
<xsl:with-param name="cols" select="3"/> |
| 470 |
</xsl:call-template> |
| 471 |
</xsl:with-param> |
| 472 |
</xsl:apply-templates> |
| 473 |
</tr> |
| 474 |
</xsl:for-each> |
| 475 |
</table> |
| 476 |
</xsl:if> |
| 477 |
</xsl:when> |
| 478 |
<xsl:when test="@role = 'pe'"> |
| 479 |
|
| 480 |
</xsl:when> |
| 481 |
<xsl:when test="@role = 'vle-pe'"> |
| 482 |
|
| 483 |
</xsl:when> |
| 484 |
<xsl:when test="@role = 'vle-el'"> |
| 485 |
|
| 486 |
</xsl:when> |
| 487 |
<xsl:when test="@role = 'vle-iel'"> |
| 488 |
|
| 489 |
</xsl:when> |
| 490 |
<xsl:when test="@role = 'vle-petitle'"> |
| 491 |
<xsl:variable name="attrrows" select="../row[@role='vle-pe']"/> |
| 492 |
<p> |
| 493 |
<b><xsl:apply-templates select="$entry/*"/></b> |
| 494 |
</p> |
| 495 |
<table border="0" width="100%" summary="Attributes"> |
| 496 |
<tr> |
| 497 |
<xsl:apply-templates select="entry[1]"> |
| 498 |
<xsl:with-param name="spans"> |
| 499 |
<xsl:call-template name="blank.spans"> |
| 500 |
<xsl:with-param name="cols" select="3"/> |
| 501 |
</xsl:call-template> |
| 502 |
</xsl:with-param> |
| 503 |
</xsl:apply-templates> |
| 504 |
</tr> |
| 505 |
<xsl:for-each select="$attrrows"> |
| 506 |
<tr> |
| 507 |
<xsl:apply-templates select="entry[1]"> |
| 508 |
<xsl:with-param name="spans"> |
| 509 |
<xsl:call-template name="blank.spans"> |
| 510 |
<xsl:with-param name="cols" select="3"/> |
| 511 |
</xsl:call-template> |
| 512 |
</xsl:with-param> |
| 513 |
</xsl:apply-templates> |
| 514 |
</tr> |
| 515 |
</xsl:for-each> |
| 516 |
</table> |
| 517 |
</xsl:when> |
| 518 |
<xsl:when test="@role = 'vle-eltitle'"> |
| 519 |
<xsl:variable name="attrrows" select="../row[@role='vle-el']"/> |
| 520 |
<p> |
| 521 |
<b><xsl:apply-templates select="$entry/*"/></b> |
| 522 |
</p> |
| 523 |
<table border="0" width="100%" summary="Attributes"> |
| 524 |
<tr> |
| 525 |
<xsl:apply-templates select="entry[1]"> |
| 526 |
<xsl:with-param name="spans"> |
| 527 |
<xsl:call-template name="blank.spans"> |
| 528 |
<xsl:with-param name="cols" select="3"/> |
| 529 |
</xsl:call-template> |
| 530 |
</xsl:with-param> |
| 531 |
</xsl:apply-templates> |
| 532 |
</tr> |
| 533 |
<xsl:for-each select="$attrrows"> |
| 534 |
<tr> |
| 535 |
<xsl:apply-templates select="entry[1]"> |
| 536 |
<xsl:with-param name="spans"> |
| 537 |
<xsl:call-template name="blank.spans"> |
| 538 |
<xsl:with-param name="cols" select="3"/> |
| 539 |
</xsl:call-template> |
| 540 |
</xsl:with-param> |
| 541 |
</xsl:apply-templates> |
| 542 |
</tr> |
| 543 |
</xsl:for-each> |
| 544 |
</table> |
| 545 |
</xsl:when> |
| 546 |
<xsl:when test="@role = 'vle-ieltitle'"> |
| 547 |
<xsl:variable name="attrrows" select="../row[@role='vle-iel']"/> |
| 548 |
<p> |
| 549 |
<b><xsl:apply-templates select="$entry/*"/></b> |
| 550 |
</p> |
| 551 |
<table border="0" width="100%" summary="Attributes"> |
| 552 |
<tr> |
| 553 |
<xsl:apply-templates select="entry[1]"> |
| 554 |
<xsl:with-param name="spans"> |
| 555 |
<xsl:call-template name="blank.spans"> |
| 556 |
<xsl:with-param name="cols" select="3"/> |
| 557 |
</xsl:call-template> |
| 558 |
</xsl:with-param> |
| 559 |
</xsl:apply-templates> |
| 560 |
</tr> |
| 561 |
<xsl:for-each select="$attrrows"> |
| 562 |
<tr> |
| 563 |
<xsl:apply-templates select="entry[1]"> |
| 564 |
<xsl:with-param name="spans"> |
| 565 |
<xsl:call-template name="blank.spans"> |
| 566 |
<xsl:with-param name="cols" select="3"/> |
| 567 |
</xsl:call-template> |
| 568 |
</xsl:with-param> |
| 569 |
</xsl:apply-templates> |
| 570 |
</tr> |
| 571 |
</xsl:for-each> |
| 572 |
</table> |
| 573 |
</xsl:when> |
| 574 |
<xsl:when test="@role = 'vle-cmtitle'"> |
| 575 |
<p> |
| 576 |
<b>Parameter entity content:</b> |
| 577 |
</p> |
| 578 |
</xsl:when> |
| 579 |
</xsl:choose> |
| 580 |
</xsl:template> |
| 581 |
|
| 582 |
<xsl:template match="entry/simplelist[@role='enum' or @role='notationenum']"> |
| 583 |
|
| 584 |
<xsl:call-template name="anchor"/> |
| 585 |
<table class="simplelist" border="0" summary="Simple list"> |
| 586 |
<tr> |
| 587 |
<td> |
| 588 |
<i> |
| 589 |
<xsl:choose> |
| 590 |
<xsl:when test="@role = 'enum'"> |
| 591 |
<xsl:text>Enumeration:</xsl:text> |
| 592 |
</xsl:when> |
| 593 |
<xsl:otherwise> |
| 594 |
<xsl:text>Enumerated notation:</xsl:text> |
| 595 |
</xsl:otherwise> |
| 596 |
</xsl:choose> |
| 597 |
</i> |
| 598 |
</td> |
| 599 |
</tr> |
| 600 |
<xsl:call-template name="simplelist.vert"> |
| 601 |
<xsl:with-param name="cols"> |
| 602 |
<xsl:choose> |
| 603 |
<xsl:when test="@columns"> |
| 604 |
<xsl:value-of select="@columns"/> |
| 605 |
</xsl:when> |
| 606 |
<xsl:otherwise>1</xsl:otherwise> |
| 607 |
</xsl:choose> |
| 608 |
</xsl:with-param> |
| 609 |
</xsl:call-template> |
| 610 |
</table> |
| 611 |
</xsl:template> |
| 612 |
|
| 613 |
|
| 614 |
|
| 615 |
<xsl:template name="titlepage-block"> |
| 616 |
<xsl:variable name="authorgroup" select="bookinfo/authorgroup[1]"/> |
| 617 |
<xsl:variable name="isbn" select="bookinfo/isbn[1]"/> |
| 618 |
<xsl:variable name="version" select="bookinfo/releaseinfo[1]"/> |
| 619 |
<xsl:variable name="date" select="bookinfo/pubdate[1]"/> |
| 620 |
<xsl:variable name="legalnotice" select="bookinfo/legalnotice[1]"/> |
| 621 |
<xsl:variable name="copyright" select="bookinfo/copyright[1]"/> |
| 622 |
|
| 623 |
<p class="titlepage-block"> |
| 624 |
<span class="authorgroup"> |
| 625 |
<xsl:call-template name="gentext"> |
| 626 |
<xsl:with-param name="key">by</xsl:with-param> |
| 627 |
</xsl:call-template> |
| 628 |
<xsl:text> </xsl:text> |
| 629 |
<xsl:apply-templates select="$authorgroup/author" mode="titleblock"/> |
| 630 |
</span> |
| 631 |
<br/> |
| 632 |
<span class="contributors"> |
| 633 |
<xsl:text>With contributions from</xsl:text> |
| 634 |
<xsl:text> </xsl:text> |
| 635 |
<xsl:apply-templates select="$authorgroup/othercredit" mode="titleblock"/> |
| 636 |
</span> |
| 637 |
<br/> |
| 638 |
<span class="isbn"> |
| 639 |
<xsl:text>ISBN: </xsl:text> |
| 640 |
<a href="http://www.oreilly.com/catalog/docbook"> |
| 641 |
<xsl:apply-templates select="$isbn/node()"/> |
| 642 |
</a> |
| 643 |
</span> |
| 644 |
<br/> |
| 645 |
<span class="version"> |
| 646 |
<xsl:apply-templates select="$version/node()"/> |
| 647 |
</span> |
| 648 |
<br/> |
| 649 |
<span class="date"> |
| 650 |
|
| 651 |
|
| 652 |
<xsl:variable name="timeString" select="cvs:localTime($date/text())"/> |
| 653 |
<xsl:text>Updated: </xsl:text> |
| 654 |
<xsl:value-of select="substring($timeString, 1, 3)"/> |
| 655 |
<xsl:text>, </xsl:text> |
| 656 |
<xsl:value-of select="substring($timeString, 9, 2)"/> |
| 657 |
<xsl:text> </xsl:text> |
| 658 |
<xsl:value-of select="substring($timeString, 5, 3)"/> |
| 659 |
<xsl:text> </xsl:text> |
| 660 |
<xsl:value-of select="substring($timeString, 25, 4)"/> |
| 661 |
</span> |
| 662 |
</p> |
| 663 |
<xsl:apply-templates select="$copyright" mode="titlepage.mode"/> |
| 664 |
</xsl:template> |
| 665 |
|
| 666 |
<xsl:template match="authorgroup/author" mode="titleblock"> |
| 667 |
<xsl:if test="position() > 1 and last() > 2">,</xsl:if> |
| 668 |
<xsl:if test="position() > 1 and position() = last()"> and</xsl:if> |
| 669 |
<xsl:if test="position() > 1"> </xsl:if> |
| 670 |
<xsl:apply-templates select="."/> |
| 671 |
</xsl:template> |
| 672 |
|
| 673 |
<xsl:template match="authorgroup/othercredit" mode="titleblock"> |
| 674 |
<xsl:if test="position() > 1 and last() > 2">,</xsl:if> |
| 675 |
<xsl:if test="position() > 1 and position() = last()"> and</xsl:if> |
| 676 |
<xsl:if test="position() > 1"> </xsl:if> |
| 677 |
<xsl:apply-templates select="."/> |
| 678 |
<xsl:if test="contrib"> |
| 679 |
<xsl:text> (</xsl:text> |
| 680 |
<xsl:apply-templates select="contrib" mode="titleblock"/> |
| 681 |
<xsl:text>)</xsl:text> |
| 682 |
</xsl:if> |
| 683 |
</xsl:template> |
| 684 |
|
| 685 |
<xsl:template match="othercredit/contrib" mode="titleblock"> |
| 686 |
<xsl:apply-templates/> |
| 687 |
</xsl:template> |
| 688 |
|
| 689 |
<xsl:template match="copyright" mode="titlepage.mode"> |
| 690 |
<br clear="all"/> |
| 691 |
<xsl:apply-templates select="../legalnotice" mode="titlepage.mode"/> |
| 692 |
</xsl:template> |
| 693 |
|
| 694 |
|
| 695 |
|
| 696 |
<xsl:template match="refentry" mode="toc"> |
| 697 |
<xsl:variable name="refmeta" select=".//refmeta"/> |
| 698 |
<xsl:variable name="refentrytitle" select="$refmeta//refentrytitle"/> |
| 699 |
<xsl:variable name="refnamediv" select=".//refnamediv"/> |
| 700 |
<xsl:variable name="refname" select="$refnamediv//refname"/> |
| 701 |
<xsl:variable name="title"> |
| 702 |
<xsl:choose> |
| 703 |
<xsl:when test="$refentrytitle"> |
| 704 |
<xsl:apply-templates select="$refentrytitle[1]" mode="title"/> |
| 705 |
</xsl:when> |
| 706 |
<xsl:when test="$refname"> |
| 707 |
<xsl:apply-templates select="$refname[1]" mode="title"/> |
| 708 |
</xsl:when> |
| 709 |
<xsl:otherwise></xsl:otherwise> |
| 710 |
</xsl:choose> |
| 711 |
</xsl:variable> |
| 712 |
|
| 713 |
<xsl:element name="{$toc.listitem.type}"> |
| 714 |
<a> |
| 715 |
<xsl:attribute name="href"> |
| 716 |
<xsl:call-template name="href.target"/> |
| 717 |
</xsl:attribute> |
| 718 |
<xsl:copy-of select="$title"/> |
| 719 |
</a> |
| 720 |
<xsl:call-template name="revision.graphic"> |
| 721 |
<xsl:with-param name="large" select="'1'"/> |
| 722 |
</xsl:call-template> |
| 723 |
<xsl:if test="$annotate.toc != 0"> |
| 724 |
<xsl:text> - </xsl:text> |
| 725 |
<xsl:value-of select="refnamediv/refpurpose"/> |
| 726 |
</xsl:if> |
| 727 |
</xsl:element> |
| 728 |
</xsl:template> |
| 729 |
|
| 730 |
|
| 731 |
|
| 732 |
<xsl:template match="sgmltag"> |
| 733 |
<xsl:variable name="class"> |
| 734 |
<xsl:choose> |
| 735 |
<xsl:when test="@class"> |
| 736 |
<xsl:value-of select="@class"/> |
| 737 |
</xsl:when> |
| 738 |
<xsl:otherwise>element</xsl:otherwise> |
| 739 |
</xsl:choose> |
| 740 |
</xsl:variable> |
| 741 |
|
| 742 |
<xsl:variable name="elemidval"> |
| 743 |
<xsl:value-of select="translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', |
| 744 |
'abcdefghijklmnopqrstuvwxyz')"/> |
| 745 |
<xsl:text>.element</xsl:text> |
| 746 |
</xsl:variable> |
| 747 |
|
| 748 |
<xsl:variable name="peidval"> |
| 749 |
<xsl:value-of select="translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ', |
| 750 |
'abcdefghijklmnopqrstuvwxyz')"/> |
| 751 |
<xsl:text>.parament</xsl:text> |
| 752 |
</xsl:variable> |
| 753 |
|
| 754 |
<xsl:choose> |
| 755 |
<xsl:when test="$class = 'element' and count(id($elemidval)) > 0"> |
| 756 |
<xsl:variable name="targets" select="id($elemidval)"/> |
| 757 |
<xsl:variable name="target" select="$targets[1]"/> |
| 758 |
<a> |
| 759 |
<xsl:attribute name="href"> |
| 760 |
<xsl:call-template name="href.target"> |
| 761 |
<xsl:with-param name="object" select="$target"/> |
| 762 |
</xsl:call-template> |
| 763 |
</xsl:attribute> |
| 764 |
<xsl:apply-imports/> |
| 765 |
</a> |
| 766 |
</xsl:when> |
| 767 |
<xsl:when test="$class = 'paramentity' and count(id($peidval)) > 0"> |
| 768 |
<xsl:variable name="targets" select="id($peidval)"/> |
| 769 |
<xsl:variable name="target" select="$targets[1]"/> |
| 770 |
<a> |
| 771 |
<xsl:attribute name="href"> |
| 772 |
<xsl:call-template name="href.target"> |
| 773 |
<xsl:with-param name="object" select="$target"/> |
| 774 |
</xsl:call-template> |
| 775 |
</xsl:attribute> |
| 776 |
<xsl:apply-imports/> |
| 777 |
</a> |
| 778 |
</xsl:when> |
| 779 |
<xsl:otherwise> |
| 780 |
<xsl:apply-imports/> |
| 781 |
</xsl:otherwise> |
| 782 |
</xsl:choose> |
| 783 |
</xsl:template> |
| 784 |
|
| 785 |
|
| 786 |
|
| 787 |
<xsl:template name="component.title"> |
| 788 |
<xsl:param name="node" select="."/> |
| 789 |
|
| 790 |
<xsl:call-template name="anchor"> |
| 791 |
<xsl:with-param name="node" select="$node"/> |
| 792 |
<xsl:with-param name="conditional" select="0"/> |
| 793 |
</xsl:call-template> |
| 794 |
|
| 795 |
<div class="component-title"> |
| 796 |
<h1 class="label"> |
| 797 |
<xsl:apply-templates select="$node" mode="label.markup"> |
| 798 |
<xsl:with-param name="allow-anchors" select="1"/> |
| 799 |
</xsl:apply-templates> |
| 800 |
</h1> |
| 801 |
<h1 class="title"> |
| 802 |
<xsl:apply-templates select="$node" mode="object.title.markup"> |
| 803 |
<xsl:with-param name="allow-anchors" select="1"/> |
| 804 |
</xsl:apply-templates> |
| 805 |
</h1> |
| 806 |
</div> |
| 807 |
</xsl:template> |
| 808 |
|
| 809 |
|
| 810 |
|
| 811 |
</xsl:stylesheet> |
| 812 |
|