1.1 FPWD: error in derived-from-duration regexes

Ashok has caused me to look closely at the regex given in the text
of each derived-from-duration datatype, and I find that I forgot
to escape the '-' and '.' characters.  They should be escaped:

    \-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\.[0-9]+)?S)?)?

    \-?P([0-9]+Y)?([0-9]+M)?

for dayTimeDuration and yearMonthDuration respectively.

(Note that these regexes by themselves do not exactly define the
lexical spaces of their respective datatypes, but they do provide
an adequate regex for use in derivation from duration.  Exact
regexes would be messier; compare the regex for duration itself.)
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu

Received on Tuesday, 7 September 2004 14:38:41 UTC