diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-02-24 17:21:58 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-02-24 17:21:58 +0000 |
commit | 2dd3ac6cc5ad82c0435e293f091faab4638158ef (patch) | |
tree | 14b2ead479f3dee1dbc420709bc22884e054c13d /tests/docbook/html/html.xsl | |
parent | 294ccb6850f153440bdfc5c8936d9871f6f0a123 (diff) | |
download | libxslt-2dd3ac6cc5ad82c0435e293f091faab4638158ef.tar.gz libxslt-2dd3ac6cc5ad82c0435e293f091faab4638158ef.tar.bz2 libxslt-2dd3ac6cc5ad82c0435e293f091faab4638158ef.zip |
Oops seems I forgot to commit the stylesheets themselves ... Daniel
Diffstat (limited to 'tests/docbook/html/html.xsl')
-rw-r--r-- | tests/docbook/html/html.xsl | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/docbook/html/html.xsl b/tests/docbook/html/html.xsl new file mode 100644 index 00000000..839c8ac6 --- /dev/null +++ b/tests/docbook/html/html.xsl @@ -0,0 +1,56 @@ +<?xml version='1.0'?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version='1.0'> + +<!-- ******************************************************************** + $Id$ + ******************************************************************** + + This file is part of the XSL DocBook Stylesheet distribution. + See ../README or http://nwalsh.com/docbook/xsl/ for copyright + and other information. + + ******************************************************************** --> + +<xsl:template name="dingbat"> + <xsl:param name="dingbat">bullet</xsl:param> + <xsl:choose> + <xsl:when test="false() and $using.chunker != 0"> + <dingbat name="{$dingbat}"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="dingbat.characters"> + <xsl:with-param name="dingbat" select="$dingbat"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +<xsl:template name="dingbat.characters"> + <!-- now that I'm using the real serializer, all that dingbat malarky --> + <!-- isn't necessary anymore... --> + <xsl:param name="dingbat">bullet</xsl:param> + <xsl:choose> + <xsl:when test="$dingbat='bullet'">•</xsl:when> + <xsl:when test="$dingbat='copyright'">©</xsl:when> + <xsl:when test="$dingbat='trademark'">™</xsl:when> + <xsl:when test="$dingbat='trade'">™</xsl:when> + <xsl:when test="$dingbat='registered'">®</xsl:when> + <xsl:when test="$dingbat='service'">(SM)</xsl:when> + <xsl:when test="$dingbat='nbsp'"> </xsl:when> + <xsl:when test="$dingbat='ldquo'">“</xsl:when> + <xsl:when test="$dingbat='rdquo'">”</xsl:when> + <xsl:when test="$dingbat='lsquo'">‘</xsl:when> + <xsl:when test="$dingbat='rsquo'">’</xsl:when> + <xsl:when test="$dingbat='em-dash'">—</xsl:when> + <xsl:when test="$dingbat='mdash'">—</xsl:when> + <xsl:when test="$dingbat='en-dash'">–</xsl:when> + <xsl:when test="$dingbat='ndash'">–</xsl:when> + <xsl:otherwise> + <xsl:text>•</xsl:text> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +</xsl:stylesheet> + |