I generate SVGs like the following
<svg xmlns="http://www.w3.org/2000/svg" xmlns:foobar="http://foobar.com">
<path d="..." foobar:foo="bar"/>
</svg>
Without the custom attribute foo(and the namespace foobar), the entire SVG validates against the DTD. Clearly, I'm using the custom namespace wrong, as adding the foobar namespace and associated attributes causes xmllintto fail validation, starting with the declaration of xmlns:foobar=..., which itself is not an element of svg. Is my declaration wrong? Is it even possible to validate against the DTD when using custom namespaces/attributes?