From 2b00f9fcb52b0d1bdd8b76ab41b10c581aa16dd0 Mon Sep 17 00:00:00 2001 From: Benedikt Seeger <benedikt.seeger@ptb.de> Date: Fri, 9 Aug 2024 11:47:50 +0200 Subject: [PATCH] restricted stringXMLListType so it can't start or end with spaces --- SI_Format.xsd | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/SI_Format.xsd b/SI_Format.xsd index a491cfa..3c87501 100644 --- a/SI_Format.xsd +++ b/SI_Format.xsd @@ -1444,11 +1444,18 @@ <xs:simpleType name="stringXMLListType"> <xs:annotation> <xs:documentation xml:lang="en"> - Type providing listing of strings (xs:string) - with separation by blank spaces. + Type providing listing of strings (xs:string) + with separation by blank spaces, ensuring no + string starts or ends with spaces. </xs:documentation> </xs:annotation> - <xs:list itemType="xs:string" /> + <xs:list> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:pattern value="[^ ](.*[^ ])?"/> + </xs:restriction> + </xs:simpleType> + </xs:list> </xs:simpleType> -- GitLab