[Xml-compile] Possible xsd duration validation problem

Brian Phillips bpphillips+ml at gmail.com
Sun Apr 25 19:30:10 GMT 2010


The \d+S part near the end is not marked as optional (if I'm reading
it correctly...)

On 4/25/10, Mark Overmeer <mark at overmeer.net> wrote:
> * Robin V. (robinsp at gmail.com) [100424 19:35]:
>> It looks like x:s validation rejects PT5M as an invalid duration but
>> according to wikipedia page on ISO 8601, PT5M is needed to
>> disambiguate from P5M which could mean 5 minutes or 5 months.
>
> True.
> I have no idea (yet) why this string does not match
>
>    'PT5M' =~ m/^\-?P(?:\d+Y)?(?:\d+M)?(?:\d+D)?
>       (?:T(?:\d+H)?(?:\d+M)?(?:\d+(?:\.\d+)?)S)?$/x
>
> anyone?
> --
>                MarkOv
>
> ------------------------------------------------------------------------
>        Mark Overmeer MSc                                MARKOV Solutions
>        Mark at Overmeer.net                          solutions at overmeer.net
> http://Mark.Overmeer.net                   http://solutions.overmeer.net
>
>
> _______________________________________________
> Xml-compile mailing list
> Xml-compile at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile
>



More information about the Xml-compile mailing list