slide 16
How to validate that your documents are namespace-clean
“Namespace clean” is a property of XML
syntax
not the data model
This makes it hard to check by examining the standard data model
How about a process that is not namespace-aware?
DTD validation?!?
Force namespace declaration attributes to be explicit
<!ATTLIST article xmlns:mml (http://www.w3.org/1998/Math/MathML) #REQUIRED >
Or XPath 2.0 can do it by inference
Every element has the same namespaces for the same prefixes on every element
At the top, no namespace is assigned more than one prefix
See Schematron on
slide 23
Mulberry Technologies, Inc. • Taming the Namespace Beast • JATS-Con 2011