[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Generate relative longdesc on <img>?
Hi,
The directory in the longdesc attribute of the an
<img> element comes from either a dbhtml dir processing instruction if the
mediaobject has one, or the base.dir param.
The W3C designates the longdesc attribute as a URL,
which means it should be relative to the HTML file that contains it. Using
either the dbhtml dir or the base.dir in that attribute is not correct, because
then the link path from the HTML file (which is in base.dir) would be
wrong. So I consider this a bug in the stylesheet.
Like you said, it doesn't seem to matter much,
because the <a href> link to the actual long description file is correctly
constructed relative the the HTML file. And this W3C page:
says "Tip: The longdesc attribute is so poorly
supported that it should not be used. To offer a long description of an image,
simply create a link (that is visible to anyone) to a page with the
description."
The HTML5 spec appears to have dropped the longdesc
attribute entirely. Since DocBook XSL generates a visible link, I'm
tempted to drop support for this attribute in the stylesheets rather than
fix it since it appears to be useless. Any objections?
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]