[relaxng-user] datetime variation
David Tolpin
dvd at davidashen.net
Sat Jan 17 17:44:05 ICT 2004
> <modified>2001-01-11T12:01:01Z</modified>
> I.e. the normal xsd dateTime, but with a mandated Z,
> as apposed to the +- alternatives.
>
> Not working I have,
>
> <element name="modified">
> <data type="dateTime">
> <param name="minInclusive">2000-01-01T00:00:00Z</param>
> <param name="maxInclusive">2099-12-31T23:59:59Z</param>
> <param
> name="pattern">[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]2:[0-9]2:[0-9]2Z</param>
> </data>
here curly brackets are omitted around last two 2's, but what you actually
want is <param name="pattern">.*Z</param>. It is already a date, so the
only thing you need to say is that it ends with Z.
> Ideally I'd like to split it up,
> date,
> T
> time
> Z
> I can't find a way to do this.
I haven't understood this part.
David
More information about the relaxng-user
mailing list