This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: valid xhtml and chunking


Colin,

> Against the Transitional DTD, the only problem I found was that the
> validator complains about missing the alt attribute from img tags. I
> have come up against this problem myself when writing stylesheets, and
> got round it by coding alt=" " on every img tag.

Are you using a <textobject> in your <mediaobject> for images?
If you *are*, you should get ALT attributes without any problem.

I code my images as:

    <mediaobject>
    <imageobject>
      <imagedata fileref="foo.eps" format="EPS">
    </imageobject>
    <imageobject>
      <imagedata fileref="foo.jpg" format="JPG">
    </imageobject>
    <textobject>
      <phrase>This is the alt text.</phrase>
    </textobject>
    </mediaobject>

Works fine for me and the ALT tags are good.

Regards,
Dan

-- 
Dan York, Director of Training        dyork@e-smith.com
Ph: +1-613-751-4401  Mobile: +1-613-263-4312 Fax: +1-613-564-7739 
e-smith, inc. 150 Metcalfe St., Suite 1500, Ottawa,ON K2P 1P1 Canada
http://www.e-smith.com/            open source, open mind


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]