checking in some xsd changes

This commit is contained in:
2021-09-15 03:11:29 -04:00
parent 0193f78387
commit 0a23f7f7e4
2 changed files with 13 additions and 1 deletions

View File

@@ -52,6 +52,18 @@
</xs:restriction>
</xs:simpleType>
<!-- https://semver.org/ -->
<!-- Not perfect; it's more permissible than official spec but will do nicely for basic check. -->
<!--
The XML pattern engine standard is... pretty limited but:
https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
-->
<xs:simpleType name="t_std_semver">
<xs:restriction base="xs:token">
<xs:pattern value="v?([1-9]+([0-9])*\.){2}\.[1-9]([0-9)*(-[.0-9A-Za-z-]+)?(\+[.0-9A-Za-z-]+)?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="t_std_uri">
<xs:restriction base="xs:anyURI">
<xs:pattern value="\s*(https?|ftps?|file)://.+\s*"/>