| 1 |
<?xml version="1.0" encoding="ASCII"?> |
| 2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
xmlns="http://www.w3.org/1999/xhtml" |
| 4 |
xmlns:d="http://docbook.org/ns/docbook" |
| 5 |
xmlns:dbs="http://docbook.org/ns/docbook-slides" |
| 6 |
exclude-result-prefixes="dbs d" |
| 7 |
version="1.0"> |
| 8 |
|
| 9 |
<xsl:import href="plain.xsl"/> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
<xsl:template name="xhtml.head"> |
| 18 |
<xsl:variable name="s5.controls.visible"> |
| 19 |
<xsl:choose> |
| 20 |
<xsl:when test="$s5.controls != 0">visible</xsl:when> |
| 21 |
|
| 22 |
<xsl:otherwise>hidden</xsl:otherwise> |
| 23 |
</xsl:choose> |
| 24 |
</xsl:variable> |
| 25 |
|
| 26 |
<meta name="generator" content="DocBook Slides Stylesheets V{$VERSION}"/> |
| 27 |
<meta name="version" content="S5 1.1"/> |
| 28 |
<meta name="defaultView" content="{$s5.defaultview}"/> |
| 29 |
<meta name="controlVis" content="{$s5.controls.visible}"/> |
| 30 |
|
| 31 |
<link rel="stylesheet" href="{concat($s5.path.prefix, $s5.slides.css)}" type="text/css" media="projection" id="slideProj" /> |
| 32 |
<link rel="stylesheet" href="{concat($s5.path.prefix, $s5.outline.css)}" type="text/css" media="screen" id="outlineStyle" /> |
| 33 |
<link rel="stylesheet" href="{concat($s5.path.prefix, $s5.print.css)}" type="text/css" media="print" id="slidePrint" /> |
| 34 |
<link rel="stylesheet" href="{concat($s5.path.prefix, $s5.opera.css)}" type="text/css" media="projection" id="operaFix" /> |
| 35 |
<link rel="stylesheet" href="{$user.css}" type="text/css"/> |
| 36 |
|
| 37 |
<script src="{concat($s5.path.prefix, $s5.slides.js)}" type="text/javascript"></script> |
| 38 |
</xsl:template> |
| 39 |
|
| 40 |
<xsl:template name="slideshow.head"> |
| 41 |
<div class="layout"> |
| 42 |
<div id="controls"/> |
| 43 |
<div id="currentSlide"/> |
| 44 |
<div id="header"> |
| 45 |
<xsl:apply-templates select="/" mode="slide.header.mode"/> |
| 46 |
</div> |
| 47 |
<div id="footer"> |
| 48 |
<xsl:apply-templates select="/" mode="slide.footer.mode"/> |
| 49 |
</div> |
| 50 |
</div> |
| 51 |
</xsl:template> |
| 52 |
|
| 53 |
<xsl:template match="d:xref"> |
| 54 |
<xsl:variable name="target" select="id(./@linkend)"/> |
| 55 |
|
| 56 |
<xsl:choose> |
| 57 |
<xsl:when test="($target[self::dbs:foil] or $target[self::dbs:foilgroup])"> |
| 58 |
<xsl:variable name="target.no" select="count(preceding::dbs:foil|preceding::dbs:foilgroup) + 1"/> |
| 59 |
|
| 60 |
<xsl:apply-templates select="$target" mode="xref-to"/> |
| 61 |
</xsl:when> |
| 62 |
|
| 63 |
<xsl:otherwise> |
| 64 |
<xsl:call-template name="xref"/> |
| 65 |
</xsl:otherwise> |
| 66 |
</xsl:choose> |
| 67 |
</xsl:template> |
| 68 |
|
| 69 |
<xsl:template match="d:biblioentry" mode="xref-to"> |
| 70 |
<xsl:variable name="id" select="@xml:id"/> |
| 71 |
|
| 72 |
<xsl:choose> |
| 73 |
<xsl:when test="$bibliography.numbered != 0"> |
| 74 |
<xsl:number from="d:bibliography" count="d:biblioentry|d:bibliomixed" level="any" format="1"/> |
| 75 |
</xsl:when> |
| 76 |
|
| 77 |
<xsl:otherwise> |
| 78 |
<xsl:value-of select="$id"/> |
| 79 |
</xsl:otherwise> |
| 80 |
</xsl:choose> |
| 81 |
</xsl:template> |
| 82 |
|
| 83 |
<xsl:template match="d:mediaobject"> |
| 84 |
<p> |
| 85 |
<xsl:if test="@dbs:style"> |
| 86 |
<xsl:attribute name="class"> |
| 87 |
<xsl:value-of select="@dbs:style"/> |
| 88 |
</xsl:attribute> |
| 89 |
</xsl:if> |
| 90 |
|
| 91 |
<xsl:apply-templates/> |
| 92 |
</p> |
| 93 |
</xsl:template> |
| 94 |
|
| 95 |
</xsl:stylesheet> |