Homepage: https://theme.roundabout-host.com

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 themes.py

View raw Download
text/plain • 201 B
ASCII text
        
            
1
import lxml.etree as ET
2
3
dom = ET.parse("themes.xml")
4
xslt = ET.parse("themes.xsl")
5
transform = ET.XSLT(xslt)
6
newdom = transform(dom)
7
with open("themes.html", "w") as file:
8
file.write(str(newdom))
9