golfml.xsd line 1144 regex pattern correction

8 views
Skip to first unread message

Sekar

unread,
Feb 17, 2010, 11:32:19 PM2/17/10
to Golf Markup Language
Ran golfml.xsd through xjc to generate java classes and hit an error.
Changed

<xs:restriction base="xs:float">
<xs:pattern value="[-+]?[0-9]{0,2}(\.[0-9]{1,1})?"></xs:pattern>
</xs:restriction>

to

<xs:restriction base="xs:float">
<xs:pattern value="[\-+]?[0-9]{0,2}(\.[0-9]{1,1})?"></xs:pattern>
</xs:restriction>

Changed the - to \- and it took care of the issue.

Pierre M

unread,
Feb 18, 2010, 4:05:02 AM2/18/10
to Golf Markup Language
Hi,

Thanks for the correction. I will soon produce a new version of the
schema and add this one.
There will only be one major change in the next version, which is a
rename of a few elements (mainly gps elements which appear often in
files) to reduce the size of the golfml file.

Thanks again for the correction.

Pierre

Reply all
Reply to author
Forward
0 new messages