Fixed XSLT output being not formatted

This commit is contained in:
2023-03-03 10:00:06 +01:00
parent dd4cc34e6c
commit 85beef19d8

View File

@@ -97,5 +97,5 @@ def xslt(source: str, xslt: str) -> str:
document_input = BytesIO(source.encode("utf-8"))
xml = etree.parse(document_input).getroot()
transformated = xslt_transform(xml)
return str(transformated)
result = xml.xslt(xslt_transform).decode()
return result