8000 pbcorePartType redundancies · Issue #10 · PBCore-AV-Metadata/PBCore_2.1 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
pbcorePartType redundancies #10
Open
@dericed

Description

@dericed

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0