On Aug 9, 9:53 am, "Leslie P. Polzer" <[email protected]> wrote: > On Aug 8, 8:44 pm, Maciej Katafiasz <[email protected]> wrote: > > > Stephen, why exactly is that? > > You probably want to forward this mail to him in private, I'm not > sure he's reading everything that hits this list right now.
Will do. > > The problem is that weblocks does not output XHTML[*] but HTML, and > > browsers see it as such. Thus it should be parsed by a HTML parser. > > It'd be silly to have to require both CXML and closure-html to parse > > the output of the same request twice and process it in different ways. > > I'm not sure how you mean that, but CLOSURE-HTML can convert HTML > to XHTML. The transform isn't that elaborate so it should work nicely. I mean that Stephen's work on unification is based on cxml (ie. closure-xml). Weblocks outputs HTML however. This means that 1) it's conceptually wrong to use cxml for testing 2) to parse the output properly (for instance for behaviour testing), you need closure-html. The parse given by an XML parser is not reliable and is allowed to differ in many ways, some significant to the interpretation and correctness of the results. Ie. if you use an XML parser on Weblocks's output, you are not testing what the browsers see. It's true that cxml and closure-html can convert between HTML and XML, but that doesn't change the fact that cxml is the wrong choice for testing Weblocks's output. It's like trying to use a CLtL1 implementation to run an ANSI CL programme, They are remarkably similar languages, and in many cases the code will look and work the same, but if you use the wrong one, you will run into cases where the result is different, correct code is rejected or incorrect accepted. Cheers, Maciej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
