[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. 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> **************************** 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> **************************** On Fri, Nov 2, 2012 at 7:25 AM, Shlomi Fish <shlomif@shlomifish.org> wrote: > Hi all, > > DocBook/XSL ( docbook-style-xsl-1.77.1-3.mga3 on Mageia Linux 3/Cauldron) > converts DocBook 5 with <mediaobject> with the <alt> tags to <img />s without > the alt="..." attribute. I am attaching here a sample document (compressed with > gzip) - it's in Hebrew, but you can view the XHTML fine. > > Here are the command I use to render it and both give me <img-s without the > alt="..." attribute: > > $ java org.apache.xalan.xslt.Process -IN hebrew-html-tutorial.xml -XSL > http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl -OUT > foo.html > > $ xsltproc http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl > hebrew-html-tutorial.xml > > I verified that they open files > from /usr/share/sgml/docbook/xsl-stylesheets-1.77.1/xhtml/html-rtf.xsl / etc. > > Can anyone help? Am I doing something wrong? Is this a bug? Is there a > workaround? > > Regards, > > Shlomi Fish > > -- > ----------------------------------------------------------------- > Shlomi Fish http://www.shlomifish.org/ > Freecell Solver - http://fc-solve.shlomifish.org/ > > <ew73> VB.NET is all of the fun of enforced privacy OO with all of the power > of BASIC. — Freenode’s #perl > > 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]