Re: datetime variation

David Tolpin <[email protected]>
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
> <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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.