wardy1975@gmail.com wrote:[color=blue]
> However, in my reading I have come across some discrepancies in my
> attempt to understand these standards. In a perfect world, I would
> render my content as "application/xhtml+xml" as is the recommendation
> from the W3C, but unfortunately this is the real world, and the
> application needs to be backward compatible and work in IE. I plan to
> use content negotiation if possible, but may end up *sigh* always
> rendering as "text/html" MIME type.[/color]
Don't bother with content negotiation, just stick with HTML 4.01.
Sending application/xhtml+xml to Mozilla/Firefox currently prevents
incremental rendering of the page, which would be a fairly major problem
for a relatively large page downloaded over a dialup connection and
still a minor annoyance for those with faster connections.
[color=blue]
> The problem I have is that our application uses and requires
> proprietary attributes for html attributes, such as "required", which
> the validator throws as an error.[/color]
Then, your application is broken. You could instead use
class="required" and then any client side scripts that currently make
use of the required attribute could just look for that instead.
[color=blue]
> In doing some research, it appears that I could customize the DTD to
> include these attributes, and then some validators (apparently not the
> W3C one, which I have heard doesn't understand customized DTD's).[/color]
No, it understands them just fine, except that when you validate with a
custom XML DTD, you need to use a MIME type that will trigger XML
parsing mode, instead of SGML mode. It defaults to SGML mode for
unknown DTDs. Since you'll be serving it as text/html, you may as well
use a customised HTML 4 DTD.
[color=blue]
> And now the questions.....
> 1. Is it allowable to customize a DTD so that custom attributes do not
> throw validation errors?[/color]
Yes.
[color=blue]
> 2. Does rendering a page with MIME type "text/html" still recognize
> custom DTD declarations?[/color]
Yes, but the W3C validator will parse it with SGML mode instead of XML mode.
[color=blue]
> 3. Is it allowable to not use a custom DTD, and on the web site state
> that we are XHTML 1.0 Strict compliant, use the little W3C compliant
> logo, and elaborate that the only non-valid sections are proprietary
> tags?[/color]
When it comes to those little icons, there's basically an honesty policy
in effect. Nothing will happen to you for using them on an invalid
page, except that the lie might confuse people (assuming they aren't web
developers) that click on it, wondering what on earth the little icon
means; in which case they'll be presented with an equally confusing
error message that they won't have a clue how to fix.
[color=blue]
> 4. If we do use a custom DTD, which the W3C validator doesn't
> understand, can we still use their logo for compliance if we validate
> on another validator (such as the WDG's)?[/color]
Again, there's nothing stopping you from lying.
[color=blue]
> 5. Do the validators provided in Firefox and the IE Dev toolbar beta,
> for example, understand custom DTD's?[/color]
What? I'm assuming you mean something like the web developer toolbars
for Firefox and IE, which simply make use of the W3C validator, or maybe
the HTML Tidy extension for firefox, which makes use of HTML Tidy. I'm
not sure whether HTML Tidy supports custom DTDs or not.
These artices should be useful for you.
http://www.cs.tut.fi/~jkorpela/html/own-dtd.html http://www.cs.tut.fi/~jkorpela/html/validation.html
In particular, take note of the section about the validation icons in
the validation article.
--
Lachlan Hunt
http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox