DILCISBoard / E-ARK-CSIP

E-ARK Common Specification for Information Packages
http://earkcsip.dilcis.eu
Creative Commons Attribution 4.0 International
11 stars 5 forks source link

Validation of mets.xml files against profile #746

Closed joelthill closed 1 month ago

joelthill commented 1 month ago

Hi,

I'd like to start saying that I am convinced the following is not an E-ARK-CSIP issue, but rather a lack of understanding from my side. I'm used to working with XML files and validating them against schemas, but never been exposed to profiles - so sorry upfront for asking dumb questions ;-)

It looks to me like samples files I've had a look at (e.g. "ID-minimal_IP_with_schemas_filesec") go beyond what is permitted by the METS schema by opening extensions where the actual base schema hasn't foreseen any. e.g. adding a csip:OAISPACKAGETYPE attribute to a .

XMLspy throws an error in the validation process for the above file rgd.: "Attribute 'csip:OAISPACKAGETYPE' is not allowed in element " [..] Details: cvc-complex-type.3.2.1: Complex type definition '{anonymous}' of element does not allow attribute 'csip:OAISPACKAGETYPE' and has no attribute wildcard.".

My question therefore: is there any way to validate mets files against a schema plus a profile, or are profiles just for documentation purposes ?

cheers joel

joelthill commented 1 month ago

I withdraw half of the question. It looks like I had an pre-1.11 version of the mets.xsd in my schema cache, which did not yet have xsd:anyAttribute with namespace ##other and processContents lax to those elements, which allows arbitrary new attributes to be added to these elements. Shame on me ;-)