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.
(Similar considerations apply to GenX if the user chooses to leave namespace declaration management to the serializer.)
Consumers don't want full web pages (complete with html head and titles) as summaries, they want something that they can *insert* into a web page.
Insertion is possible without a div as well if the insertion is implemented using proper XML tools and the target of the insertion is a real XHTML skeleton and not a tag soup skeleton and the resulting document is sent down the XML code path of Gecko, WebCore, Presto, etc. For Trident, the aggregator would have to serialize to HTML, which is pretty easy.
On the other hand, a div does not make Atom safe for tag soup concatenators, because the element names may be prefixed.
If element names are prefixed, string concatenation is not an option anyway.
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.
- Sam Ruby
