98c27fec85
Perform a bulk rename/move of many files and folders: paths previously prefixed with '01', '02', '03', '04', etc. were relocated to equivalent paths prefixed with '8'. Changes are path-only (R100 renames) and do not modify file contents; this reorganizes the repository structure.
15 lines
336 B
Python
15 lines
336 B
Python
from lxml import etree
|
|
|
|
xml = etree.parse("specialities.xml")
|
|
|
|
xslt = etree.parse("specialities.xsl")
|
|
|
|
transform = etree.XSLT(xslt)
|
|
|
|
result = transform(xml)
|
|
|
|
with open("specialities.html", "wb") as f:
|
|
f.write(etree.tostring(result, pretty_print=True, encoding="UTF-8"))
|
|
|
|
print("HTML успешно создан: specialities.html")
|