We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35b6f68 commit 4f05e37Copy full SHA for 4f05e37
1 file changed
src/clj/mdr2/dtb/xml.clj
@@ -45,6 +45,11 @@
45
(list (xml/element ::xhtml/meta {:name "ncc:kByteSize" :content value})))
46
node))
47
48
+;; Insert a xmlns attribute in the root node to avoid namespace
49
+;; prefixes in all nodes. See
50
+;; https://github.com/clojure/data.xml?tab=readme-ov-file#namespace-support
51
+;; and
52
+;; https://ask.clojure.org/index.php/8788/possible-namespace-aliases-emitted-strings-clojure-alpha6
53
(defn insert-xmlns [node]
54
(assoc-in node [:attrs :xmlns] xhtml-uri))
55
0 commit comments