On Jan 29, 2005, at 00:39, Sam Ruby wrote:

Henri Sivonen wrote:
On Jan 28, 2005, at 20:21, Sam Ruby wrote:
I also don't like the restriction on where namespace declarations must
be placed, but overall, I believe that the pace is a good idea.
I, for one, use gnu.xml.pipeline.NSFilter for ensuring the namespace correctness in my RSS feed. If the current spec language stands, I will be able to trivially add Atom output with type='XHTML' by doing a DOM to DOM copy (without div cruft) and letting the serialization phase sort out the namespace declarations for me. If this pace was accepted, I'd have to break the namespace abstraction and fiddle with the namespace declaration details to meet additional requirements that are unnecessary as per "Namespaces in XML".

Are you saying that you can do a DOM to DOM copy to place a series of elements inside the following:


  atom:feed/atom:entry/atom:content

But you would find it extraordinarily difficult to place the exact same series of elements inside the following:

  atom:feed/atom:entry/atom:content/xhtml:div

If so, I would find such an assertion to be hard to accept.

No, of course those two are equally easy. The latter is just crufty.

My point was that having the namespace declarations appear in a particular choice of syntactic sugar would hinder the use of an automatic namespace declaration manager.

If element names are prefixed, string concatenation is not an option anyway.

Which is why it would be harmful to imply that a string concatenation implementation was ok.


If element names are not prefixed (as is the case with the overwheming majority of existing HTML), adding a div is exactly what makes things safe for simple string concatenators.

I don't see how it makes string concatenation easier that concatenating the contents of the Text construct otherwise. But since it doesn't work in all cases, it certainly should not be specced for. Speccing for tag soup concatenation would just encourage implementors to do tag soup concatenation. Wasn't the whole reason for the existence of type='XHTML' to provide something that is more sound from the XML point of view than entity-encoded HTML?


And no, a div does not give any useful hint to the ViewSourceClan, because it is an anything goes element.

I am sorry I brought up the subject of Text constructs. How about withdrawing both PaceTypeTextRedundant and PaceXhtmlNamespaceDiv and sticking to what draft-ietf-atompub-format-04 said?

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



Reply via email to