Skip to content

Commit

Permalink
fix the OMI regex to match the spec issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Oct 3, 2017
1 parent 2064c35 commit b62ed53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/RelaxNG/openmath2.rnc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RELAX NG Schema for OpenMath 2
# Revision 2: Corrected regex for OMI to match the documented standard and allow hex


default namespace om = "http://www.openmath.org/OpenMath"
Expand Down Expand Up @@ -41,7 +42,7 @@ OMV = element OMV { common.attributes,

# integer
OMI = element OMI { common.attributes,
xsd:string {pattern = "\s*(-\s?)?[0-9]+(\s[0-9]+)*\s*"}}
xsd:string {pattern = "\s*-?((\s*[0-9])+|x(\s*[0-9A-F])+)\s*"}}
# byte array
OMB = element OMB { common.attributes, xsd:base64Binary }

Expand Down

0 comments on commit b62ed53

Please sign in to comment.