[whatwg] XSLT: HTML 5 --> HTML
Henri Sivonen
hsivonen at iki.fi
Tue Feb 6 04:21:47 PST 2007
On Feb 6, 2007, at 14:04, Elliotte Harold wrote:
> Henri Sivonen wrote:
>
>> My parser[1] doesn't follow the WA10 parsing algorithm, either,
>> *yet*. However, as a tentative Pythonless Java solution, you could
>> use it together with a RELAX NG validator in the pipeline (using
>> the whattf.org schemas[2]) to implement Draconian failure in cases
>> where the error recovery would kick in as per the WA10 parsing
>> algorithm.
>
> Java's certainly more attractive to me than Python. I think I'd
> avoid Draconian error handling for the initial step and just see
> what comes out at the end.
My parser, in its current version, is designed with the assumption
that it is used together with a sane RELAX NG schema. If used alone
without a validation layer with non-conforming input, it will (by
design) produce non-conforming output.
--
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
More information about the whatwg
mailing list