I keep thinking about when the Preprocessor is invoked. I want to run my thoughts by this list to see if anyone has any input on the matter.
Currently, the Preprocessor is invoked just before parsing begins. This is the most likely point the extension point will be used. However, it may also be useful to tap into the lifecycle after the header of the document has been read and parsed. After all, the header may contribute information/settings that can impact parsing internally.
Should the Preprocessor get invoked at this point as well?
- If so, should the same method be invoked (Preprocessor#process)?
In that case, how is the lifecycle phase communicated? (Perhaps the processor consults the existing Document#header? method)
- If not, should a separate method be called on the processor?
I look forward to any input you can provide!
-Dan