WGBH / PBCore2.0

Public Broadcasting Metadata Dictionary Project
http://www.pbcore.org
32 stars 9 forks source link

openness of schemaVersion #35

Closed WeAreAVP closed 10 years ago

WeAreAVP commented 13 years ago

Re: Is there any reason to allow any string expression in the schemaVersion attribute? Within a valid PBCore 2.0 XML should this always be "2.0".

To use MODS as an example again, if you have a MODS 3.3 record then the version must be expressed as "3.3".

/xsd:restriction /xsd:simpleType
dmaccarn commented 13 years ago

I guess the general question is "How much do we want to lock this stuff down?" I can see any number of places where we could restrict entries and then have no flexibility.

WeAreAVP commented 13 years ago

What is the use case to ever allow a valid PBCore 2.0 record to claim a schemaVersion that is not "2.0". This prevents the field from actually being trusted as an expression of which version of the schema it is. For instance a valid 2.0 record shouldn't ever say "2.1", right?

dmaccarn commented 13 years ago

Sorry, I don't understand your point.

WeAreAVP commented 13 years ago

I may be confused as to what this attribute is meant to do. I understand that the user should have flexibility but this attribute appears to denote adherence to a particular version of the schema, but the user can not use this to express adherence with any version except "2.0". If the user enters the schemaVersion="1.1" then the document is invalid since the 1.1 XSD does not allow for the attribute. Having flexibility here would seem similar to allowing flexibility in the namespace attributes.

WeAreAVP commented 13 years ago

I'm getting back to this one and still having trouble understanding the use case to allow a user to express any string for the schemaVersion of a valid PBCore 2.0 record.

When should a PBCore 2.0 document not be schemaVersion="2.0"?

If the value (schemaVersion) that should declare the version of the schema can really be anything then I feel like we're back at running PBCore documents through validation against every version of the schema (or testing formatIdentifier placement) just to figure to figure one what version of the schema the document purports to be.

dmaccarn commented 13 years ago

But what of version 2.1 that may only add/change an attribute?

WeAreAVP commented 13 years ago

then the changes to PBCore 2.1 xsd would also say schemaVersion must be 2.1.

dmaccarn commented 13 years ago

Noted.