Skip to content

Commit

Permalink
Merge pull request #101 from cioos-siooc/fix-schema-location
Browse files Browse the repository at this point in the history
fix validation, see ISO-TC211/XML#210
  • Loading branch information
n-a-t-e authored Jun 22, 2022
2 parents fc3ea40 + 3a8b55c commit dc7f02f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file modified cioos-schema.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion metadata_xml/iso19115-cioos-template/main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% import 'instrument.j2' as instr with context %}

<mdb:MD_Metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://standards.iso.org/iso/19115/-3/mdb/2.0 https://standards.iso.org/iso/19115/-3/mds/2.0/mds.xsd"
xsi:schemaLocation="http://standards.iso.org/iso/19115/-3/mdb/2.0 https://schemas.isotc211.org/19115/-3/mdb/2.0/mdb.xsd"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:mpc="http://standards.iso.org/iso/19115/-3/mpc/1.0"
xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0"
Expand Down
3 changes: 1 addition & 2 deletions validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
# use like `sh validate.sh record.xml`
SCRIPT_DIR=$(dirname $(realpath "$0"))
SCHEMA_FOLDER="$SCRIPT_DIR/cioos-schema/schema"
export XML_CATALOG_FILES=$SCRIPT_DIR/cioos-schema/catalog.xsd
xmllint --noout --schema "$SCHEMA_FOLDER"/standards.iso.org/iso/19115/-3/mds/2.0/mds.xsd "$1" --nowarning
xmllint --noout --schema "$SCHEMA_FOLDER"/schemas.isotc211.org/19115/-3/mdb/2.0/mdb.xsd "$1" --nowarning

0 comments on commit dc7f02f

Please sign in to comment.