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

Re: Two Specs and Test Suite

From: Robin Berjon <robin@berjon.com>
Date: Mon, 27 Feb 2012 21:24:34 +0100
Cc: W3C XML-ER Community Group <public-xml-er@w3.org>
Message-Id: <3BC5E769-E735-4158-B277-54630076D3A8@berjon.com>
To: Jeni Tennison <jeni@jenitennison.com>
On Feb 27, 2012, at 21:09 , Jeni Tennison wrote:
> Therefore, I propose that we do both. Further, I'm happy to edit the declarative-style specification unless there's someone else who wants to do it. Are there any objections to that as a way forward?


> We will also need a test suite, and it sounds as if one that is based on the XML result of an ER parse would be easiest to manage and most generally useful. Does anyone have any suggestions about how best to manage and maintain one?

I think that the hard part in testing this is to do so in a manner that is friendly to both browser and batch environments. In the former, the easiest is to run assertions against the DOM that's produced, but in the latter it's likely to produce some form of canonical version (which doesn't have to be C14N  for instance PYX has historically been great for testing) or use some form of XML diff facility.

I don't think that there are any in-browser XML diff facilities, and it's not clear that there's a reliable XML serialiser we could use there. The simplest might therefore be to use PYX-based reference interpretations and those could be compared in either situation. But that's just one way that it could work and is entirely based on what I assume implementers will find most useful.

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

Coming up soon: I'm teaching a W3C online course on Mobile Web Apps
Received on Monday, 27 February 2012 20:24:58 UTC

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