[relaxng-user] datetime variation

Dave Pawson dpawson at nildram.co.uk
Sat Jan 17 15:57:20 ICT 2004


At 14:03 17/01/2004, Dave Pawson wrote:
>At 13:44 17/01/2004, David Tolpin wrote:

<snip/>

>>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.
David gave me

<!-- 2001-10-26T21:32:52Z -->
<element name="modified">
   <data type="dateTime">
           <param name="minInclusive">2000-01-01T00:00:00</param>
           <param name="maxInclusive">2099-12-31T23:59:59</param>
           <param
  name="pattern">.*T[^+\-]*</param>
   </data>
  </element>

which blocks the offset option as needed, and allows
an optional Z which is just what I needed :-)


Many thanks David.

regards DaveP 




More information about the relaxng-user mailing list