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] | [List Home]


Subject: Re: [docbook-apps] DocBook/XSL Renders <img /> without the alt="..." attribute in XHTML mode (xsltproc/xalan)


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
bobs@sagehill.net

--------------------------------------------------
From: "Shlomi Fish" <shlomif@shlomifish.org>
Sent: Friday, November 02, 2012 8:14 AM
To: "Peter Desjardins" <peter.desjardins.us@gmail.com>
Cc: <docbook-apps@lists.oasis-open.org>
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 <peter.desjardins.us@gmail.com> 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: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





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