[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 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 .
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]