diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2013-10-08 20:03:29 +0000 |
commit | 15c7d39533a1eb1da0748011f3378fd0f02ed14d (patch) | |
tree | a7ed12df60c5ffd4d00a570804c51470bfb8b0f5 /stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/s5.xsl | |
parent | 09a35dd7178070f01a7961d2ded39e11ba2aac83 (diff) |
Update stylesheets to docbook-xsl-1.78.1.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/s5.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/s5.xsl | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/s5.xsl b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/s5.xsl new file mode 100644 index 000000000..9447db3ec --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/s5.xsl @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="ASCII"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/1999/xhtml" + xmlns:db="http://docbook.org/ns/docbook" + xmlns:dbs="http://docbook.org/ns/docbook-slides" + exclude-result-prefixes="dbs db" + version="1.0"> + +<xsl:import href="plain.xsl"/> + +<!-- XXX: recommended by S5 but DocBook XSL produces XHTML Transitional + +<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" + doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/> +--> + +<xsl:template name="xhtml.head"> + <xsl:variable name="s5.controls.visible"> + <xsl:choose> + <xsl:when test="$s5.controls != 0">visible</xsl:when> + + <xsl:otherwise>hidden</xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <meta name="generator" content="DocBook Slides Stylesheets V{$VERSION}"/> + <meta name="version" content="S5 1.1"/> + <meta name="defaultView" content="{$s5.defaultview}"/> + <meta name="controlVis" content="{$s5.controls.visible}"/> + + <link rel="stylesheet" href="{concat($s5.path.prefix, $s5.slides.css)}" type="text/css" media="projection" id="slideProj" /> + <link rel="stylesheet" href="{concat($s5.path.prefix, $s5.outline.css)}" type="text/css" media="screen" id="outlineStyle" /> + <link rel="stylesheet" href="{concat($s5.path.prefix, $s5.print.css)}" type="text/css" media="print" id="slidePrint" /> + <link rel="stylesheet" href="{concat($s5.path.prefix, $s5.opera.css)}" type="text/css" media="projection" id="operaFix" /> + <link rel="stylesheet" href="{$user.css}" type="text/css"/> + + <script src="{concat($s5.path.prefix, $s5.slides.js)}" type="text/javascript"></script> +</xsl:template> + +<xsl:template name="slideshow.head"> + <div class="layout"> + <div id="controls"/> + <div id="currentSlide"/> + <div id="header"> + <xsl:apply-templates select="/" mode="slide.header.mode"/> + </div> + <div id="footer"> + <xsl:apply-templates select="/" mode="slide.footer.mode"/> + </div> + </div> +</xsl:template> + +<xsl:template match="db:xref"> + <xsl:variable name="target" select="id(./@linkend)"/> + + <xsl:choose> + <xsl:when test="($target[self::dbs:foil] or $target[self::dbs:foilgroup])"> + <xsl:variable name="target.no" select="count(preceding::dbs:foil|preceding::dbs:foilgroup) + 1"/> + + <xsl:apply-templates select="$target" mode="xref-to"/> + </xsl:when> + + <xsl:otherwise> + <xsl:call-template name="xref"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="db:biblioentry" mode="xref-to"> + <xsl:variable name="id" select="@xml:id"/> + + <xsl:choose> + <xsl:when test="$bibliography.numbered != 0"> + <xsl:number from="db:bibliography" count="db:biblioentry|db:bibliomixed" level="any" format="1"/> + </xsl:when> + + <xsl:otherwise> + <xsl:value-of select="$id"/> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template match="db:mediaobject"> + <p> + <xsl:if test="@dbs:style"> + <xsl:attribute name="class"> + <xsl:value-of select="@dbs:style"/> + </xsl:attribute> + </xsl:if> + + <xsl:apply-templates/> + </p> +</xsl:template> + +</xsl:stylesheet> |