]> Pierre Choffet | Git repositories - wdef_schemas.git/commitdiff
Relax some internal ids required formats master
authorPierre Choffet <peuc@wanadoo.fr>
Sun, 16 Jul 2023 17:41:19 +0000 (13:41 -0400)
committerPierre Choffet <peuc@wanadoo.fr>
Sun, 16 Jul 2023 17:41:19 +0000 (13:41 -0400)
It now allows any form of id when it’s local (starting with "?").

wdef.xsd

index b475d901f877694285a2f630a30e652be5d0a2ce..8c1fdff28dc5993492d4cf4bd0105ca9159b2314 100644 (file)
--- a/wdef.xsd
+++ b/wdef.xsd
@@ -771,7 +771,7 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
        <xsd:simpleType name="element-id">
                <xsd:restriction base="xsd:normalizedString">
-                       <xsd:pattern value="(\?E|Q)[0-9]+" />
+                       <xsd:pattern value="(Q[0-9]+|\?.+)" />
                </xsd:restriction>
        </xsd:simpleType>
 
@@ -783,13 +783,13 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 
        <xsd:simpleType name="property-id2">
                <xsd:restriction base="xsd:normalizedString">
-                       <xsd:pattern value="\?P[0-9\?\-EP]+" />
+                       <xsd:pattern value="(P[0-9]+|\?.+)" />
                </xsd:restriction>
        </xsd:simpleType>
 
        <xsd:simpleType name="value-id">
                <xsd:restriction base="xsd:normalizedString">
-                       <xsd:pattern value="\?V.+" />
+                       <xsd:pattern value="\?.+" />
                </xsd:restriction>
        </xsd:simpleType>