- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Sat, 13 Nov 2021 21:36:39 +0000
- To: ixml <public-ixml@w3.org>
- Message-Id: <1636838816630.2892502551.2243299659@cwi.nl>
Currently my implementation reports a parse failure like this: *** Parsing failed at line 1, position 2 a b. ^ *** Permitted at this position: [",.;:'?!"]. but the spec says "If the parse fails, some XML document must be produced with ixml:state="failed" on the document element. The document should provide helpful information about where and why it failed; it may be a partial parse tree that includes parts of the parse that succeeded." Any opinions on how suitably to return this information? <report ixml:state="failed" xmlns="https://invisiblexml.org/NS" xmlns:ixml="https://invisiblexml.org/NS"> *** Parsing failed at line 1, position 2 a b. ^ *** Permitted at this position: [",.;:'?!"]. </report> <report ixml:state="failed" xmlns="https://invisiblexml.org/NS" xmlns:ixml="https://invisiblexml.org/NS"> <message position="line 1, position 2">Parsing failed</message> <line>a b.</line> <pos> ^</pos> <message>Permitted at this position: [",.;:'?!"].</message> </report> Steven
Received on Saturday, 13 November 2021 21:36:55 UTC