On Sat, 01 Sep 2001 11:18:02 -0700, Dean Roddey wrote:
>If you are going to do the James Clark type tests, you must use a parser
>that does canonical output, are you doing that?
No, I do not yet do output conformance testing at all. Those test results are purely
based on the parse result (MUST be ok for valid files, MUST fail for non-wf tests,
etc.). With output conformance testing, only MORE errors could be generated, I
think.
This is the current checks, I think they correctly do what http://www.oasis-
open.org/committees/xml-conformance/suite-v1se/xmlconf-20010315.htm outlines as test
rules in sections 3.1 to 3.4:
msg = ''
severity = 'HI'
if type == "valid":
if result and result.type != "W":
msg = "Error for valid file"
elif type == "invalid":
if validate:
if not result or result.type == "W":
msg = "No error for invalid document reported"
elif result.type != "E" and self.strict:
severity = 'LOW'
msg = "Error was not reported as recoverable"
elif result and result != "W":
severity = 'MED'
msg = "Non-validating parser reported error for invalid document"
elif type == "not-wf":
if not result or result.type == "W":
msg = "No error for non-wellformed document reported"
elif result.type != "F" and self.strict:
severity = 'LOW'
msg = "Error was not reported as fatal"
elif type == "error" and strict and not result:
severity = 'LOW'
msg = 'Optional error was not reported'
(result.type is W, E, F for warning, error, fatal in the ErrorHandler)
>From the failing tests, some still seem bogus to me, like those that cannot find
files ("Could not open external entity 'sun\valid/null.ent'").
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]