W3C home > Mailing lists > Public > www-html@w3.org > October 2004

Re: [XHTML2] Specifying alternative resources/content

From: <trejkaz@xaoza.net>
Date: Wed, 20 Oct 2004 14:13:19 +1000
To: www-html@w3.org
Message-ID: <20041020041318.GB28416@dev.xaoza.net>
Incidentally, in my last job, I had to design a DTD with rather similar
requirements for fallback text.  We needed descriptions of the relevant
objects, without displaying the description where the object wasn't visible.

What we ended up doing was something like this, which won't be very handy
for XHTML, most likely... but who knows.

    <alternative type="video/mpeg">
        <p>Here is a video of ...</p>
        <p><object type="video/mpeg" src="..."/></p>

    <alternative type="image/png">
        <p>Here is a picture of ...</p>
        <p><object type="image/png" src="..."/></p>

        <p> I <em>would</em> have something to show you, but unfortunately
            it seems that I will have to speak a thousand words to write

That enabled us to process which one to render without needing to look ahead
at all.  But in the case of XHTML2, there might be multiple objects inside
each section, and who knows how that would be handled (multiple types in the
'type' attribute on <alternative>?)

The current XHTML doesn't do enough to implement this, for the aforementioned
reasons (the description of the picture would still be rendered even if the
picture isn't there.)


             Email: Trejkaz Xaoza <trejkaz@xaoza.net>
          Web site: http://xaoza.net/trejkaz/
         Jabber ID: trejkaz@jabber.xaoza.net
   GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F  A62C B8C7 BC8B 037E EA73

Received on Wednesday, 20 October 2004 03:46:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:09 UTC