Open
Description
pbcorePartType adopts the pbcoreDescriptionDocumentType complexType which includes the sourceVersionGroup attribute group, but then pbcorePartType extends that by adding on the sourceVersionGroup attribute group again, so it get the same attributegroup twice. As a result I get buggy malformed warnings in some schema parsers. Like:
/Users/drice/github/PBCore_2.1/pbcore-2.1.xsd:941: element complexType: Schemas parser error : complex type 'pbcorePartType': Duplicate attribute use 'annotation'.
/Users/drice/github/PBCore_2.1/pbcore-2.1.xsd:941: element complexType: Schemas parser error : complex type 'pbcorePartType': Duplicate attribute use 'version'.
/Users/drice/github/PBCore_2.1/pbcore-2.1.xsd:941: element complexType: Schemas parser error : complex type 'pbcorePartType': Duplicate attribute use 'ref'.
/Users/drice/github/PBCore_2.1/pbcore-2.1.xsd:941: element complexType: Schemas parser error : complex type 'pbcorePartType': Duplicate attribute use 'source'.
WXS schema /Users/drice/github/PBCore_2.1/pbcore-2.1.xsd failed to compile
I propose that the second attributetype declaration should be removed, ie these lines: https://github.com/WGBH/PBCore_2.1/blob/26abd295e9572afc5d03a91ee5c8dc54eb107c71/pbcore-2.1.xsd#L1029-L1035
Metadata
Metadata
Assignees
Labels
No labels