Details
-
Type:
Task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
Description
For some elements (especially tables and figures), it is essential that a parser emits events in a specified order. We could adapt the WellformednessCheckingSink to test that.
Issue Links
- relates to
-
DOXIA-177
Invalid XHTML because of wrong position of table caption
-
Actually I think it is not possible to do this generally, at least I don't see how to enforce a particular event order for arbitrary parsers. We could define some standard parsing sequence for certain elements, but these would have to be checked on a per-parser level anyway. So in practice I guess it's just easier to assure that sinks are flexible enough to deal with any (reasonable) order of parsing events, so that the output is valid for the given format. (Btw I have added a SinkEventTestingSink that can be used to test event sequences of particular parsers).