Refactored log/error handling for EPUB stylesheets.