Files
markepub/markepub/util.py
Bernhard Radermacher 80e30294db wip
2025-09-21 19:43:16 +02:00

9 lines
356 B
Python

from lxml import etree
def get_xhtml_template():
html = etree.XML('<?xml version="1.0"?>'
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"'
' "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'
'<html xmlns="http://www.w3.org/1999/xhtml"></html>')
tree = etree.ElementTree(html)
return tree