example-collection.xml:2: element collection: Schemas validity error : Element '{https://purl.dataone.org/collections-1.0.0}collection': No matching global declaration available for the validation root.
After updating the schema reference inside the example file to 1.1.0 and rerunning validation, these errors occurred:
example-collection.xml:18: element fieldsOperator: Schemas validity error : Element 'fieldsOperator': This element is not expected. Expected is ( value ).
example-collection.xml:25: element fieldsOperator: Schemas validity error : Element 'fieldsOperator': This element is not expected.
example-collection.xml fails to validate
example-portal.xml:15: element fieldsOperator: Schemas validity error : Element 'fieldsOperator': This element is not expected. Expected is ( value ).
example-portal.xml:30: element fieldsOperator: Schemas validity error : Element 'fieldsOperator': This element is not expected.
example-portal.xml:36: element fieldsOperator: Schemas validity error : Element 'fieldsOperator': This element is not expected.
example-portal.xml:42: element fieldsOperator: Schemas validity error : Element 'fieldsOperator': This element is not expected. Expected is ( max ).
example-portal.xml:320: element exclude: Schemas validity error : Element 'exclude': This element is not expected. Expected is one of ( matchSubstring, value, filterOptions, choice ).
example-portal.xml:376: element exclude: Schemas validity error : Element 'exclude': This element is not expected. Expected is one of ( matchSubstring, value, filterOptions, choice ).
example-portal.xml fails to validate
A PR will be submitted with updates to the sample docs that fix the validation errors.
The v1.1.0 example portal and collection documents don't validate against the v1.1.0 schemas.
The documents were tested using the commands:
with updated .xsd files with
schemaLocation=<external file>
replaced to use local files, asxmllint
won't resolve URL references in .xsd files.For https://github.com/DataONEorg/collections-portals-schemas/blob/1.1.0/docs/examples/example-collection.xml the errors were:
After updating the schema reference inside the example file to
1.1.0
and rerunning validation, these errors occurred:For the portal example document at:
https://github.com/DataONEorg/collections-portals-schemas/blob/1.1.0/docs/examples/example-portal.xml
A PR will be submitted with updates to the sample docs that fix the validation errors.