This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
XSL stylesheets admon.graphic template using wrongextension?
- To: docbook <docbook-apps at lists dot oasis-open dot org>
- Subject: DOCBOOK-APPS: XSL stylesheets admon.graphic template using wrongextension?
- From: pilgrim_mark at yahoo dot com
- Date: Thu, 16 Nov 2000 10:06:40 -0800 (PST)
In DocBook XSL stylesheets 1.24, html/admon.xsl,
<xsl:template name="admon.graphic">, I see names for
graphics files: note.gif, warning.gif, etc. However,
in the images/ directory of the stylesheet
distribution, I only see PNG files named note.png,
warning.png, etc. I put the following hack in my
custom stylesheet to use the .png filenames instead
(nothing is changed except the filenames). Is this an
acceptable solution, and if so, can it be integrated
into the main stylesheets?
<xsl:template name="admon.graphic">
<xsl:param name="node" select="."/>
<xsl:value-of select="$admon.graphics.path"/>
<xsl:choose>
<xsl:when
test="name($node)='note'">note.png</xsl:when>
<xsl:when
test="name($node)='warning'">warning.png</xsl:when>
<xsl:when
test="name($node)='caution'">caution.png</xsl:when>
<xsl:when
test="name($node)='tip'">tip.png</xsl:when>
<xsl:when
test="name($node)='important'">important.png</xsl:when>
<xsl:otherwise>note.png</xsl:otherwise>
</xsl:choose>
</xsl:template>
-M
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/