diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 14:19:53 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 14:19:53 +0000 |
commit | ded6dddb89cade026e592cd386790b5b10e6fe00 (patch) | |
tree | 3e628a075a59b9ee298376729b44a4151d039c59 /stylesheets/xhtml/lfs-admon.xsl | |
parent | e4bf4c7e72fabd039b21b78313d43ce2138c1e7d (diff) |
Updated the stylesheets to their current version.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3529 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/xhtml/lfs-admon.xsl')
-rw-r--r-- | stylesheets/xhtml/lfs-admon.xsl | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/stylesheets/xhtml/lfs-admon.xsl b/stylesheets/xhtml/lfs-admon.xsl new file mode 100644 index 000000000..7cf0520f0 --- /dev/null +++ b/stylesheets/xhtml/lfs-admon.xsl @@ -0,0 +1,47 @@ +<?xml version='1.0' encoding='ISO-8859-1'?> + +<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/1999/xhtml" + version="1.0"> + + <!-- Use graphics in admonitions --> + <xsl:param name="admon.graphics" select="1"/> + <xsl:param name="admon.graphics.path">../images/</xsl:param> + <xsl:param name="admon.graphics.extension" select="'.png'"/> + + <!-- Changing the output tagging --> + <xsl:template name="graphical.admonition"> + <xsl:variable name="admon.type"> + <xsl:choose> + <xsl:when test="local-name(.)='note'">Note</xsl:when> + <xsl:when test="local-name(.)='warning'">Warning</xsl:when> + <xsl:when test="local-name(.)='caution'">Caution</xsl:when> + <xsl:when test="local-name(.)='tip'">Tip</xsl:when> + <xsl:when test="local-name(.)='important'">Important</xsl:when> + <xsl:otherwise>Note</xsl:otherwise> + </xsl:choose> + </xsl:variable> + <div class="admonition"> + <div class ="admonhead"> + <img alt="[{$admon.type}]"> + <xsl:attribute name="src"> + <xsl:call-template name="admon.graphic"/> + </xsl:attribute> + </img> + <h3 class="{name(.)}"> + <xsl:value-of select="$admon.type"/> + <xsl:if test="title"> + <xsl:text>: </xsl:text> + <xsl:value-of select="title"/> + </xsl:if> + </h3> + </div> + <div class="admonbody"> + <xsl:apply-templates/> + </div> + </div> + </xsl:template> + +</xsl:stylesheet> |