j Jozef
on

 

When the prefix-namespace declaration for the namespace "http://www.cdisc.org/ns/def/v2.0" is not on the top "ODM" element (where it is not necessary at all), but e.g. on the "MetadataVersion" (where it is needed because of def:DefineVersion), I still get an error DD0002 - Missing or invalid 'def' namespace reference. This error should not be thrown, as it is allowed to define namespaces everywhere in an XML document. It is not necessary at all to define them at the top element when not immediately necessary.

Most tools/libraries (including most java libraries) put the namespace declaration on the element where it is necessary for the first time. This is on "MetaDataVersion" in the case of define.xml.

Please change the rule so that local declaration of namespaces (i.e. non-top-level declaration) does not lead to such a false-positive. The validator should check whether each element and attribute "lives" in its correct namespace, not whether there is a namespace declaration at the top.

Forums: Define.xml

Want a demo?

Let’s Talk.

We're eager to share and ready to listen.

Cookie Policy

Pinnacle 21 uses cookies to make our site easier for you to use. By continuing to use this website, you agree to our use of cookies. For more info visit our Privacy Policy.