[OAI-implementers] I have problems with OAI
Simeon Warner
simeon at cs.cornell.edu
Wed Feb 23 14:44:15 EST 2005
Daniel,
You should not include the illegal identifier in the <request> element.
The response you quote below is not schema valid because the 'identifier'
attribute of the <request> element is not a valid value for type 'anyURI'.
The OAI-PMH specification
[http://www.openarchives.org/OAI/2.0/openarchivesprotocol.htm#XMLResponse]
says:
> The rules for generating the request element are as follows:
> ...
> o In cases where the request that generated this response resulted in
> a badVerb or badArgument error condition, the repository must return the
> base URL of the protocol request only. Attributes must not be provided
> in these cases.
Your response should include a badArgument error since the identifier
supplied is illegal (not just non-existent). Then the rule above applies
and your <request> element should be simply:
<request>http://www.ifeanet.org/phpoai2-1.5/php_oai/oai2.php</request>
Cheers,
Simeon
On Wed, 23 Feb 2005, Daniel Manchego wrote:
>
> Hello,
>
> I have implemented the OAI in my website, but at the time of making the
> test, it leaves the following error to me:
>
> (30) Testing : GetRecord (invalid_id, oai_dc)
> URL :
> http://www.ifeanet.org/phpoai2-1.5/php_oai/oai2.php?verb=3DGetRecord&iden=
t
> ifier=3Dinvalid\"id&metadataPrefix=3Doai_dc
> ------ Response from Xerces Schema Validation ------
> [Error] re.wWUN2I:7:81: cvc-datatype-valid.1.2.1: 'invalid"id' is not a
> valid value for 'anyURI'. [Error] re.wWUN2I:7:81: cvc-attribute.3: The
> value 'invalid"id' of attribute 'identifier' on element 'request' is not
> valid with respect to its type, 'identifierType'.
> /tmp/re.wWUN2I: 745;11;0 ms (4 elems, 7 attrs, 0 spaces, 149 chars)
> ------- End of Xerces Schema Validation Report -------
> ------ Start of XML Response ------
> <?xml version=3D"1.0" encoding=3D"UTF-8"?>
> <OAI-PMH xmlns=3D"http://www.openarchives.org/OAI/2.0/"
> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=3D"http://www.openarchives.org/OAI/2.0/
> http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
> <responseDate>2005-02-23T17:38:12Z</responseDate>
> <request verb=3D"GetRecord" identifier=3D"invalid"id"
> metadataPrefix=3D"oai_dc">http://www.ifeanet.org/phpoai2-1.5/php_oai/oai2=
=2E
> php</request>
> <error code=3D"idDoesNotExist">The value 'invalidid' of the
> identifier is illegal for this repository.</error> </OAI-PMH>
>
> I have been reviewing, but I cannot find the error.
>
> Could you help me, please?
>
> Best Regards.
>
> --
> Daniel Manchego
> Web Administrator
> http://www.ifeanet.org
> INSTITUT FRANCAIS d'ETUDES ANDINES
> Tlf. 4476070 Cel. 93569056
> Lima - Per=FA
>
>
> _______________________________________________
> OAI-implementers mailing list
> List information, archives, preferences and to unsubscribe:
> http://www.openarchives.org/mailman/listinfo/oai-implementers
>
More information about the OAI-implementers
mailing list