[OAI-implementers] same xml namespace declaration in header
jyoung at oclc.org
Fri Sep 23 12:24:33 EDT 2011
One solution would be to deliver RDF/XML as an OAI "metadata format".
Since RDF is statement-based rather than record-based, you wouldn't have
to worry about xsi:schemaLocation or its namespace.
> -----Original Message-----
> From: oai-implementers-bounces at openarchives.org [mailto:oai-
> implementers-bounces at openarchives.org] On Behalf Of Timo Proescholdt
> Sent: Friday, September 23, 2011 8:29 AM
> To: oai-implementers at openarchives.org
> Subject: [OAI-implementers] same xml namespace declaration in header
> Dear all,
> the XML payload of an OAI response (GetRecord,ListRecords) can in
> circumstances contain the same namespace declaration as the OAI
> the whole document (skeleton and payload) is treated as one DOM by the
> provider, the additional namespace declaration in the payload is
> (by any smart DOM library). A naive harvester, that only textwise cuts
> the payload out of the OAI response, will then encounter an invalid
> document (with missing namespace declarations).
> For instance, the OAI-PMH root element declares
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance". This is likely
> be also present in a XML document that is embedded as payload.
> Considering that it is impossible to rid the world of naive
> the question is how an OAI provider should deal with this. Should it
> two namespace declarations in the response? It is surprisingly
> to do this, because most DOM libraries automatically remove redundant
> how is this problem addressed out there?
> thanks and best regards
> OAI-implementers mailing list
> List information, archives, preferences and to unsubscribe:
More information about the OAI-implementers