On May 28, 2005, at 05:28, James Cerra wrote:

Henri Sivonen,

Yes, but MSIE^H^H^H^Hsome xml processors (cough  cough) still
inappropriately
use comments for that purpose.

I am not familiar with that. What purpose exactly? Why should Atom
support it?

MSIE conditional comments.  See other person's reply.

I thought they were for text/html tag soup only. Anyway, I think Atom should not try to enable such bogosity in XML.

And yes: I know that Atom is not FTP or HTTP. I'm looking at the Atom entry uploader's POV rather than the downloader's perspective. The Atom API is a way
to simplify managing web sites:

Is it really? Straight bytes over HTTP PUT seems a lot simpler to me than Base64 in an XML envelope over HTTP PUT.

Vanilla XML processors don't act on PIs. They report them to the
application--in this case the Atom processor.

So Atom Processors MUST be between any XML and PI processor stages? That sucks! It means just to display Atom, I can't use a generic XSLT processor
like Saxon or MSIE.

What PIs do they act on besides the style sheet PI, which must appear in the prolog (so conforming tools should not act on it if it appears within atom:content)?

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.

That's a non-issue. You don't just throw away the DOCTYPE but parse the
original document with it and reserialize as a DOCTYPEless fragment.
You don't lose well-formedness or content. You only lose the shallow
attribute data typing provided by the DTD.

Well, that data could be valuable.

IDness is. For practical purposes, the other stuff is not. There are other solutions for IDness.

With DOCTYPE information associated with embedded content, it becomes possible to
transform entries into valid XML or HTML documents.

What do you need valid documents for if the validity is just an property internal to the document? That is, the document is valid according to its own rules as opposed to conforming to the rules required by some downstream software.

Some apps change their behavior with well-formed and valid modes.

That seems like a bad idea. Can you give examples?

DOCTYPE switching may be evil, but it is currently a necessary evil.

It is not a necessary evil for XML. I am strongly against any Atom feature motivated by or designed for enabling and/or encouraging doctype sniffing in XML.

Please see http://hsivonen.iki.fi/doctype/#xml

I see this as low risk (it doesn't break anything and could even be an OPTIONAL feature)

Optional features always have a cost. Also, they tend to become de facto mandatory for everyone or de facto useless for everyone.

Atom's main purpose is to facilitate software to software
communication. When interop or implementation ease and readability
conflict, readability should yield.

That's why I proposed they should be externally referenced (or base64ed), so the Atom processor doesn't touch them! This is a hint to authors on how to
avoid a common error.

Base64 XML in XML was rejected earlier in the working group process.

There is nothing intrinsically bad about DOCTYPE sections

Yes, there is. On the Web you cannot trust that the recipient is using
an XML processor that processes the DOCTYPE beyond checking the
internal subset for well-formedness. An optional feature that does not
degrade gracefully when not supported is bad. DOCTYPE is such a
feature. In the cases where the DOCTYPE can be gracefully ignored, the
DOCTYPE is pointless.

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?

Atom is not claiming that you could embed the literal source of any XML
doc. You can embed the stuff that canonicalization would preserve.

Yet you can do that with PNG, PDF, or other content via base 64 encodings. It
is silly to allow that for them and not XML.

Looks like straight HTTP without an Atom envelope in between suits your needs better.

--
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/

Reply via email to