Aristotle, > > > >> Depending on an entity reference and not being able to > > > >> accept the straight replacement text is just wrong. > > > > > > > > I agree. I'm just bringing up possible incompatibilities > > > > for debate! > > > > > > I don't think that's an incompatibility that deserves > > > catering for. > > > > Why not? Why be incompatible for the sake of incompatibility? > > That's just asking for trouble when Atom is used in ways not > > originally envisioned (and there always are). > > That’s bogus. Some software generates or processes non-wellformed > XML. Should Atom cater to that too? If not, where do you draw the > line between somewhat-broken software that Atom should support > and really-broken software that it should not?
Depends on the situation. :-) I think that Atom should support specifying doctypes since there're in the XML spec and are well-formed constructs (even if external subsets are not read). I'd like Atom to support having _all_ well-formed XML documents be possible atom:content (referenced by @src at least). > > HTML currently uses doctypes for switching between versions of > > the langauage. > > No, it doesn’t. Browsers do so, but only as a hack; the idea is > that an author who puts a DOCTYPE declaration in their document > *probably* cares about validity and so his document should > *probably* be treated as strict standards compliance requires. > But there is nothing in any spec that justifies this behaviour. How do you differentiate between XHTML 1.0 Strict and XHTML 1.0 Transitional without doctypes? > > There is no other way to properly interpret content without > > guessing in the current drafts. That is a worse sin inflicted > > upon programmers, than allowing the subset that do rendering to > > do naughty DOCTYPE sniffing. > > You don’t seem to understand XML. XML has something called > namespaces. Use them. I understand XML and namespaces. Lets keep the personal attacks out of this thread, and not start a flame war, OK? The problem is that there are specs which use one namespace for several versions! > > > > No, any well formed XML processor MUST expand internal > > > > entities and add replaced attributes as well. This is NOT > > > > OPTIONAL. > > > > > > So is expat non-conforming? > > > > If it doesn't, then it is non-conforming. > > Wrong. > > > That's how non-validating XML processors are defined by the > > spec. I quote from section 5.1 paragraph 4: > > > > [Definition: While they are not required to check the document > > for validity, they are REQUIRED to process all the declarations > > they read in the internal DTD subset and in any parameter > ^^^^^^^^ ^^^^^^ > > entity that they read, up to the first reference to a parameter > ^^^^^^^^^^^^^^ > > entity that they do not read; that is to say, they MUST use the > ^^^^^^^^^^^^^^^^^^^^^ > > information in those declarations to normalize attribute > > values, include the replacement text of internal entities, and > > supply default attribute values.] > > > > There is no room for any other interpretation, I think. > > Nowhere is a non-validating processor REQUIRED to read an > external DTD in the spec. Only *internal* declarations MUST be > processed and references resolved. Um, I was talking about internal declarations! Non-validating processors are required to read the external subset declaration (but they don't have to resolve and parse it) and the internal subset up to any paramater references they don't read. So in the following declaration everything must be read except for anything in the external file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [ <!ENTITY name "Jimmy Cerra"> ]> A non-validating processor will report the public and system ids as well as processing the entity declaration. Since the declaration of the external subset is used, in this case, to change semantics of the XHTML elements (namely, which version of the standard they conform to). -- Jimmy Cerra https://nemo.dev.java.net __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new Resources site http://smallbusiness.yahoo.com/resources/
