Re: Why Doesn't IE5 use the DTD to Validate?

Subject: Re: Why Doesn't IE5 use the DTD to Validate?
From: James Clark <jjc@xxxxxxxxxx>
Date: Fri, 02 Apr 1999 10:21:54 +0700
Reading the DTD and validating aren't the same thing.  Unless a document
has standalone="yes", the browser should always read a provided DTD so
that it can correctly

- default attributes
- normalize attribute values
- expand entity references

None of these things involve validation.

Jelks Cabaniss wrote:

> Say you have in one DTD
> 
>         <!ELEMENT masterpiece (#PCDATA)>
>         <!ATTLIST masterpiece author CDATA #FIXED "Didier">
> 
> and in another DTD,
> 
>         <!ELEMENT masterpiece (#PCDATA)>
>         <!ATTLIST masterpiece author CDATA #FIXED "Chris">
> 
> the only difference being the attribute value ...
> 
> Now, what happens when you have stylesheet with
> 
>         masterpiece[author="Didier"] { color: red;  /* ... */ }
>         masterpiece[author="Chris"]  { color: green;  /* ... */ }
> 
> for a document containing
> 
>         <masterpiece>Hark, ye dudes!</masterpiece>
> 
> How can you apply the rule if you haven't read the DTD?
> 
> ???


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread