W3C home > Mailing lists > Public > public-xml-er@w3.org > March 2012

Re: tag name state

From: Robin Berjon <robin@berjon.com>
Date: Sun, 4 Mar 2012 19:44:18 +0100
Cc: "public-xml-er@w3.org Community Group" <public-xml-er@w3.org>
Message-Id: <BA1E76FE-52BB-4E7E-86D1-605FB9F2AB5A@berjon.com>
To: Noah Mendelsohn <nrm@arcanedomain.com>
On Mar 3, 2012, at 04:04 , Noah Mendelsohn wrote:
> What I am suggesting we consider is a model that builds on the XML Recommendation, since that's what we're trying to "fix up to".

I don't believe that this is the primary goal however.

The first and foremost use case that prompted this work was the ability to use XML in user-facing scenarios in such a manner that users are not the ones being punished for WF errors. The fact that users get a terrible experience whenever there's a WF error makes XML nothing short of a terrible format for user-facing content. It would be helpful to fix that.

But all that that requires is parsing into a DOM. It does not require the ability to serialise to XML, and it does not require compatibility with the XML DM.

That is not to say that the two latter are not important, or useful. They're actually pretty nice things to have around.  But, to say this yet again, it would be most useful to have access to the two latter *also* when the input is not XML but anything else that produces a DOM  especially if it is HTML.

The only viable manner of addressing the latter case is with a DOM to XML conversion algorithm. Assuming we have that, all that XML-ER needs to do is output a DOM, which can then be converted.

This has advantages that none of the alternatives have:

     We already have a lot of the specification work done.
     It takes the "HTML at the front of an XML pipeline" case into account.
     It uses the DOM, which is the simplest and loosest model.
     It is more user(-agent)-friendly.

In general it also seems (to me) a lot closer to the sort of things that people in the HTML/XML TF or at XML Prague have indicated they were interested in doing.

Robin Berjon - http://berjon.com/ - @robinberjon

Coming up soon: I'm teaching a W3C online course on Mobile Web Apps
Received on Sunday, 4 March 2012 18:44:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:47:26 UTC