AmeyaVS Posted July 30 Report Posted July 30 Hello, I have a query regarding the regex flavor specified in the XML Schema: 'simpleTypes.xsd' <xs:simpleType name="portName"> <xs:annotation> <xs:documentation>A type for a port name string, allows letters, digits, dash, colon, underscore and period</xs:documentation> </xs:annotation> <xs:restriction base="xs:string"> <xs:whiteSpace value="collapse"/> <xs:pattern value="\i[\p{L}\p{N}\.\-:_]*"/> <!-- Which regex flavour is being used here for specification? --> </xs:restriction> </xs:simpleType> Can anyone elaborate on the XML schema specification specifically the attribute for the element pattern and attribute: value? This regex pattern is available in IP-XACT 2014, and IP-XACT 2022 simpleTypes.xsd. Regards, Ameya Vikram Singh Quote
kock Posted August 12 Report Posted August 12 Hi, I believe the regex used is specified here: https://www.w3.org/TR/xmlschema-2/#dt-regex Best regards, Erwin Quote
AmeyaVS Posted August 13 Author Report Posted August 13 Hello @kock, While reviewing the reference shared by you: https://www.w3.org/TR/xmlschema-2/#dt-regex Found another reference, and it seems the regular expression syntax used has been deprecated by the standard body: https://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-Letter Which has been updated to follow the EBNF notation. As per the section 6 mentioned here: https://www.w3.org/TR/xml/ or https://www.w3.org/TR/xml/#sec-notation It seems the newer revisions of IP-XACT specifications have not been updated to reflect the same as per the base XML specifications. Regards, Ameya Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.