RE: Some draft code for mobileOK Basic Tests RI

> 
> Hmm... I guess the approach you're suggesting would mean creating two
> piece of code: one to transform the input into the appropriate XML
file
> that would contain most of the data and some of the pre-analysis made
on
> it, and a test harness to run the on the resulting XML file.
> 
> I certainly like the idea, but I think the portability of the first
> piece of the code will be much lower than the second one.

Am I reading too much into what you are saying? Are you suggesting that
there is a pre-processing step that consists of:

a) Tidy-ing the HTML and recording the errors from that tidy.
b) Tidy-ing the CSS, recording the errors and transforming to some sort
of CSS-XML
c) [Tidy-ing the HTTP headers] Transforming to some kind of HTTP-XML
(noting the work on HTTP in RDF).
d) combine as a new input document.

In this case I think James's idea ref XPath would work, perhaps in the
context of an XSLT. 

So I guess a question is: could one define the mobileOK reference
implementation as an XSLT, given sufficiently strict definition of the
preceding steps?

Jo

Received on Tuesday, 6 February 2007 13:20:43 UTC