A validation plugin is not an edit plugin. It simply finds and reports errors from what is inside Sigil currently, that allows the user to easily visit each error after the plugin ends.
You validation plugin gets those file contents via the launcher interface code to prevent issues. There are a variety of interface calls to get a copy of the entire epub or specific types based on iterators.
It should not be opening an external .epub file and trying to map errors inside to what is already inside Sigil.
|