You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Wolfgang Kaltz <jw...@yahoo.com> on 2004/07/09 12:25:53 UTC

Re: Adding ALT text to an image

Gregor J. Rothfuss <gregor <at> apache.org> writes:

> 
> Christian Egli wrote:
> 
> >>+1 to get ALT attributes editable by default. Please file a bugzilla bug
> >>if possible. 
> > 
> > 
> > afaik the title attribute is used as the alt tag.
> 
> yes because the object tag we use for images has no alt atrribute. the 
> mapping is title -> alt in the xslt iirc.
> 

Actually, in the XSLT file of the default publication it is looking up the 
attribute "name", not "title". If there is no attribute "name", if uses 
"dc:metadata/dc:title"
(xhtml2xhtml.xsl, line 83)

If you insert an image using BXE, both these values are empty.
If I replace "name" by "title", it's OK (because the attribute title does
contain the title provided by the user).

Should I file a bug ? (i.e. should there actually be a "name" attribute,
or should it be replaced by "title") ?




---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Adding ALT text to an image

Posted by "Scherler, Thorsten" <th...@apache.org>.
Wolfgang Kaltz wrote:

> Thorsten Scherler <thorsten.scherler.ext <at> juntadeandalucia.es> writes:
> 
>>Yes, please fill a bug!
> 
> 
> It's now filed under
> http://issues.apache.org/bugzilla/show_bug.cgi?id=30000
> (I'm so happy I got such a nice bug number)
>

:) LOL


> 
>>Thanks for that info!
>>
>>Why not using alt directly? 
> 
> 
> Images are stored under an <object> tag, and this does not have the alt tag.
> In an older mail, it was said that <object> is better for the handling of
> the meta-data.

...but if it is stored in an object tag then we just can extend the dtd 
(or schema) to allow as well alt- attributes, or not?

I think it is quite confusing to use either the name or the title 
because alt is something different. An image can have a title e.g.

<img class="logoImage" alt="Apache Cocoon" 
src="images/cocoon-project-logo-big.png" title="The Apache Cocoon 
project is the open source community project developing Apache Cocoon 
  and Cocoon-based application frameworks.   ">

WDYT?

thorsten
-- 
<thorsten>
  <name>Thorsten Scherler</name>
  <country>Spain</country>
  <@m...@mail>
  <@cocoon-WIKI>
http://wiki.apache.org/cocoon/Scherler
</...@cocoon-WIKI>
  <acronymfinder>
http://www.acronymfinder.com/af-query.asp?String=exact&Find=Find&Acronym=
  </acronymfinder>
  <motto>
    "My task which I am trying to achieve is,
     by the power of the written word,
     [...] to make you see."
     *Joseph Conrad (1857-1924)*
  </motto>
</thorsten>



---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Adding ALT text to an image

Posted by Wolfgang Kaltz <jw...@yahoo.com>.
Thorsten Scherler <thorsten.scherler.ext <at> juntadeandalucia.es> writes:

> >Should I file a bug ? (i.e. should there actually be a "name" attribute,
> >or should it be replaced by "title") ?
> >
> >
> >  
> >
> 
> Yes, please fill a bug!

It's now filed under
http://issues.apache.org/bugzilla/show_bug.cgi?id=30000
(I'm so happy I got such a nice bug number)

> 
> Thanks for that info!
> 
> Why not using alt directly? 

Images are stored under an <object> tag, and this does not have the alt tag.
In an older mail, it was said that <object> is better for the handling of
the meta-data.



---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Adding ALT text to an image

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
Wolfgang Kaltz wrote:

>Gregor J. Rothfuss <gregor <at> apache.org> writes:
>
>  
>
>>Christian Egli wrote:
>>
>>    
>>
>>>>+1 to get ALT attributes editable by default. Please file a bugzilla bug
>>>>if possible. 
>>>>        
>>>>
>>>afaik the title attribute is used as the alt tag.
>>>      
>>>
>>yes because the object tag we use for images has no alt atrribute. the 
>>mapping is title -> alt in the xslt iirc.
>>
>>    
>>
>
>Actually, in the XSLT file of the default publication it is looking up the 
>attribute "name", not "title". If there is no attribute "name", if uses 
>"dc:metadata/dc:title"
>(xhtml2xhtml.xsl, line 83)
>
>If you insert an image using BXE, both these values are empty.
>If I replace "name" by "title", it's OK (because the attribute title does
>contain the title provided by the user).
>
>Should I file a bug ? (i.e. should there actually be a "name" attribute,
>or should it be replaced by "title") ?
>
>
>  
>

Yes, please fill a bug!

Thanks for that info!

Why not using alt directly? 

thorsten

-- 
Thorsten Scherler



---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org