EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #01400
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Problems with the auto-generated XSD schema in 3.2
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Problems with the auto-generated XSD schema in 3.2
- From: Mark Gregson <mark.gregson@qut.edu.au>
- Date: Mon, 17 Dec 2012 16:04:05 +1000
I’m trying to use the auto-generated XSD schema at /cgi/schema in 3.2 to assist with some integration work involving SWORD and EPrints XML packages. The schema is making it difficult to validate the XML packages we are using. · The encoding attribute on the data element is not allowed by the schema even though it is supplied by the XML with files embedded export plugin. · All sub-fields of a compound type are required by the schema whereas, to my knowledge, EPrints elsewhere doesn’t support this notion explicitly (except by custom validation) · The schema doesn’t allow Namedset fields to be blank or ‘UNSPECIFIED’ etc even though this may be a valid value depending on the workflow configuration. I’ve attached a patch against 3.2 that addresses these three issues. It looks like it should work in 3.3 also. The patch for the latter two issues weakens the constraints imposed by the schema but makes the schema applicable in a greater number of what I would consider normal scenarios. With the patch I can validate the simple EPrints XML documents/packages we are using in our current work successfully but if I export a real eprint and validate the output there are numerous validity errors reported, which seem to relate to issues and indexcodes files. I haven’t got the time to look at these at the moment. Cheers Mark Mark Gregson | Applications and Development Team Leader |
Attachment:
metafields_schema_tweaks.patch
Description: metafields_schema_tweaks.patch
- Prev by Date: [EP-tech] Re: One document limit in EPrints XML SWORD package format
- Next by Date: [EP-tech] Re: Easydeposit and EPrints.
- Previous by thread: [EP-tech] Easydeposit and EPrints.
- Next by thread: [EP-tech] Browse Views Error
- Index(es):