[qmtest] RFE: result annotations
Mark Mitchell
mark at codesourcery.com
Wed Sep 24 14:42:51 UTC 2003
On Tue, 2003-09-23 at 23:09, Nathaniel Smith wrote:
> On Wed, Sep 24, 2003 at 12:56:05AM -0400, Stefan Seefeld wrote:
> > Mark Mitchell wrote:
> >
> > > It cares when it needs to print out the string with "qmtest summarize" or
> > > when it writes out another result stream. How would we get it back in
> > that
> > > case?
> >
> > I'd expect the python xml module to provide a way to serialize nodes similar
> > to xslt's <xsl:copy-of>. I'll look into it and try to come up with a little
> > patch as a proof of concept. Then you can see whether it fits your needs.
>
> Do we even know that annotations are, in general, proper XHTML?
> We've documented them as being HTML (though they're not even properly
> treated as that ATM; we don't handle character entities right at all),
> and HTML in real life is rarely well-formed XML. I'm worried that if
> we start parsing it as XML, we'll start getting parse errors
> who-knows-where...
Right now, we assume they are HTML, not XHTML.
And, we do handle character entities correctly in results files; they
are escaped.
If the HTML is invalid, it will be stored correctly in the results
files, but not displayed correctly in the GUI. (I'm not sure how to
correctly display invalid HTML, but we make no attempt to discern
validity; we just dump it into the web page.)
--
Mark Mitchell <mark at codesourcery.com>
CodeSourcery, LLC
More information about the qmtest
mailing list