Hello,
Please look at the attached patch to speedup (~5x) `make postgres.epub`.
The optimization is similar to the previous one designed for xhtml.
Additional script attached to prove that the result of modified XSL
transformations is the same.
Best regards,
Alexander