A simple docx Saxonica XSLT processor Install pip install saxonpy Run run it like: python test.py docx-samples/hello.docx