Re: Validating XHTML with embedded RDF

On Thursday 26 June 2003 03:44, Masayasu Ishikawa wrote:
> > 1. added my own entity declaration (<!ENTITY ent1 "Hello">) and used it
> > (&ent1) in an xhtml document; your schema considered the instance
> > valid. 2. used an entity (&ent2) in an xhtml document that wasn't
> > declared; your schema *still* considered it valid.
>
> It really depends on how exactly you wrote your document.  If you didn't
> include any document type declaration and used an undefined entity,
> it's not a validity error, but a well-formedness error.

Right, if I remove the DOCTTYPE, the validates complains on the "&deg;" 
entity that I used on my test page. (It's not even one I defined, but 
available to HTML.) I have some more learning to do with respect to how a 
schema processor acts on a instance with a DTD.

> I've been arguing to drop mandatory support for character entities
> (and mandatory requirement to include a document type declaration
> in a strictly conforming XHTML 2.0 document) from XHTML 2.0 for
> a long time, partly because I believe supporting RDF is more
> important than requiring support for a fixed set of character
> entities.  It's been a long debate, and I have to say I'm not on
> the majority side.

Hrmm... Ok.

Received on Friday, 4 July 2003 09:27:46 UTC