[OAI-implementers] embedded xml / namespaces

Timo Proescholdt timo at proescholdt.de
Tue Mar 29 07:42:30 EDT 2011


when embedding xml in GetRecord and ListRecords responses one has to make
a decision on how to deal with namespaces. If a namespace is declared both
in the conatainer OAI xml and the embedded xml document, it is correct
behaviour for a xml library to remove the redundant inner declaration.
However, a naive harvester that just cuts out the embedded xml will loose
the namespace declaration, making the document invalid.

Different OAI providers implement different behaviour here. joai seems to
fully embed the xml document, without any changes to namespace
declarations. Other implementations, however, treat the oai response as a
full xml document, removing duplicate namespace declarations.

The following two links illustrate this. Both metadata records originally
defined a xsi xml schema namespace (although they are not the same
document). The OAI GetRecord response also defines xsi. In the first one
the embedded xml retains the xsi declaration, in the second it does not.



Does anyone have a guideline how xml that gets embedded into the OAI
response xml has to be treated namespace-wise?

best regards

More information about the OAI-implementers mailing list