Skip to content

Commit

Permalink
fixed some errors in xsd regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyß, Martin committed Jan 26, 2022
1 parent 20a82fc commit 3f7bf50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fluxml/fluxml.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="atoms" use="optional" default="0" type="AtomType"/>
<xs:attribute name="size" use="optional" default="1" type="xs:double"/>
<xs:attribute name="cfg" use="optional" default="0" type="AtomCfgType"/>
<xs:attribute name="cfg" use="optional" default="" type="AtomCfgType"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="AtomType">
Expand All @@ -183,12 +183,12 @@
</xs:simpleType>
<xs:simpleType name="CfgType">
<xs:restriction base="xs:string">
<xs:pattern value="([A-Za-z]+|(\s*[CHNOS]#[0-9]+@[A-Za-z0-9]+(\s+[CHNOS]#[0-9]+@[A-Za-z0-9]+)*\s*))"/>
<xs:pattern value="([A-Za-z]*|(\s*[CHNOS]#[1-9][0-9]*@[A-Za-z0-9]+)*\s*)"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AtomCfgType">
<xs:restriction base="xs:string">
<xs:pattern value="([A-Za-z]+|(\s*[CHNOS]#[0-9]+(\s+[CHNOS]#[0-9]+)*\s*))"/>
<xs:pattern value="([A-Za-z]*|(\s*CHNOS\s*|(\s*[CHNOS][1-9][0-9]*)*\s*))"/>
</xs:restriction>
</xs:simpleType>
<!-- fluxml/reactionnetwork/reaction -->
Expand Down

0 comments on commit 3f7bf50

Please sign in to comment.