OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: XSL stylesheets admon.graphic template using wrongextension?


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/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC