Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove the element occurences from the path #354

Merged
merged 8 commits into from Feb 9, 2020
Merged

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented Nov 3, 2019

@robUx4 robUx4 added the XML Schema EBML Schema validation label Nov 3, 2019
@robUx4
Copy link
Contributor Author

robUx4 commented Nov 3, 2019

BTW I noticed that an empty name="" in the Matroska Schema is considered valid. Is there a way to tell in the EBML XSD that an attribute is mandatory AND must not be empty ?

@robUx4
Copy link
Contributor Author

robUx4 commented Nov 3, 2019

Found it

    <xs:attribute name="name" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:pattern value="([0-9A-Za-z.-])+"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>

@robUx4
Copy link
Contributor Author

robUx4 commented Dec 15, 2019

I updated the branch as the minOccurs and maxOccurs were missing from the cleaned matroska_xsd.xml file. Now the output is equivalent to the output before this branch.

The hierarchy of elements has gone up one level, so we get more elements in the index (TrackEntry could still go down one level at least).

@robUx4
Copy link
Contributor Author

robUx4 commented Jan 28, 2020

Updated with the latest path syntax.

@robUx4 robUx4 merged commit 759528d into master Feb 9, 2020
@robUx4 robUx4 deleted the del-path-occurences branch February 23, 2021 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
XML Schema EBML Schema validation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants