Hi Shlomi,
This appears to be a bug in the stylesheets. There is some code for alt, but it is not in the right place to be used. I'll fix it before the next release.

Bob Stayton
Sagehill Enterprises
[email protected]

--------------------------------------------------
From: "Shlomi Fish" <[email protected]>
Sent: Friday, November 02, 2012 8:14 AM
To: "Peter Desjardins" <[email protected]>
Cc: <[email protected]>
Subject: Re: [docbook-apps] DocBook/XSL Renders <img /> without the alt="..." attribute in XHTML mode (xsltproc/xalan)

Hi Peter,

On Fri, 2 Nov 2012 10:37:20 -0400
Peter Desjardins <[email protected]> wrote:

Hi.

You could try wrapping the mediaobject in an informalfigure element. I
use alt text for images and I'm publishing to XHTML via webhelp.

Here's one of my informalfigure elements:

****************************
<informalfigure>
  <mediaobject>
    <alt>This illustration is described in the preceding text.</alt>

    <imageobject role="html">
      <imagedata fileref="media/server-and-administrator.jpg"/>
    </imageobject>

    <imageobject role="fo">
      <imagedata fileref="media/server-and-administrator.jpg"/>
    </imageobject>

    <textobject>
       <phrase>This illustration is described in the preceding
          text.</phrase>
    </textobject>
  </mediaobject>
</informalfigure>
****************************


Thanks for this workaround - I am going to try it, but I wonder why it does not
work without it. My DocBook/XML validates.

Regards,

Shlomi Fish.

And the resulting XHTML:

****************************
<div class="informalfigure">
  <div class="mediaobject"
         title="This illustration is described in the preceding text.">
    <img src="media/server-and-administrator.jpg"
            alt="This illustration is described in the preceding text."/>
  </div>
</div>
****************************

--
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Perl Humour - http://perl-begin.org/humour/

Real programmers don’t write workarounds. They tell their users to upgrade
their software.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to