Skip to content

Commit

Permalink
Fixed LengthBeginEndType and FractionType pattern. (Issue #40)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjschakel authored and wjschakel committed May 10, 2023
1 parent c4047d3 commit 0668e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ots-parser-xml/src/main/resources/xsd/ots-types.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -841,13 +841,13 @@
<xsd:restriction base="xsd:string">
<xsd:pattern value="BEGIN|END|END\-(\d+\.?\d*\s*(mm|cm|dm|m|dam|hm|km|mi|yd|ft))|(\
){0}(\d+\.?\d*\s*(mm|cm|dm|m|dam|hm|km|mi|yd|ft)|(\
){0}((\d(\.\d*)?)|(\d\d(\.\d*)?)|(100(\.\0*)?))\s*\%)"></xsd:pattern>
){0}((\d(\.\d*)?)|(\d\d(\.\d*)?)|(100(\.0*)?))\s*\%)"></xsd:pattern>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="FractionType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="(0?\.\d*|1\.0*|1|0)|((\d(\.\d*)?)|(\d\d(\.\d*)?)|(100(\.\0*)?))\s*\%"></xsd:pattern>
<xsd:pattern value="(0?\.\d*|1\.0*|1|0)|((\d(\.\d*)?)|(\d\d(\.\d*)?)|(100(\.0*)?))\s*\%"></xsd:pattern>
</xsd:restriction>
</xsd:simpleType>

Expand Down

0 comments on commit 0668e47

Please sign in to comment.