pyhwp1 / verify_xslt.py
seawolf2357's picture
Upload folder using huggingface_hub
619197a verified
from hwp5.plat import get_xslt_compile, _lxml, xsltproc
print(f"lxml enabled: {_lxml.is_enabled()}")
print(f"xsltproc enabled: {xsltproc.is_enabled()}")
compiler = get_xslt_compile()
print(f"Selected Compiler: {compiler}")
if compiler:
print(f"Compiler module: {compiler.__module__}")
try:
import lxml.etree
print("lxml.etree imported successfully.")
except ImportError as e:
print(f"lxml import failed: {e}")