I dont see the difference. In either case you are applying an XSLT transform to the text. So all you have to do is hit save in the editor, then run your tool with calibre-debug. If you want it integrated in the editor, to avoid the separate step of running your tool, you will need to write an editor plugin for that.
Although, if I were you, I'd ditch XSLT and just directly use lxml. Much nicer to use than XSLT.
|