« Return to Thread: imagedata EMPTY

Re: imagedata EMPTY

by pdschuller :: Rate this Message:

Reply to Author | View in Thread

> also, I am not sure if the alt tag is the right way to mark up html
> alt text. I usually use textobject inside imageobject.

to get the @alt attribute to get written to the html  element, I had to put the <textobject> in the <mediaobject> element.

         <mediaobject>
            <imageobject role="html">
               <imagedata format="GIF" fileref="images/myFilenamegif"/>
            </imageobject>
            <textobject>
               <phrase>the alt text goes here</phrase>
            </textobject>
         </mediaobject>

 - just a minor thing that may help someone out.



Elliotte Harold wrote:
Chris Chiasson wrote:
> try using <imagedata blah=blahblah />
>

Not really an option since this is automatically generated from XSLT,
and it shouldn't make a difference anyway.

> also, I am not sure if the alt tag is the right way to mark up html
> alt text. I usually use textobject inside imageobject.

That's a good point. TDG seems to ignore the alt element, but the DTD says:

<!ELEMENT mediaobject (info?, alt?,
(videoobject|audioobject|imageobject|textobject|imageobjectco)+, caption?)>

So the DTD allows ALT, but the documentation doesn't. Strange. I wonder
the RELAX NG schema says? It seems to allow the alt element as well:

     <define name="db.mediaobject">
       <element name="mediaobject">
         <a:documentation>A displayed media object (video, audio, image,
etc.)</a:documentation>
         <ref name="db.mediaobject.attlist"/>
         <ref name="db.mediaobject.info"/>
         <optional>
           <ref name="db.alt"/>
         </optional>
         <oneOrMore>
           <ref name="db.mediaobject.content"/>
         </oneOrMore>
         <optional>
           <ref name="db.caption"/>
         </optional>
       </element>
     </define>


Regardless I tried switching to textobject instead of alt, and it didn't
change anything. :-(

--
Elliotte Rusty Harold  elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org

 « Return to Thread: imagedata EMPTY