This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
XSL stylesheets: ALT support in admon graphics?
- To: docbook <docbook-apps at lists dot oasis-open dot org>
- Subject: DOCBOOK-APPS: XSL stylesheets: ALT support in admon graphics?
- From: pilgrim_mark at yahoo dot com
- Date: Wed, 20 Dec 2000 07:16:22 -0800 (PST)
Norm, can you add an ALT attribute to the <img> used
for graphical admonitions? I'm trying to validate my
HTML against the HTML 4.01 DTD and ALT is a required
attribute of IMG.
I don't guarantee that this code is the right way to
do it, but it worked for me. (One of these days I'll
submit a patch that you use verbatim, and then I'll
put that fact on my resume... :)
-M
<!-- html/admon.xsl -->
<xsl:template name="graphical.admonition">
...
<img>
<xsl:attribute name="src">
<xsl:call-template name="admon.graphic"/>
</xsl:attribute>
<!-- begin patch -->
<xsl:attribute name="alt">
<xsl:call-template name="gentext.element.name"/>
</xsl:attribute>
<!-- end patch -->
</img>
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/