Maxime Devos <maximede...@telenet.be> writes: >> (xml->sxml "<foo xmlns=\"http://example.org/ns1\">text</foo>") > If you remove a single namespace, apparently that’s true, but what if > multiple namespaces are removed? Does it still work then?
Yes, it still works: (import (sxml simple)) (define xml-string "<mus xmlns=\"http://foobar\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" alttext=\"\\frac{1}{2}\" display=\"block\"><a /></math><b /></mus>") (xml->sxml xml-string #:namespaces '((#f . "http://www.w3.org/1998/Math/MathML"))) ;; (*TOP* (http://foobar:mus (math (@ (display "block") (alttext "\\frac{1}{2}")) (a)) (http://foobar:b))) (xml->sxml xml-string #:namespaces '((#f . "http://foobar") (#f . "http://www.w3.org/1998/Math/MathML"))) ;; (*TOP* (mus (math (@ (display "block") (alttext "\\frac{1}{2}")) (a)) (b))) Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de
signature.asc
Description: PGP signature