[OAI-implementers] embedded xml / namespaces

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


Hi,

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.

http://china2.dwd.de:8080/oai/provider?verb=GetRecord&metadataPrefix=iso19139&identifier=urn:x-wmo:md:int.wmo.wis.test3::ULBU01_LZSO

http://openwis-oai.akka.eu/openwis-admin-portal/srv/en/oaipmh?verb=GetRecord&identifier=urn:x-wmo:md:int.wmo.wis.test5::FKIO20FMEE&metadataPrefix=iso19139

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

best regards
Timo




More information about the OAI-implementers mailing list