feat: lint xsd files (#5250)

Lint XSD files with xmllint

Close #5248
This commit is contained in:
Marco Ferrari 2024-02-09 18:44:30 +01:00 committed by GitHub
parent fe6e29b685
commit a26db6d34d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 1 deletions

View file

@ -471,7 +471,8 @@ BuildFileArrays() {
echo "${FILE}" >>"${FILE_ARRAYS_DIRECTORY_PATH}/file-array-TSX"
elif [ "${FILE_TYPE}" == "txt" ]; then
echo "${FILE}" >>"${FILE_ARRAYS_DIRECTORY_PATH}/file-array-TXT"
elif [ "${FILE_TYPE}" == "xml" ]; then
elif [ "${FILE_TYPE}" == "xml" ] ||
[ "${FILE_TYPE}" == "xsd" ]; then
echo "${FILE}" >>"${FILE_ARRAYS_DIRECTORY_PATH}/file-array-XML"
elif [ "${FILE_TYPE}" == "yml" ] || [ "${FILE_TYPE}" == "yaml" ]; then
echo "${FILE}" >>"${FILE_ARRAYS_DIRECTORY_PATH}/file-array-YAML"

View file

@ -0,0 +1,7 @@
<?xml version = "1.0" encoding = "UTF-8"?>
<!-- $Header: /cvsroot/ebxmlrr/ebxmlrr-spec/misc/3.0/schema/rim.xsd,v 1.20 2005/02/03 19:28:15 farrukh_najmi Exp $ -->
<schema targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
xmlns:xml="http://www.w3.org/XML/1998/names=
<maxLength value="4"/>

View file

@ -0,0 +1,6 @@
<?xml version = "1.0" encoding = "UTF-8"?>
<!-- $Header: /cvsroot/ebxmlrr/ebxmlrr-spec/misc/3.0/schema/rim.xsd,v 1.20 2005/02/03 19:28:15 farrukh_najmi Exp $ -->
<schema targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
xmlns:xml="http://www.w3.org/XML/1998/namespace" />